Get Candlestick Data
Description
Get the candlestick data of the trading pair
HTTP Request
- GET /open/api/get_records
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| symbol | String | Yes | coin pair, example: "btcusdt" |
| period | Integer | Yes | the 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
| Parameter | Type | Description |
|---|---|---|
| data | List<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
| Code | Description |
|---|---|
| 0 | success |
| 1 | system error |
