Retrieve 24 TWAP price points for one or multiple tokens, ideal for sparkline/linechart rendering.
| 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 |
items key (minimum 1, maximum 50 per request). Each item uses the same parameters as the GET request.
| 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) |
| 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 |