Orderbook
Subscribe OrderBook
Push snapshot at first, and keep pushing real-time changes later.
URL
wss://big.one/ws/contract/v2/depth@{symbol}
Request Parameters
Parameters | Required | Type | Note |
---|---|---|---|
symbol | :white_check_mark: | string | Contract types, includes BTCUSD , BTCUSDT , ETHUSDT , EOSUSDT |
Request Example
Response Example
Snapshot
{
"to": 91277134,
"bestPrices": {
"ask": 11202.5,
"bid": 11192.5
},
"lastPrice": 11183.5,
"bids": {
"11192": 35,
"11184": 742,
"11192.5": 389,
"11188": 293
},
"asks": {
"11202.5": 1806,
"11212.5": 2138,
"11211.5": 19308
},
"from": 0
}
Real-time
{
"bids": {
"11183": 3500
},
"lastPrice": 11183.5,
"from": 91277135,
"bestPrices": {
"ask": 11202.5,
"bid": 11192.5
},
"asks": {},
"to": 91277135
}