Skip to content

Commit

Permalink
improvement: exclude binance futures trades with X==NA
Browse files Browse the repository at this point in the history
  • Loading branch information
thaaddeus committed Aug 6, 2024
1 parent 91c4554 commit 07e0f58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mappers/binance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class BinanceTradesMapper
*map(binanceTradeResponse: BinanceResponse<BinanceTradeData>, localTimestamp: Date) {
const binanceTrade = binanceTradeResponse.data

const isOffBookTrade = binanceTrade.X === 'INSURANCE_FUND' || binanceTrade.X === 'ADL'
const isOffBookTrade = binanceTrade.X === 'INSURANCE_FUND' || binanceTrade.X === 'ADL' || binanceTrade.X === 'NA'
if (isOffBookTrade) {
return
}
Expand Down Expand Up @@ -459,7 +459,7 @@ type BinanceTradeData = {
q: string
T: number
m: true
X?: 'INSURANCE_FUND' | 'MARKET' | 'ADL'
X?: 'INSURANCE_FUND' | 'MARKET' | 'ADL' | 'NA'
}

type BinanceBookLevel = [string, string]
Expand Down

0 comments on commit 07e0f58

Please sign in to comment.