Token price history
getTokenPriceHistoryHistorical USD price series for a token contract on a chain, via the Ankr Advanced API indexer: a list of { timestamp, usd, block } quotes.
limit_applied reports the cap the call was actually made with (default 100, max 1000). When count reaches that cap the response sets possibly_truncated: true: this endpoint returns NO continuation token, so a clipped series and a series that simply ends are indistinguishable, and there is no cursor to page with. Treat such a series as incomplete-of-unknown-length rather than the full history; raise limit or walk fromTimestamp/toTimestamp yourself.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | ||
| limit | No | Max quotes (default 100) | |
| interval | No | Interval between quotes, in seconds | |
| toTimestamp | No | End UNIX timestamp (seconds) | |
| fromTimestamp | No | Start UNIX timestamp (seconds) | |
| contractAddress | Yes | ERC-20 token contract address |