Subscribe
client → serverStreams live best bid and ask for one or more pairs on one exchange. Send one
request per exchange; All is not accepted here — use Compare
to see every venue at once. Stop with Unsubscribe, task: "Subscribe".
Parameters
- event
"Subscribe"- exchange
- One of
Binance,CoinBase,Kraken,BybitSpot. - pairs
- One pair, or several in the same request, each with an
instrumentfield. See Instruments by exchange. - channel
- Data channel to subscribe to.
- type
- Type of data to subscribe to.
{
"event": "Subscribe",
"exchange": "Binance",
"pairs": [
{ "instrument": "BTC/USDT" }
],
"channel": "Book",
"type": "Quote"
}
{
"event": "Subscribe",
"exchange": "Kraken",
"pairs": [
{ "instrument": "BTC/USDT" },
{ "instrument": "ETH/USDT" },
{ "instrument": "SOL/USDT" }
],
"channel": "Book",
"type": "Quote"
}
{
"exchange": "Binance",
"product_type": "Quote",
"instrument": "BTC/USDT",
"data": { "AggregatedQuotes": {
"aggregated_quotes_info": {
"Bid": { "tick": [ { "price": 74612.58, "quantity": 2.41854, "side": "bid" } ] },
"Ask": { "tick": [ { "price": 74612.59, "quantity": 0.81200, "side": "ask" } ] }
} } }
}