The Kline of a transaction pair.
URL:
wss://api.crossexchange.io/wsv1
Request:
{
'event': ' subscribe ',
'channel': 'kline',
"pair": "ETH_USDT",
"type": "2D",
"time_start": "1443659698",
"time_end": "1443659698
}
event |
subscribe |
channel |
kline |
pair |
ETH_USDT |
type |
2D | other |
time_start |
Timestamp,1443659698 |
time_end |
1443659698 |
Response:
{
"channel": "kline",
"pair": "ETH_USDT ",
"data": {
[
"1490337840000", /*time*/
"995.37", /*open price*/
"996.75", /*highest price*/
"995.36", /*lowest price*/
"996.75", /*close price*/
"9.112"], /*volume*/
…}
}
Upload:
{
"channel": "kline",
"pair": "ETH_USDT ",
"data": {
[
"1490337840000",
"995.37",
"996.75",
"995.36",
"996.75",
"9.112"],
…
}
}