Interface: FuturesGetKlinesReq
Req for GET /linear-swap-ex/market/history/kline. Either size or (from+to) required.
Properties
| Property | Type | Description |
|---|---|---|
contract_code | string | Contract code or type. swap: BTC-USDT; future: BTC-USDT-220325 or BTC-USDT-CW/NW/CQ/NQ |
from? | number | Start timestamp (seconds) |
period | FuturesKlinePeriod | 1min, 5min, 15min, 30min, 60min, 1hour, 4hour, 1day, 1mon |
size? | number | Items [1-2000]. Default 150. Ignored if from+to provided |
to? | number | End timestamp (seconds). Required if from provided |