Wallet

Data from both endpoints can be used for the SELL and BUY side, however if you also want to show the current balances of a wallet you should go with the second endpoint.

/asset

Load a list of assets containing token and price information for wallet rebalancings

Get list of assets (token + price)

get
Header parameters
x-api-keystringOptional

31Third API key (Request via [email protected])

chain-idstringOptional

Chain ID as hex string. (e.g.: 0x1 for Ethereum mainnet)

Responses
200Success
application/json
Responseall of
objectOptional
and
get
GET /0.1/asset HTTP/1.1
Host: 
Accept: */*
200Success
{
  "items": [
    {
      "token": {
        "id": "text",
        "address": "0x95ad61b0a150d79219dcf64e1e6cc01f0b64c4ce",
        "name": "Shiba Inu",
        "symbol": "SHIB",
        "imageUrl": "https://assets.31third.com/images/tokens/SHIB.svg",
        "decimals": 18,
        "sliderColor": "#C47438",
        "chain": {
          "name": "Ethereum",
          "identifier": "0x1",
          "enabled": true,
          "batchTradeSupported": true,
          "batchTradeAddress": "0x1ee8b39f09c5299526db65428ab2a8a23ebf08a7",
          "blockExplorerLink": "https://etherscan.io",
          "nativeTokenAddress": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
          "wrappedNativeTokenAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
          "tokenHelperAddress": "0x6af90502f49E3B4151018F7aE82d10079c29Bc97",
          "portfolioEnabled": true
        },
        "tags": [
          "text"
        ],
        "deflationary": true
      },
      "balance": "0",
      "priceInNativeCurrency": "7414558845",
      "priceInUsd": 0.00002272543360099033,
      "valueInNativeCurrency": "0",
      "valueInUsd": "0",
      "valueInEur": 1,
      "cmcRank": 9,
      "isTradeable": true,
      "isSellable": true
    }
  ]
}

/asset/{address}

Load a list of assets containing token, price and balance information for wallet rebalancings

Get list of assets (token + price + balance for passed address)

get

Also contains assets for all other supported tokens with a balance of zero

Path parameters
addressstringRequired
Header parameters
x-api-keystringOptional

31Third API key (Request via [email protected])

chain-idstringOptional

Chain ID as hex string. (e.g.: 0x1 for Ethereum mainnet)

Responses
200Success
application/json
Responseall of
objectOptional
and
get
GET /0.1/asset/{address} HTTP/1.1
Host: 
Accept: */*
200Success
{
  "items": [
    {
      "token": {
        "id": "text",
        "address": "0x95ad61b0a150d79219dcf64e1e6cc01f0b64c4ce",
        "name": "Shiba Inu",
        "symbol": "SHIB",
        "imageUrl": "https://assets.31third.com/images/tokens/SHIB.svg",
        "decimals": 18,
        "sliderColor": "#C47438",
        "chain": {
          "name": "Ethereum",
          "identifier": "0x1",
          "enabled": true,
          "batchTradeSupported": true,
          "batchTradeAddress": "0x1ee8b39f09c5299526db65428ab2a8a23ebf08a7",
          "blockExplorerLink": "https://etherscan.io",
          "nativeTokenAddress": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
          "wrappedNativeTokenAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
          "tokenHelperAddress": "0x6af90502f49E3B4151018F7aE82d10079c29Bc97",
          "portfolioEnabled": true
        },
        "tags": [
          "text"
        ],
        "deflationary": true
      },
      "balance": "0",
      "priceInNativeCurrency": "7414558845",
      "priceInUsd": 0.00002272543360099033,
      "valueInNativeCurrency": "0",
      "valueInUsd": "0",
      "valueInEur": 1,
      "cmcRank": 9,
      "isTradeable": true,
      "isSellable": true
    }
  ]
}

Last updated