Address
/openApi/market/24kline
Receiving parameter
- Submit: GET
Example
curl -d /openApi/market/24kline
Submit parameter
ParamName | Y/N | Type | Example | Description |
---|---|---|---|---|
symbol | No | string | BTC-USDT | Query multiple 24 hours trading pairs separately,for example: BTC-USDT, ETH-USDT, EOS-USDT |
Return parameter
ParamName | Y/N | Type | Example | Description |
---|---|---|---|---|
errno | Yes | int | 0 | Status code |
errmsg | Yes | success | success | Status information |
result | Yes | array |
See the example |
Return result |
RESULT Instructions
{
"id": id,
"amount": 以基础币种计量的交易量,
"count": 24 hours orders
"open": 24 hours opening price
"close": 24 hours closing price
"low": 24 hours minimum price
"high": 24 hours maximum price
"vol": 以结算币种计量的交易量
}
Return example
{
"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"
}
}
]
}
{
"errno": 10010,
"errmsg": "
failed"
}
Comments
0 comments
Article is closed for comments.