Skip to content

Commit

Permalink
fixup! Bitfinex: Fix WS trade processing
Browse files Browse the repository at this point in the history
  • Loading branch information
gbjk committed Dec 29, 2024
1 parent d3406a6 commit 48ebaf7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions exchanges/bitfinex/bitfinex_websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -922,11 +922,11 @@ func (b *Bitfinex) handleWSAllTrades(s *subscription.Subscription, respRaw []byt
t.Side = order.Sell
t.Amount = math.Abs(t.Amount)
}
if feedEnabled {
b.Websocket.DataHandler <- &t
}
trades[i] = t
}
if feedEnabled {
b.Websocket.DataHandler <- trades
}
if b.IsSaveTradeDataEnabled() {
err = trade.AddTradesToBuffer(b.GetName(), trades...)
}
Expand Down

0 comments on commit 48ebaf7

Please sign in to comment.