mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-03 23:16:53 +00:00
Kraken: Fix TestGetOpenInterest (#1611)
* Kraken: Fix TestGetOpenInterest We see daily failures on OpenInterest for Kraken. This fix assumes that the issue might be related to volume of ETHUSD open interest, and switches the single pair test to XBTUSD instead Also isolates the test from others, since we're changing stored pairs and we might be colliding on the global k * Kraken: Handle Errors field in futures response
This commit is contained in:
@@ -46,7 +46,6 @@ var (
|
||||
// maxWSOrderbookWorkers defines a max amount of workers allowed to execute
|
||||
// jobs from the job channel
|
||||
maxWSOrderbookWorkers = 10
|
||||
errUnknownError = errors.New("unknown error")
|
||||
)
|
||||
|
||||
// WsConnect initiates a websocket connection
|
||||
@@ -584,7 +583,7 @@ func (b *Binance) manageSubs(op string, subs subscription.List) error {
|
||||
if v, d, _, rErr := jsonparser.Get(respRaw, "result"); rErr != nil {
|
||||
err = rErr
|
||||
} else if d != jsonparser.Null { // null is the only expected and acceptable response
|
||||
err = fmt.Errorf("%w: %s", errUnknownError, v)
|
||||
err = fmt.Errorf("%w: %s", common.ErrUnknownError, v)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user