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"
  ]
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/onchainasset"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.