Get Crypto Bars
get_crypto_barsRetrieve historical OHLCV price bars for one or more crypto pairs. Set symbols, timeframe, and lookback period to obtain market data for analysis, backtesting, or strategy development.
Instructions
Retrieve historical price bars (OHLCV) for one or more cryptocurrencies.
When start is omitted, it is automatically computed as now minus the days/hours/minutes lookback.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Inclusive end time (RFC 3339). Omit for current time. | |
| days | No | Days to look back when start is omitted (default 1). | |
| sort | No | Timestamp sort order — "asc" (default) or "desc". | asc |
| hours | No | Additional hours in the lookback (default 0). | |
| limit | No | Max total data points returned across all symbols, 1–10000 (default 1000). | |
| start | No | Inclusive start time (RFC 3339). Omit to use relative lookback. | |
| minutes | No | Additional minutes in the lookback (default 0). | |
| symbols | Yes | Comma-separated crypto pairs (e.g. "BTC/USD" or "BTC/USD,ETH/USD"). | |
| timeframe | No | Bar aggregation period — "1Min", "5Min", "15Min", "30Min", "1Hour", "1Day", "1Week", or "1Month". | 1Hour |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||