Skip to content

Commit

Permalink
fixup! 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 4d3a7e0 commit d3406a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exchanges/bitfinex/bitfinex_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ type wsTrade struct {

// UnmarshalJSON unmarshals json bytes into a wsTrade
func (t *wsTrade) UnmarshalJSON(data []byte) error {
return json.Unmarshal(data, &[]any{&t.ID, &t.Timestamp, &t.Amount, &t.Price, &t.Period})
return json.Unmarshal(data, &[5]any{&t.ID, &t.Timestamp, &t.Amount, &t.Price, &t.Period})
}

// Candle holds OHLC data
Expand Down

0 comments on commit d3406a6

Please sign in to comment.