mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-24 15:10:19 +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:
@@ -49,13 +49,15 @@ const (
|
||||
DefaultWebsocketOrderbookBufferLimit = 5
|
||||
)
|
||||
|
||||
// Public Errors
|
||||
var (
|
||||
// ErrExchangeNameIsEmpty is returned when the exchange name is empty
|
||||
ErrExchangeNameIsEmpty = errors.New("exchange name is empty")
|
||||
ErrExchangeNameIsEmpty = errors.New("exchange name is empty")
|
||||
ErrSymbolCannotBeMatched = errors.New("symbol cannot be matched")
|
||||
)
|
||||
|
||||
var (
|
||||
errEndpointStringNotFound = errors.New("endpoint string not found")
|
||||
errConfigPairFormatRequiresDelimiter = errors.New("config pair format requires delimiter")
|
||||
errSymbolCannotBeMatched = errors.New("symbol cannot be matched")
|
||||
errSetDefaultsNotCalled = errors.New("set defaults not called")
|
||||
errExchangeIsNil = errors.New("exchange is nil")
|
||||
)
|
||||
@@ -247,7 +249,7 @@ func (b *Base) GetPairAndAssetTypeRequestFormatted(symbol string) (currency.Pair
|
||||
}
|
||||
}
|
||||
}
|
||||
return currency.EMPTYPAIR, asset.Empty, errSymbolCannotBeMatched
|
||||
return currency.EMPTYPAIR, asset.Empty, ErrSymbolCannotBeMatched
|
||||
}
|
||||
|
||||
// GetClientBankAccounts returns banking details associated with
|
||||
|
||||
Reference in New Issue
Block a user