Kline WebSocket
Description
//# Request
{
"dataType":"1_KLINE_30M_ETH_HSR",
"dataSize":1,
"action":"ADD"
}
//# Response
["K", "1", "ETC_HSR", 1509881343, "1.232000", "1.232000", "1.228000", "1.228000", "1.60", "-0.32", "6.61", "1M", "false"]
Returned Value Specification
date: The server time when return data
Data Type (Kline Data Type), ID, Coins information, Timestamp, Opening data, High, Low, Closing price, Trading volume, Change, USD rate, Kline period
Request Parameter Specification
Parameters |
Description |
dataType
|
Request Type
1_KLINE_[TM]_ETC_BTC : [TM]Time period Kline data of ETC_BTC
...
1_KLINE_30M_ETH_HSR : 30 Mins Kline data of ETH_HSR
(Time period: 1M, 5M, 15M, 30M, 1H, 1D)
|
dataSize
|
The data amount of first requests, maximum 50 datas
|
action
|
Requested Action Type
ADD:Add data to current WebSocket link
DEL:Delete date from current WebSocket link
|
|
The depth of market
Description
//# Request
{
"dataType":"1_ENTRUST_ADD_ETH_HSR",
"dataSize":1,
"action":"ADD"
}
//# Response
//The first total content return
[
[
"AE","1",
"ETH_HSR",
"1511259644",
{
"asks":
[["32.180000","0.311000"],
["32.177000","0.113000"]]
},
{
"bids":
[["19.325000","0.388000"],
["19.324000","1.658000"]]
}
]
]
//Increments return
[
[
"E",
"1",
"1511259727",
"ETH_HSR",
"BID",
"19.350000",
"0.000000"
]
]
Returned Value Specification
//The first total content return
[
Date Type,
ID,
Timestamp,
Coins information,
asks:Sell Price [[Price, Amount]],
bids:Buy Price [[Price, Amount]]
]
//Increments return
[
Date Type,
ID,
Coins information,
Timestamp,
Trading Type,
Price,
Amount
]
Request Parameter Specification
Parameters |
Description |
dataType
|
Request Type
1_ENTRUST_ETC_BTC : 每次都返回ETC_BTC全量委托记录
...
1_ENTRUST_ADD_ETC_BTC : 首次返回ETC_BTC全量委托记录,之后增量返回
|
dataSize
|
The data amount of first requests, maximum 50 datas
|
action
|
Requested Action Type
ADD:Add data to current WebSocket link
DEL:Delete date from current WebSocket link
|
|
History Order WebSocket
Description
//# Request
{
"dataType":"1_TRADE_ETH_HSR",
"dataSize":1,
"action":"ADD",
"isFull":0 //可选
}
//# Response
[
["T","1","1511246611","ETH_HSR","bid","19.843000","0.018"],
["T","1","1511246611","ETH_HSR","ask","20.200000","0.017"]
]
Returned Value Specification
Data Type, ID, Coins information, Timestamp, Trading Type, Price, Amount
Request Parameter Specification
Parameters |
Description |
dataType
|
1_TRADE_ETC_BTC : Acquire ETC_BTC history trading records
...
1_TRADE_MONA_QTUM : Acquire MONA_QTUM history trading records
|
dataSize
|
The data amount of first requests, maximum 50 datas
|
action
|
Requested Action Type
ADD:Add data to current WebSocket link
DEL:Delete date from current WebSocket link
|
isFull
|
0,首次访问不返回历史成交记录,其它则返回(选填)
|
|
All Markets Quotation
Description
//# Request
{
"dataType":"EXX_MARKET_LIST_ALL",
"dataSize":1,
"action":"ADD"
}
//# Response
{
"market":[
[
1001,
"btc",
"hsr",
"",
"0.001957",
"1812155.500000",
"-11.520000",
"0.001957",
"0.001958"
],
....
[
1001,
"btc",
"etc",
"",
"0.002150",
"16020.370117",
"-6.480000",
"0.002149",
"0.002150"
]
]
}
Returned Value Specification
{
Market:[
Market ID,
Coin of seller,
Coin of buyer,
Reserved attribute,
Last price,
24H trading volume,
24H change,
Buy1 price,
Sell1 Price
]
....
}
Request Parameter Specification
Parameters |
Description |
dataType
|
EXX_MARKET_LIST_ALL : Acquire all market quotation
|
dataSize
|
The data amount of first requests, maximum 50 datas
|
action
|
Requested Action Type
ADD:Add data to current WebSocket link
DEL:Delete date from current WebSocket link
|
|
Single Market Quotation
Description
//# Request
{
"dataType":"EXX_MARKET_LIST_HSR_BTC",
"dataSize":1,
"action":"ADD"
}
//# Response
[
1001,
"btc",
"hsr",
"",
"0.001957",
"1808721.750000",
"-11.560000",
"0.001957",
"0.001958"
]
Returned Value Specification
[
Market ID,
Coin of seller,
Coin of buyer,
Reserved attribute,
Transaction price,
Trading volume,
Change,
Buy1 price,
Sell1 Price
]
Request Parameter Specification
Parameters |
Description |
dataType
|
EXX_MARKET_LIST_HSR_BTC : Acquire HSR_BTC quotation
...
EXX_MARKET_LIST_ETH_HSR : Acquire HSR_BTC quotation
|
dataSize
|
The data amount of first requests, maximum 50 datas
|
action
|
Requested Action Type
ADD:Add data to current WebSocket link
DEL:Delete date from current WebSocket link
|
|