diff --git a/exchanges/coinbasepro/coinbasepro_websocket.go b/exchanges/coinbasepro/coinbasepro_websocket.go index 8d756eded09..d31b90b6574 100644 --- a/exchanges/coinbasepro/coinbasepro_websocket.go +++ b/exchanges/coinbasepro/coinbasepro_websocket.go @@ -168,7 +168,8 @@ func (c *CoinbasePro) wsHandleData(respRaw []byte, seqCount uint64) (string, err sliToSend := []stream.KlineData{} - timestamp, err := getTimestamp(respRaw) + var timestamp time.Time + timestamp, err = getTimestamp(respRaw) if err != nil { return warnString, err } diff --git a/exchanges/coinbasepro/coinbasepro_wrapper.go b/exchanges/coinbasepro/coinbasepro_wrapper.go index 5758e7ad6be..15ec7620f4b 100644 --- a/exchanges/coinbasepro/coinbasepro_wrapper.go +++ b/exchanges/coinbasepro/coinbasepro_wrapper.go @@ -254,11 +254,12 @@ func (c *CoinbasePro) UpdateAccountInfo(ctx context.Context, assetType asset.Ite done bool err error cursor string + accountResp AllAccountsResponse ) response.Exchange = c.Name for !done { - accountResp, err := c.GetAllAccounts(ctx, 250, cursor) + accountResp, err = c.GetAllAccounts(ctx, 250, cursor) if err != nil { return response, err } @@ -411,7 +412,7 @@ func (c *CoinbasePro) UpdateOrderbook(ctx context.Context, p currency.Pair, asse if p.IsEmpty() { return nil, currency.ErrCurrencyPairEmpty } - if err := c.CurrencyPairs.IsAssetEnabled(assetType); err != nil { + if err = c.CurrencyPairs.IsAssetEnabled(assetType); err != nil { return nil, err } book := &orderbook.Base{