`binance`: same thing, only unsub when connected
parent
b89fd9652c
commit
afc45a8e16
|
@ -519,6 +519,7 @@ async def stream_quotes(
|
||||||
subs.append("{sym}@bookTicker")
|
subs.append("{sym}@bookTicker")
|
||||||
|
|
||||||
# unsub from all pairs on teardown
|
# unsub from all pairs on teardown
|
||||||
|
if ws.connected():
|
||||||
await ws.send_msg({
|
await ws.send_msg({
|
||||||
"method": "UNSUBSCRIBE",
|
"method": "UNSUBSCRIBE",
|
||||||
"params": subs,
|
"params": subs,
|
||||||
|
|
Loading…
Reference in New Issue