Query 24-hour Market List
Query 24-Hour Market Ticker List
Address/openApi/contract/24kline
Received Parameters
Submission Method: GET
Example
curl -d /openApi/contract/24kline
Submission Parameters
| Parameter Name | Required | Type | Example | Description |
|---|---|---|---|---|
| symbol | No | string | BTC-USDT | Trading pair. Multiple pairs can be queried by separating them with ",". For example: BTC-USDT,ETH-USDT. If no parameter is passed, the details of all trading pairs will be retrieved. |
Return Parameters
| Parameter Name | Mandatory | Type | Example | Description |
|---|---|---|---|---|
| errno | Yes | int | 0 | Status code |
| errmsg | Yes | success | success | Status message |
| result | Yes | array | See example | Return result |
result Description
| Parameter Name | Required | Type | Example | Description |
|---|---|---|---|---|
| id | Yes | long | 0 | Transaction id |
| amount | Yes | string | 100 | 24-hour trading volume |
| count | Yes | int | 2 | Number of transactions in the last 24 hours |
| open | Yes | string | 0.432 | 24-hour opening price |
| close | Yes | string | 0.473 | 24-hour closing price |
| low | Yes | string | 0.43245 | 24-hour lowest price |
| high | Yes | string | 0.45 | 24-hour highest price |
| vol | Yes | string | 100 | 24-hour trading volume |
Return Example
JSON
{
"errno": 0,
"errmsg": "success",
"result": [
{
"symbol": "BTC-USDT",
"data": {
"id": 1564383039,
"amount": "501.58104763207614180517",
"count": 21030,
"open": "9510.3854955",
"close": "9611.293874",
"low": "9183.037249591129",
"high": "9722.409967228807",
"vol": "4758286.23346497644732575715063331978898"
}
},
{
"symbol": "ETH-USDT",
"data": {
"id": 1564383052,
"amount": "16009.212149527699210913",
"count": 29174,
"open": "210.117172",
"close": "211.8394075",
"low": "199.2297417116734",
"high": "215.22023539561525",
"vol": "3340147.73970105212247360817121760004971"
}
},
{
"symbol": "EOS-USDT",
"data": {
"id": 1564383052,
"amount": "211869.51477404722383204",
"count": 44779,
"open": "4.309048775000001",
"close": "4.283380825",
"low": "3.8982515118182044",
"high": "4.381447583333333",
"vol": "896966.117596907928217908379228164244991"
}
}
]
}