Get market data for any crypto token
Parameter | Type | Required | Description |
---|---|---|---|
asset | string | Yes | The asset identifier to query. This can be the token’s name or the contract address. |
blockchain | string | Cond. | The blockchain network name or ID where the asset resides. Required if querying by contract address. |
shouldFetchPriceChange | string (e.g., “24h”) | No | Timeframe for price change calculation. Example: "24h" returns price change over the last 24 hours. |
symbol | string | Cond. | Token ticker symbol. If duplicates exist, returns the first match. Use contract + blockchain for accuracy. |
id | number | Cond. | The Asset Unique Identifier to query. |
volume
is on-chain volume, and off_chain_volume
is - as name implies, the off-chain volume.
price is different than on CoinGecko or CoinMarketCap. Why?
Mobula uses market-depth-weighted average price, which is more accurate than the simple average price. This is especially important for assets with low / zero volume in the long tail.
How to query native tokens?
To query the native token of any given chain, use asset=0xEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE&blockchain=<blockchain_name or blockchain_id>
24h
Market data response
The response is of type object
.