GET/v1/api/kline
URL:
https://api.crossexchange.io/GET/v1/api/kline?pair=ETH_USDT&type=1
Request filed:
pair |
The name of a transactions pair to request. eg.ETH_USDT |
String |
type |
The duration of each timeline. one day: D two day:2D one week:W 1 month: MONTH 1 minute:1MIN 5 minutes: 5MIN 15 minutes:15MIN 30 minutes:30MIN 1 hour:1H 2 hours:2H 4 hours:4H 6 hours:6H 12 hours:12H |
String |
count |
Item number, 100 by default, up to 2000 (nearly two weeks of data) |
Integer |
Response:
{
"code": 0,
"data": [
[
"1529667540000",
"0.010000",
"0.010000",
"0.010000",
"0.010000",
"0.000000"
]
],
"channel": "kline",
"pair": "ETH_USDT"
}
data |
time, open price, highest price, lowest price, close price, volume of this time period |
pair |
pair name |
channel |
ticker | depth | Kline | trades |
Error:
{"code":-1,"msg":"fail"}
code |
response status, 0 is success, other is fail. |
msg |
error massage |