Skip to main content

Websocket Orderbook snapshots

Access

Route path: /orderbooks-snapshots

Subscriptions

After successfully establishing a connection with the Websocket Server, the Websocket Client sends the following request to subscribe to a specific topic:

{ "Method": "subscribe", "CurrencyPairs": ['BTC_USDT'] }

After a successful subscription, the Websocket Client will receive a confirmation message:

{ "Result": "true" } After that, once the subscribed data is updated, the Websocket Client will receive the update message pushed by the Server

Unsubscribe

The format to unsubscribe is as follows:

{ "Method": "unsubscribe", "CurrencyPairs": ['BTC_USDT'] }

Confirmation of Unsubscription:

{ "Result": "true" }

Responses

ParameterDescription
CurrencyPairCodeCurrency pair code
BidsArray of bids
AsksArray of asks

Bid/Ask model

ParameterDescription
CurrencyPairCodeCurrency pair code
IsBidTrue/False
AmountOrder amount
PriceOrder price
DateCreatedOrder creation date