From 1dfc59aa804ab6bf3017223ce892fc3d65c85581 Mon Sep 17 00:00:00 2001 From: Tucsky Date: Fri, 6 Dec 2024 10:17:44 +0100 Subject: [PATCH] fix(Binance): refine trade filtering --- src/exchanges/binance_futures.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/exchanges/binance_futures.js b/src/exchanges/binance_futures.js index 0b52151..257c00e 100644 --- a/src/exchanges/binance_futures.js +++ b/src/exchanges/binance_futures.js @@ -136,7 +136,7 @@ class BinanceFutures extends Exchange { if (!json) { return - } else if (json.e === 'trade' && json.X !== 'INSURANCE_FUND') { + } else if (json.T && (!json.X || json.X === 'MARKET')) { return this.emitTrades(api.id, [ this.formatTrade(json, json.s.toLowerCase()) ])