Get candlesticks
Retrieve the candlestick charts. This endpoint can retrieve the latest 1,440 data entries. Charts are returned in groups based on the requested bar.
Query parameters
instId
Instrument ID, e.g. BTC-USDT
bar
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/2D/3D/1W/1M/3M] UTC+0 opening price k-line: [6Hutc/12Hutc/1Dutc/2Dutc/3Dutc/1Wutc/1Mutc/3Mutc]
after
Pagination of data to return records earlier than the requested ts
before
Pagination of data to return records newer than the requested ts. The latest data will be returned when using before individually
limit
Number of results per request. The maximum is 300. The default is 100.
Response
Successful response
code
Result code. 0 means success; any other value is an error code.
msg
Error message. Empty on success.
data

