Get Historical Market Data (batch)
Query details
You can query up to 500 assets as the same time (even tho if you are facing this you might want to use our data streams).
The market data asset query pattern is explained in great details here, with blockchain format, etc. For example, you can query with parameters:
{
"assets": "Bitcoin,0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0,Hedera,0x23d29d30e35c5e8d321e1dc9a8a61bfd846d4c5c"
"blockchains": "1,137"
}
We will map the first blockchain with the first contract address found, and so on.
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. Data granularity is designed as follows:
- 5 minutes for the last 7 days
- 6 hours for the last 30 days
- 1 day for the remaining of history
If you need higher granularity or control, please reach out to us on Telegram - we can deliver up to 1min granularity since 2013 for all assets.
Query Parameters
Comma separated list of asset names or Ethereum addresses (max 500)
JS Timestamp (milliseconds) of the beginning of the timeframe (if not provided, genesis)
JS Timestamp (milliseconds) of the end of the timeframe (if not provided, end)
Comma separated list of from timestamps (if not provided, genesis)
Comma separated list of to timestamps (if not provided, end)
Comma separated list of symbols