Remove wss-event event from BfxWebSocketClient and BfxWebSocketBucket.

This commit is contained in:
Davide Casale
2023-10-13 17:38:25 +02:00
parent 374b632c6c
commit e5ec94b757
9 changed files with 13 additions and 44 deletions

View File

@@ -16,10 +16,6 @@ def on_candles_update(_sub: Candles, candle: Candle):
def on_t_trade_execution(_sub: Trades, trade: TradingPairTrade):
print(f"New trade: {trade}")
@bfx.wss.on("wss-error")
def on_wss_error(code: Error, msg: str):
print(code, msg)
@bfx.wss.on("open")
async def on_open():
await bfx.wss.subscribe(Channel.CANDLES, key="trade:1m:tBTCUSD")