Skip to content

Commit

Permalink
fix(stream): fix event name on unsubscribing
Browse files Browse the repository at this point in the history
  • Loading branch information
bludnic committed Dec 25, 2024
1 parent 5335579 commit c93120e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/bot/src/streams/markets.stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ export class MarketsStream extends EventEmitter {
this.tickerStream.on("ticker", handleTicker);

return () => {
this.candlesStream.off("market", handleCandle);
this.tradesStream.off("market", handleTrade);
this.orderbookStream.off("market", handleOrderbook);
this.tickerStream.off("market", handleTicker);
this.candlesStream.off("candle", handleCandle);
this.tradesStream.off("trade", handleTrade);
this.orderbookStream.off("orderbook", handleOrderbook);
this.tickerStream.off("ticker", handleTicker);
};
}

Expand Down

0 comments on commit c93120e

Please sign in to comment.