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: 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 |
|---|---|---|---|
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 |