Token Prices History
Prices
Fetch token price history
Get the price history for the given token and the given time granularity.
POST
Token Prices History
This endpoint returns the price and OHLC for a list of tokens/chains in a given time window. Prices are calculated as a volume-weighted average and OHLC values are aggregated over DEX trades within the window specified byDocumentation Index
Fetch the complete documentation index at: https://docs.allium.so/llms.txt
Use this file to discover all available pages before exploring further.
time_window.
Max number of tokens per request: 50
Supported Windows
The following are the supported time windows and their associated retention periods:| Window | Retention |
|---|---|
| 15s | 5 days |
| 1m | All |
| 5m | All |
| 1h | All |
| 1d | All |
Supported Chains
Edge Cases
Forward-filled prices
If a token has no trading activity in a requested time window, we will forward fill the price and OHLC from the most recent prior window with data (i.e., carry forward the last known values) so your time series is more consistent/dense. Notes:- If there is no prior datapoint to forward fill from before the start of the requested time window (e.g. if the token was not created yet), that window will still have no data.
Incomplete Time Windows
This endpoint returns price data for the current time window, even if it’s incomplete. For example:- If the API is called at 10:30, the latest hourly datapoint for 10:00 is based on trades from 10:00 to 10:30
- If called at 11:00, the 10:00 datapoint will be finalized, reflecting a full hour of trades (i.e., 10:00 to 11:00)
Authorizations
Query Parameters
Body
application/json
- PayloadPriceHistorical
- PayloadPriceHistoricalLegacy
Start of time range (UTC ISO 8601)
End of time range (UTC ISO 8601)
List of token address+chain pairs
Candle granularity (15s, 1m, 5m, 1h, 1d)
Available options:
15s, 1m, 5m, 1h, 1d