Various improvements, update config

This commit is contained in:
Adrian Gallagher
2018-02-05 12:30:04 +11:00
parent 9e71a8fc75
commit ce3d2953f8
8 changed files with 145 additions and 41 deletions

View File

@@ -64,7 +64,7 @@ func (y *Yobit) GetTickerPrice(p pair.CurrencyPair, assetType string) (ticker.Pr
// GetOrderbookEx returns the orderbook for a currency pair
func (y *Yobit) GetOrderbookEx(p pair.CurrencyPair, assetType string) (orderbook.Base, error) {
ob, err := orderbook.GetOrderbook(y.GetName(), p, assetType)
if err == nil {
if err != nil {
return y.UpdateOrderbook(p, assetType)
}
return ob, nil