Skip to content

Commit

Permalink
fix(Binance): refine trade filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
Tucsky committed Dec 6, 2024
1 parent 8052de0 commit 1dfc59a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/exchanges/binance_futures.js
Original file line number Diff line number Diff line change
Expand Up @@ -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())
])
Expand Down

0 comments on commit 1dfc59a

Please sign in to comment.