get_batch_historical_prices
Retrieve historical price data for multiple tokens at specified timestamps with adjustable search width. Ideal for analyzing crypto asset performance across different timeframes.
Instructions
GET /coins/batchHistorical
Get historical prices for multiple tokens at multiple different timestamps.
Parameters:
coins: dict where keys are coins in format {chain}:{address} and values are arrays of timestamps
search_width: time range on either side to find price data (default: '6h')
Input Schema
Name | Required | Description | Default |
---|---|---|---|
coins | Yes | ||
search_width | No | 6h |
Input Schema (JSON Schema)
{
"properties": {
"coins": {
"additionalProperties": {
"items": {
"type": "integer"
},
"type": "array"
},
"title": "Coins",
"type": "object"
},
"search_width": {
"default": "6h",
"title": "Search Width",
"type": "string"
}
},
"required": [
"coins"
],
"title": "get_batch_historical_pricesArguments",
"type": "object"
}