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)
Request
- Base URLhttps://svc.blockdaemon.com
- URLhttps://svc.blockdaemon.com/defi/v1/dex/gettokenidprice
- AuthAPI key in header X-API-Key
Query parameters
The unique ID to specify the decentralized exchange (DEX) within a particular blockchain. Find more here.
The unique ID of the liquidity pool for which the USD price of the liquidity token needs to be fetched.
Response
Successful response
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.