For example this endpoint:
If we would stream this, and send unsubscribe
{
"method": "UNSUBSCRIBE",
"params":
[
"btcusdt@aggTrade",
],
"id": 1
}
would the above endpoint also stop sending messages?
For example this endpoint:
If we would stream this, and send unsubscribe
{
"method": "UNSUBSCRIBE",
"params":
[
"btcusdt@aggTrade",
],
"id": 1
}
would the above endpoint also stop sending messages?
Hey,
If you unsubscribe from the stream btcusdt@aggTrade
, you will stop receiving messages for that stream. However, the WebSocket connection will remain open, and you will continue to receive ping frames.
does this also affect any RAW streams that have been connected?
wss://fstream.binance.com/ws/bnbusdt@aggTrade
wss://fstream.binance.com/stream?streams=bnbusdt@aggTrade/btcusdt@markPrice
Yes.