dex

Get Token ID Price

Retrieves detailed mapping and pricing information for tokens on DEXs. By default, it returns data for the top 100 trending tokens, offering a snapshot of market dynamics and token popularity. Alternatively, if a specific token address is provided, the endpoint returns the mapping details for that token. The response includes key data such as the pool identifier (poolId) and the current price, enabling users and developers to assess market valuations, track trends, and integrate real-time pricing information into trading strategies and analytical dashboards.

💡 Compute Unit Value: 95 (Fixed)

get/defi/v1/dex/gettokenidprice

Request

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

Query parameters

dexId'3100'

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

Example:3100
poolIdstring required

The unique ID of the liquidity pool for which the USD price of the liquidity token needs to be fetched.

Example:13

Response

Successful response

statusinteger
msgstring
dataobject

Example response

{
  "status": 200,
  "msg": "success",
  "data": {
    "poolId": "14",
    "price": "0.9698074551870216"
  }
}

Changes

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