The trade history of a transaction pair.
URL:
wss://api.crossexchange.io/wsv1
Request:
{
"event":"subscribe",
"channel":"trades",
"pair":"ETH_USDT",
"last":20
}
event |
subscribe |
channel |
trades |
pair |
a transaction pair name |
last |
rows of trade history list |
Response:
{
"channel":" trades ",
"pair":" ETH_USDT ",
"data":{
[
"1001",
"2463.86",
"0.052",
"1443659698"
],
…}
}
channel |
trades |
pair |
ETH_USDT |
data |
1001: trade id 2463.86: price 0.052: volume, the volume is positive means bids and a negative number indicates asks 1443659698: timestamp |
Upload:
{
"channel":" trades",
"pair":" ETH_USDT ",
"data":{
["1001","2463.86","0.052","1443659698"],
…
}
}