Get token price history
History - Prices & OHLCV Candles
Get Token Price History
Retrieve 24 TWAP price points for one or multiple tokens, ideal for sparkline/linechart rendering.
GET
Get token price history
Documentation Index
Fetch the complete documentation index at: https://docs.mobula.io/llms.txt
Use this file to discover all available pages before exploring further.
Overview
This endpoint retrieves 24 evenly-spaced TWAP (Time-Weighted Average Price) data points for a token, designed for lightweight sparkline and linechart rendering. Use GET for a single token or POST for batch requests (up to 50 tokens). For full OHLCV candlestick data with configurable periods, use Token OHLCV History instead.GET Request (Single Token)
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
address | string | Yes | Token contract address |
chainId | string | Yes | Chain identifier (e.g., "ethereum", "base", "solana") |
timeframe | string | No | Timeframe: 5m, 15m, 1h, 24h, 7d, 30d, 1y. Default: 24h |
Example
POST Request (Batch)
Request Body
Send an array of token queries directly, or an object with anitems key (minimum 1, maximum 50 per request). Each item uses the same parameters as the GET request.
Example
Response Format
| Field | Type | Description |
|---|---|---|
priceHistory | number[][] | Array of [timestamp, price] tuples (24 points max) |
address | string | Token contract address |
chainId | string | Chain identifier |
error | string | Error message if the token could not be fetched (batch only) |
GET Response Example
POST Response Example
Timeframe Options
| Timeframe | Points | Bucket Size | Description |
|---|---|---|---|
5m | 24 | ~13 seconds | Last 5 minutes |
15m | 24 | ~38 seconds | Last 15 minutes |
1h | 24 | ~2.5 minutes | Last hour |
24h | 24 | 1 hour | Last 24 hours |
7d | 24 | ~7 hours | Last 7 days |
30d | 24 | ~30 hours | Last 30 days |
1y | 24 | ~15 days | Last year |
Notes
- Always returns exactly 24 data points (fewer if the token is newer than the timeframe)
- Prices are TWAP (time-weighted average) per bucket, not close prices
- Maximum 50 tokens per POST request
- Rate limit: 2 credits (GET), 10 credits (POST)
Query Parameters
Token contract address
Blockchain chain ID (e.g., "evm:56", "solana:solana")
Time range for price history
Available options:
5m, 15m, 1h, 24h, 7d, 30d, 1y Response
200 - application/json
Token price history response