SushiSwap · Schema

OnChainAsset

DeFiDecentralized ExchangeDEXCryptocurrencyWeb3BlockchainMulti-ChainLiquiditySwapToken Pricing

Properties

Name Type Description
name string The name of the asset, this value should be used when making a quote
address string The contract address of the asset
balance string The balance of the asset in the pool
price_in_usd number Current price in dollars for the asset
value_in_usd number Value of the pool in USD
target_value_in_usd number USD target value for this asset in the pool
View JSON Schema on GitHub

JSON Schema

onchainasset.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "OnChainAsset",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the asset, this value should be used when making a quote"
    },
    "address": {
      "type": "string",
      "description": "The contract address of the asset"
    },
    "balance": {
      "type": "string",
      "description": "The balance of the asset in the pool"
    },
    "price_in_usd": {
      "type": "number",
      "format": "float",
      "description": "Current price in dollars for the asset"
    },
    "value_in_usd": {
      "type": "number",
      "format": "float",
      "description": "Value of the pool in USD"
    },
    "target_value_in_usd": {
      "type": "number",
      "format": "float",
      "description": "USD target value for this asset in the pool"
    }
  },
  "required": [
    "name",
    "address",
    "balance",
    "price_in_usd",
    "value_in_usd",
    "target_value_in_usd"
  ]
}