Get Crypto Bars
get_crypto_barsRetrieve historical OHLCV price bars for cryptocurrencies to analyze market trends and performance over specified timeframes.
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.
Args: symbols: Comma-separated crypto pairs (e.g. "BTC/USD" or "BTC/USD,ETH/USD"). timeframe: Bar aggregation period — "1Min", "5Min", "15Min", "30Min", "1Hour", "1Day", "1Week", or "1Month". start: Inclusive start time (RFC 3339). Omit to use relative lookback. end: Inclusive end time (RFC 3339). Omit for current time. days: Days to look back when start is omitted (default 1). hours: Additional hours in the lookback (default 0). minutes: Additional minutes in the lookback (default 0). limit: Max total data points returned across all symbols, 1–10000 (default 1000). sort: Timestamp sort order — "asc" (default) or "desc".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbols | Yes | ||
| timeframe | No | 1Hour | |
| start | No | ||
| end | No | ||
| days | No | ||
| hours | No | ||
| minutes | No | ||
| limit | No | ||
| sort | No | asc |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||