Get price on a past date
get_historical_priceRetrieve a cryptocurrency's price, market cap, and volume for any past calendar date at midnight UTC. Use for historical snapshots; for date ranges, use get_market_chart.
Instructions
Get a coin's price, market cap, and volume as of 00:00 UTC on a past calendar date. For a range of dates use get_market_chart instead. Note: CoinGecko restricts this endpoint to Demo and Pro plans — without an API key it fails. get_market_chart covers history on the public tier.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Date in YYYY-MM-DD form, e.g. '2024-03-15'. | |
| coin_id | Yes | CoinGecko coin id, e.g. 'bitcoin'. | |
| vs_currency | No | Quote currency, e.g. 'usd'. | usd |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Snapshot date, ISO YYYY-MM-DD. | |
| name | Yes | Display name. | |
| price | No | Price at 00:00 UTC on that date. | |
| symbol | Yes | Ticker symbol, upper-cased. | |
| coin_id | Yes | CoinGecko coin id. | |
| market_cap | No | Market capitalisation on that date. | |
| vs_currency | Yes | Currency the figures are denominated in. | |
| total_volume | No | Trading volume on that date. | |
| price_display | No | Formatted price. |