Address
Receiving parameter
Submit
Example
curl -d /openApi/market/kline
Submit parameter
ParamName |
Y/N |
Type |
Example |
Description |
symbol |
Yes |
string |
BTC-USDT |
Trading Pair |
period |
Yes |
string |
1min |
KLINE Forms :1min, 5min, 15min, 30min, 1hour, 6hour, 12hour, 1day, 1week |
size |
Yes |
int |
150 |
Number/Scope:[1,2000] |
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
ParamName |
Y/N |
Type |
Example |
Description |
ts |
Yes |
int |
1499184000 |
Data acquisition time |
symbol |
Yes |
string |
BTC-USDT |
Trading pair |
period |
Yes |
string |
1min |
KLINE Forms:1min, 5min, 15min, 30min, 60min, 1day, 1mon, 1week, 1year |
data |
Yes |
array |
见示例 |
kline data |
Data Explanation
"data": [
{
"id": KLINE id,
"amount": Volume,
"count": Trading volume orders,
"open": Opening price,
"close": Closing price,when KLINE is the latest one, it is the latest trading price.
"low": Minimum price,
"high":Maximum price,
"vol": Trading volumer,that is, sum (each deal price * the volume of the transaction)
}
]
Return example
{
"errno": 0,
"errmsg": "success",
"result": {
"symbol":"EOS-USDT",
"period":"1min",
"ts":"1499223904680",
"data": [{
"id": 1499184000,
"amount": 37593.0266,
"count": 0,
"open": 1935.2000,
"close": 1879.0000,
"low": 1856.0000,
"high": 1940.0000,
"vol": 71031537.97866500
}]
}
}
{
"errno": 10010,
"errmsg": "Failed"
}
Comments
0 comments
Article is closed for comments.