get_kline
Get historical OHLCV candles, including CN/HK futures open_interest.
The last candle may still be forming. Adjusted history may change after
corporate actions; record query time and adjustment mode for backtests.
Futures normally omit quote_volume. Limit defaults to 100, caps at 1000;
non-positive limits use 100. start_time must not exceed end_time.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Product type for disambiguation: stock, crypto, forex, indices, futures | |
| limit | No | Number of candles, default 100, max 1000 | |
| adjust | No | Stock price adjustment: none (default), forward, backward; US/HK/CN stocks | |
| symbol | Yes | Single symbol code, e.g. 'BTCUSDT' | |
| end_time | No | End time as Unix milliseconds | |
| interval | Yes | Candle interval: 1m 3m 5m 15m 30m 1h 2h 4h 1d 1w 1M | |
| start_time | No | Start time as Unix milliseconds |