Set up your API key
Build faster with AI
TL;DR
Use /coins/{id}/history for point-in-time tax event prices, /coins/{id}/market_chart/range for historical time series, /coins/{id}/ohlc/range for OHLC benchmarks, and /simple/price with
Use /coins/{id}/history for point-in-time tax event prices, /coins/{id}/market_chart/range for historical time series, /coins/{id}/ohlc/range for OHLC benchmarks, and /simple/price with
include_last_updated_at for timestamped NAV snapshots.
Replace YOUR_API_KEY in the examples below with your actual key. Get one here →
Pipeline Setup
Map assets — /coins/list
Build a lookup table mapping your internal identifiers to CoinGecko coin IDs and contract addresses.
- Pro API
- Demo API
| Key param | Use |
|---|---|
include_platform | Include contract addresses per platform — essential for reconciling tokens by address |
Validate currencies — /simple/supported_vs_currencies
Confirm your reporting currencies are supported before building queries.
- Pro API
- Demo API
Historical Data
Tax event prices — /coins/{id}/history
Fair market value at a specific date — the core endpoint for tax reporting and trade reconciliation.Prices are returned in all supported fiat currencies simultaneously — no separate calls needed for multi-jurisdiction reports.
- Pro API
- Demo API
The
date parameter uses dd-mm-yyyy format (not ISO). Data is a snapshot at 00:00:00 UTC.Historical time series — /coins/{id}/market_chart/range
Price, market cap, and volume as
[timestamp, value] arrays for a custom date range — maps directly to database columns.- Pro API
- Demo API
| Key param | Use |
|---|---|
from / to | ISO dates or UNIX timestamps |
interval | daily or hourly for consistent data points (paid plans), or omit for auto |
OHLC benchmarks — /coins/{id}/ohlc/range
Daily or hourly OHLC candles for a custom date range — use closing price as end-of-day valuation, or open/close spread for volatility reporting.Response format:
- Pro API
- Demo API
[timestamp, open, high, low, close] — consistent five-element arrays.Daily Snapshots
Timestamped NAV — /simple/price
Current prices with
Schedule this call daily for end-of-day NAV records.
last_updated_at — the audit timestamp confirming when CoinGecko last updated the price.- Pro API
- Demo API
| Key param | Use |
|---|---|
include_last_updated_at | UNIX timestamp — critical for audit trails |
include_market_cap | AUM and exposure reporting |
precision | Consistent decimal formatting |

