Retrieve the candlestick charts of the index. This endpoint can retrieve the latest 1,440 data entries. Charts are returned in groups based on the requested bar.
- Provider
- OKX API V5
- Input summary
- {"name":"instId","type":"string","required":true,"description":"Index, e.g. BTC-USD Same as uly ."}, {"name":"after","type":"string","required":false,"description":"Pagination of data to return records earlier than the requested ts"}, {"name":"before","type":"string","required":false,"description":"Pagination of data to return records newer than the requested ts . The latest data will be returned when using before individually"}, {"name":"bar","type":"string","required":false,"description":"Bar size, the default is 1m e.g. [ 1m /3m /5m /15m /30m /1H /2H /4H ] UTC+8 opening price k-line: [ 6H /12H /1D /1W /1M /3M ]UTC+0 opening price k-line: [ 6Hutc /12Hutc /1Dutc..., {"name":"limit","type":"string","required":false,"description":"Number of results per request. The maximum is 100 . The default is 100"}
- Output summary
- Not available
- Billing
- 1
- Freshness
- Not available
- Verification
- Not available