historical_token_prices
Get historical prices for ERC20 and native tokens on multiple blockchains. Specify chain, currency, contract address, and date range to receive price data in ascending or descending order.
Instructions
Get the historical prices of one (or many) large cap ERC20 tokens between specified date ranges. Also supports native tokens. Required: chainName (blockchain network), quoteCurrency (price currency), contractAddress (token contract), from (start date YYYY-MM-DD), to (end date YYYY-MM-DD). Optional: pricesAtAsc (set to true for chronological ascending order, default is false for descending order). Returns historical token prices for the specified time range.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chainName | Yes | The blockchain network to query (e.g., 'eth-mainnet', 'matic-mainnet', 'bsc-mainnet'). | |
| quoteCurrency | Yes | Currency to quote token prices in (e.g., 'USD', 'EUR'). This determines the currency for historical price data. | |
| contractAddress | Yes | The token contract address to get historical prices for. Use the native token address for native token prices. Supports ENS, RNS, Lens Handle, and Unstoppable Domain resolution. | |
| from | Yes | Start date for historical price data in YYYY-MM-DD format (e.g., '2023-01-01'). | |
| to | Yes | End date for historical price data in YYYY-MM-DD format (e.g., '2023-12-31'). | |
| pricesAtAsc | No | Sort prices in ascending chronological order. Default is false (descending order, newest first). |