{
"jsonrpc": "2.0",
"method": "public/subscribe",
"id": 42,
"params": {
"channels": [
"quote.BTC-PERPETUAL"
]
}
}{
"data": {
"best_ask_amount": 50,
"best_ask_price": 3996.61,
"best_bid_amount": 40,
"best_bid_price": 3914.97,
"instrument_name": "BTC-PERPETUAL",
"timestamp": 1550658624149
}
}quote.(instrument_name)
Best bid/ask price and size for a specific instrument.
This subscription provides top-of-book updates (best bid and best ask) without the full depth of the order book. Use it when you only need the current spread and top sizes.
{
"jsonrpc": "2.0",
"method": "public/subscribe",
"id": 42,
"params": {
"channels": [
"quote.BTC-PERPETUAL"
]
}
}{
"data": {
"best_ask_amount": 50,
"best_ask_price": 3996.61,
"best_bid_amount": 40,
"best_bid_price": 3914.97,
"instrument_name": "BTC-PERPETUAL",
"timestamp": 1550658624149
}
}The name of the instrument
Client sends subscription request to subscribe to notification channel. Please refer to Notification page for more information.
Server sends subscription notification data
The timestamp (milliseconds since the Unix epoch)
Unique instrument identifier
The current best bid price, null if there aren't any bids
It represents the requested order size of all best bids
The current best ask price, null if there aren't any asks
It represents the requested order size of all best asks
Related topics
NotificationsOptions Data Collectionuser.trades.(instrument_name).(interval) book.(instrument_name).(interval) book.(instrument_name).(group).(depth).(interval)Was this page helpful?