GET
/
1
/
market
/
multi-history
curl --request GET \
  --url https://api.mobula.io/api/1/market/multi-history
{
  "data": [
    {
      "price_history": [
        [
          123
        ]
      ],
      "volume_history": [
        [
          123
        ]
      ],
      "market_cap_history": [
        [
          123
        ]
      ],
      "market_cap_diluted_history": [
        [
          123
        ]
      ],
      "name": "<string>",
      "symbol": "<string>",
      "address": "<string>",
      "id": 123
    }
  ]
}
Timestamps are in MS, it’s JS timestamps.

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

assets
string
period
string
symbols
string
blockchains
string
ids
string
from
string
froms
string
to
string
tos
string

Response

200 - application/json
Market multi history response
data
object[]
required