Get current coin prices
get_coin_priceFetch live cryptocurrency prices for multiple coins and currencies in a single request. Optionally include market cap, 24-hour volume, and 24-hour change.
Instructions
Get current prices for one or more coins in one or more currencies, optionally with market cap, 24-hour volume, and 24-hour change. Batch coins into a single call rather than calling once per coin.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coin_ids | Yes | Comma-separated CoinGecko coin ids, e.g. 'bitcoin,ethereum'. | |
| vs_currencies | No | Comma-separated quote currency codes, e.g. 'usd,eur'. | usd |
| include_24h_change | No | Include 24-hour percentage price change for each pair. | |
| include_24h_volume | No | Include 24-hour trading volume for each pair. | |
| include_market_cap | No | Include market capitalisation for each pair. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quotes | Yes | One entry per (coin, currency) pair that resolved. | |
| retrieved_at | Yes | UTC timestamp of this lookup. | |
| requested_coins | Yes | Coin ids as requested, after normalisation. | |
| unresolved_coins | No | Requested ids CoinGecko returned no data for — usually a wrong id; resolve the correct one with search_coins. |