mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-02 23:16:51 +00:00
Fix err check
This commit is contained in:
@@ -76,7 +76,7 @@ func (o *OKCoin) GetTickerPrice(p pair.CurrencyPair, assetType string) (ticker.P
|
||||
// GetOrderbookEx returns orderbook base on the currency pair
|
||||
func (o *OKCoin) GetOrderbookEx(currency pair.CurrencyPair, assetType string) (orderbook.Base, error) {
|
||||
ob, err := orderbook.GetOrderbook(o.GetName(), currency, assetType)
|
||||
if err == nil {
|
||||
if err != nil {
|
||||
return o.UpdateOrderbook(currency, assetType)
|
||||
}
|
||||
return ob, nil
|
||||
|
||||
Reference in New Issue
Block a user