Crypto OHLCV bars
crypto_barsRetrieve historical OHLCV bars for a USD-quoted crypto symbol over a specified time range and interval, with pagination for large datasets.
Instructions
Fetch historical OHLCV bars for a USD-quoted crypto symbol (e.g. BTCUSD) over a time range at a chosen interval (default 1m); volume is fractional base-asset volume. Large ranges are size-capped (watch for the _truncated note) — narrow the range or paginate with cursor/limit (max 5000/page). For the current price use last_trade.
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": "crypto_bars"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Inclusive upper bound. Default: now. | |
| limit | No | Page size, max 5000. | |
| start | Yes | Inclusive lower bound, YYYY-MM-DD or RFC3339 (UTC). Required. | |
| cursor | No | Opaque pagination cursor. | |
| symbol | Yes | USD-quoted crypto symbol, e.g. BTCUSD. | |
| interval | No | Bar interval. Default 1m. |