Skip to content

Get Candlestick Data

Description

Get the candlestick data of the trading pair

HTTP Request

  • GET /open/api/get_records

Request Parameters

ParameterTypeRequiredDescription
symbolStringYescoin pair, example: "btcusdt"
periodIntegerYesthe unit is minutes. For example, one minutes is 1, one day is 1440

Request Example

http
curl 'https://openapi.100ex.com/open/api/get_records?symbol=btcusdt&period=1'

Response Parameters

ParameterTypeDescription
dataList<Object>[data time(unix timestamp), opening price, the highest price, the lowest price, closing price, trading volume]

Response Example

json
{
    "code": "0",
    "msg": "suc",
    "data": [
        [
            1736134860,
            99182.0000000000,
            99213.5800000000,
            99182.0000000000,
            99194.9500000000,
            0.8230200000
        ]
    ],
    "message": null,
    "traceId": null
}

Status Code

CodeDescription
0success
1system error