GET
/
1
/
market
/
history
curl --request GET \
  --url https://api.mobula.io/api/1/market/history
{
  "data": {
    "price_history": [
      [
        123
      ]
    ],
    "volume_history": [
      [
        123
      ]
    ],
    "market_cap_history": [
      [
        123
      ]
    ],
    "market_cap_diluted_history": [
      [
        123
      ]
    ],
    "name": "<string>",
    "symbol": "<string>",
    "blockchain": "<string>",
    "address": "<string>"
  }
}
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

Granularity settings

You can set the granularity of the data by adding the period parameter.

  • 5m for 5 minutes
  • 15m for 15 minutes
  • 1h for 1 hour
  • 6h for 6 hours
  • 1d for 1 day

Query Parameters

blockchain
string
asset
string
symbol
string
period
string
id
number | null
from
number | null
default:0
to
number | null
default:1743436284917

Response

200 - application/json
Market history response
data
object
required