Websocket API
Description AuthenticationMethods
trade cancelOrder orderInfo getFunds subscribeOrderbook unsubscribeOrderbookAllows you to subscribe to the orderbook of a certain trading pair.
The example of query:
{
"method": "subscribeOrderbook",
"params": {
"pair":"bch_usd"
}
}
The example of response:
{
"success":1,
"result":{
"msg":"You successfully subscribed to Orderbook",
"pair":"bch_usd"
}
}
If the order is updated for this pair, you will be sent a snapshot of the orderbook after the change:
{
"success":1,
"method":"snapshotOrderbook",
"symbol":"bch_usd",
"result":{
"bch_usd":{
"asks":[[214,0.34],..],
"bids":[[212,0.54],..]
}
}
}