Historical crypto OHLCV bars (gzip required)
get_crypto_barsHistorical crypto prices: OHLCV candles for BTCUSD, ETHUSD and other crypto pairs, 1-minute to monthly intervals, up to 5,000 rows per call, paginated. Costs $0.01 USDC per call, paid with x402 on Base; failed calls are not charged.
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": {
"symbol": "<symbol>",
"start": "<start>"
},
"name": "get_crypto_bars"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Inclusive upper bound. Default now. | |
| limit | No | ||
| start | Yes | Inclusive lower bound (YYYY-MM-DD or RFC3339). Required. | |
| cursor | No | Opaque pagination cursor from a previous response's `meta.next_cursor`. | |
| symbol | Yes | USD-quoted crypto symbol, e.g. `BTCUSD`. | |
| interval | No | Bar interval. Default 1m. All `/v1/hist/*` routes accept the same set: intraday (1m–1h), plus `1d` (UTC calendar day), `1w` (Monday-aligned), and `1mo` (calendar month). Coarser bars are aggregated from 1-minute history; a `1d`/`1w`/`1mo` bar opens at midnight UTC of the period start. | 1m |