mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-25 07:26:48 +00:00
Bitmex: Fix handling index records in WS trade stream (#1685)
Fixes handling for Size == 0 index records sent to trade stream fixes #1684
This commit is contained in:
@@ -2145,13 +2145,13 @@ func TestGetPairAndAssetTypeRequestFormatted(t *testing.T) {
|
||||
}
|
||||
|
||||
_, _, err = b.GetPairAndAssetTypeRequestFormatted("BTCAUD")
|
||||
if !errors.Is(err, errSymbolCannotBeMatched) {
|
||||
t.Fatalf("received: '%v' but expected: '%v'", err, errSymbolCannotBeMatched)
|
||||
if !errors.Is(err, ErrSymbolCannotBeMatched) {
|
||||
t.Fatalf("received: '%v' but expected: '%v'", err, ErrSymbolCannotBeMatched)
|
||||
}
|
||||
|
||||
_, _, err = b.GetPairAndAssetTypeRequestFormatted("BTCUSDT")
|
||||
if !errors.Is(err, errSymbolCannotBeMatched) {
|
||||
t.Fatalf("received: '%v' but expected: '%v'", err, errSymbolCannotBeMatched)
|
||||
if !errors.Is(err, ErrSymbolCannotBeMatched) {
|
||||
t.Fatalf("received: '%v' but expected: '%v'", err, ErrSymbolCannotBeMatched)
|
||||
}
|
||||
|
||||
p, a, err := b.GetPairAndAssetTypeRequestFormatted("BTC-USDT")
|
||||
|
||||
Reference in New Issue
Block a user