Messages
{
"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
}
}Market Data
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.
Messages
{
"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
}
}instrument_name
type:string
required
The name of the instrument
Subscription Request
type:object
Client sends subscription request to subscribe to notification channel. Please refer to Notification page for more information.
Subscription Notification Data
type:object
Server sends subscription notification data
data
type:object
required
timestamp
type:integer
required
The timestamp (milliseconds since the Unix epoch)
instrument_name
type:string
required
Unique instrument identifier
best_bid_price
type:number
required
The current best bid price, null if there aren't any bids
best_bid_amount
type:number
required
It represents the requested order size of all best bids
best_ask_price
type:number
The current best ask price, null if there aren't any asks
best_ask_amount
type:number
It represents the requested order size of all best asks
Was this page helpful?