Get Crypto Price History
crypto.price.historyRetrieve historical price data for any cryptocurrency, supporting configurable date range, interval, and output format (timeseries or OHLCV).
Instructions
Get price history for a cryptocurrency
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"coin_id": "<coin_id>"
},
"name": "crypto.price.history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Number of days of history (1-365) | |
| format | No | Response format: timeseries (price points) or ohlcv (candlestick data) | |
| coin_id | Yes | CoinGecko coin ID (e.g. bitcoin, ethereum) | |
| interval | No | Data point interval for price history (5m, hourly, or daily) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present only when the call failed. Includes error code, message, request_id, and any provider-specific extras. | |
| result | No | Tool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response. |