Retrieve historical price data for one or multiple assets.
| Parameter | Type | Required | Description |
|---|---|---|---|
id | number | Cond. | Mobula’s internal asset ID. Either id or address must be provided. |
address | string | Cond. | Contract address. Either id or address must be provided. |
chainId | string | Cond. | Chain identifier (e.g., "ethereum", "base"). Required when using address. |
period | string | No | Candle resolution. Supported: 5m, 15m, 1h, 6h, 1d. Defaults to auto-granularity. |
from | number | No | Start timestamp (ms). Defaults to 0 (epoch). |
to | number | No | End timestamp (ms). Defaults to current time. |
| Field | Type | Description |
|---|---|---|
priceHistory | number[][] | Array of [timestamp, price] tuples |
id | number | Mobula’s internal asset ID |
name | string | Asset name |
symbol | string | Asset symbol |
chainId | string | Chain identifier |
address | string | Contract address |
error | string | Error message if the asset could not be fetched (batch only) |
5m for 5 minutes15m for 15 minutes1h for 1 hour6h for 6 hours1d for 1 dayMobula's internal asset ID. Either id or address must be provided.
Contract address. Either id or address must be provided.
Chain identifier (e.g., 'ethereum', 'base'). Required when using address.
Candle resolution. Supported: 5m, 15m, 1h, 6h, 1d
Start timestamp (ms)
End timestamp (ms). Defaults to current time.
Asset price history response