pro_get_candles
Fetch OHLCV candles for any trading pair and timeframe to analyze market trends and build charts.
Instructions
Gets OHLCV (Open, High, Low, Close, Volume) candles for Pro (Advanced Trading). Requires trading pair (e.g., BTC-EUR) and timeframe. Returns price data in specified timeframe with timestamp and date. Optional limit (default: 1000, max: 1000), startTime and endTime (Unix epoch milliseconds). If startTime/endTime not provided, defaults to last 24 hours. Essential for technical analysis and charting. Response is a list of candles with metadata. [PUBLIC]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pair | Yes | Trading pair in BASE-QUOTE format (e.g., BTC-EUR, ETH-USD) | |
| limit | No | Maximum number of candles to return (default: 1000, max: 1000) | |
| endTime | No | End time in Unix epoch milliseconds (default: current time) | |
| startTime | No | Start time in Unix epoch milliseconds (default: 24 hours before endTime) | |
| timeframe | Yes | Candle interval: 1m (1 min), 5m (5 min), 15m (15 min), 30m (30 min), 1h (1 hour), 4h (4 hours), 1d (1 day), 1w (1 week), 1M (1 month) |