GET
/
market
/
history
Timestamps are in MS, it’s JS timestamps.

Query quick start

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.

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

blockchain
string

Blockchain of the asset - only mandatory if asset is sent as smart-contract.

asset
string
required

The asset you want to target - asset name only works for assets listed on Mobula.

from
integer

JS Timestamp (milliseconds) of the beginning of the timeframe (if not provided, genesis)

to
integer

JS Timestamp (milliseconds) of the end of the timeframe (if not provided, end)

period
enum<string>

The resolution of the market history

Available options:
5min,
15min,
1h

Response

200 - application/json
data
object