Skip to content

Commit

Permalink
fixup! Bybit: Fix WS ticker processing
Browse files Browse the repository at this point in the history
  • Loading branch information
gbjk committed May 14, 2024
1 parent 944f0dd commit 29f2a5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions exchanges/bybit/bybit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3111,6 +3111,7 @@ func TestPushData(t *testing.T) {
func TestWsTicker(t *testing.T) {
t.Parallel()
n := new(Bybit)
testexch.UpdatePairsOnce(t, b)
assetRouting := []asset.Item{asset.Spot, asset.USDTMarginedFutures, asset.Options, asset.USDTMarginedFutures}
sharedtestvalues.TestFixtureToDataHandler(t, b, n, "testdata/wsTicker.json", func(r []byte) error {
defer slices.Delete(assetRouting, 0, 1)
Expand Down
2 changes: 1 addition & 1 deletion exchanges/bybit/bybit_websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ func (by *Bybit) wsProcessPublicTicker(assetType asset.Item, resp *WebsocketResp
return err
}

p, err := currency.NewPairFromString(tickResp.Symbol)
p, err := by.MatchSymbolWithAvailablePairs(tickResp.Symbol, assetType, true)
if err != nil {
return err
}
Expand Down

0 comments on commit 29f2a5d

Please sign in to comment.