Set up your API key
Build faster with AI
TL;DR
Use /simple/price for live valuation, /coins/{id}/history for cost basis on purchase dates, /coins/markets for dashboard data, and /coins/{id}/market_chart for performance charts.
Use /simple/price for live valuation, /coins/{id}/history for cost basis on purchase dates, /coins/markets for dashboard data, and /coins/{id}/market_chart for performance charts.
Replace YOUR_API_KEY in the examples below with your actual key. Get one here →
Portfolio Workflow
1
Set up currency preference — /simple/supported_vs_currencies
Fetch all supported fiat and crypto currencies to populate a currency selector in your UI.Pass the user’s choice as
- Pro API
- Demo API
vs_currencies to pricing endpoints.2
Live valuation — /simple/price
Poll spot prices for all holdings. Batch multiple coins in one call — minimal overhead for frequent polling.Multiply each price by your holding quantity, then sum for total portfolio value.
- Pro API
- Demo API
3
Token prices by contract — /simple/token_price/{id}
For ERC-20 and other contract-based tokens — look up prices by contract address instead of coin ID.
- Pro API
- Demo API
4
Dashboard data — /coins/markets
Rich market data for up to 250 coins per page — rankings, sparklines, highs/lows, and multi-timeframe changes.
- Pro API
- Demo API
5
Cost basis — /coins/{id}/history
Price snapshot on a specific date — calculate cost basis for each purchase.
- Pro API
- Demo API
The
date parameter uses dd-mm-yyyy format (not ISO). Data returned is a snapshot at 00:00:00 UTC.6
Performance charts — /coins/{id}/market_chart
Price, market cap, and volume over time — for charting portfolio value and calculating time-weighted returns.
- Pro API
- Demo API

