Query details
Input in “asset” the name of the asset you want to query, or the contract address while adding the blockchain as a second parameter. The market data asset query pattern is explained in great details here, with blockchain format, etc.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 | 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. |
ids | number | Cond. | The Asset Unique Identifier to query. |
Need more than 500 assets? You can use the /all
endpoint to get all assets listed on Mobula (curated, not all DeFi tokens)
Data details
Price data is computed using Octopus, Mobula’s market data engine. You can have a high-level overview of how it’s computing DeFi prices here.volume
is on-chain volume, and off_chain_volume
is - as name implies, the off-chain volume.
Usage Examples
- Query by Symbols and Blockchain
- Query by Contract Address of Token.
- Query by Query Native Token. (ETH,SOL)
- Query by Asset ids.
Query Parameters
Available options:
24h