dex

Get Token Liquidity

Retrieves detailed liquidity metrics for tokens in specified pools across supported DEX protocols. It returns the current liquidity amounts for each token, enabling users to assess market depth and token distribution within the pool.

💡 Compute Unit Value: 40 (Fixed)

get/defi/v1/dex/gettokenliquidity

Request

  • Base URL
    https://svc.blockdaemon.com
  • URL
    https://svc.blockdaemon.com/defi/v1/dex/gettokenliquidity
  • Auth
    API key in header X-API-Key

Query parameters

poolAddressstring required

Pool address whose liquidity is to be fetched.

Example:0xfad57d2039c21811c8f2b5d5b65308aa99d31559
dexId'1000' | '1001' | '1300' | '1301' | '1305' | '1306' | '1307' | '1308' | '1309' | '1310' | '1100' | '1101' | '1200' | '1201' | '2900' | '2901' | '2800' | '2808' | '2809' | '1500' | '1400' | '1402' | '2300' | '2100' | '2101' | '2500' | '2501' | '2700' | '2400' | '2401' | '3000' | '3001' | '3100' | '3300' | '3301' | '3500' | '3501' | '3400' | '3401' | '3600' | '3800' | '3700'

The unique ID to specify the decentralized exchange (DEX) within a particular blockchain. Find more here.

Example:1000
vsCurrenciesstring

A comma-separated list of currency symbols to convert the amount into, such as 'USD,EUR'. This parameter is optional and allows retrieving values in multiple fiat currencies.

Example:usd,eur,gbp
poolIdstring required

Pool ID of the token pair.

Example:13

Response

Successful response

statusinteger
msgstring
dataobject

Example response

{
  "status": 200,
  "msg": "success",
  "data": {
    "WISE": "504683885086515417087429482",
    "WETH": "29446632936620107557780",
    "prices": {
      "usd": [
        {
          "WISE": "0.20142069681758892"
        },
        {
          "WETH": "3622.89970052037"
        }
      ],
      "inr": [
        {
          "WISE": "17.40667167879299"
        },
        {
          "WETH": "313089.10458822636"
        }
      ]
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.