diff --git a/config/config.go b/config/config.go index aaa8ef40742..9aa9e622521 100644 --- a/config/config.go +++ b/config/config.go @@ -799,16 +799,22 @@ func (c *Config) CheckExchangeConfigValues() error { return fmt.Errorf(ErrExchangeBaseCurrenciesEmpty, c.Exchanges[i].Name) } if c.Exchanges[i].AuthenticatedAPISupport { // non-fatal error - if c.Exchanges[i].APIKey == "" || c.Exchanges[i].APISecret == "" || - c.Exchanges[i].APIKey == DefaultUnsetAPIKey || - c.Exchanges[i].APISecret == DefaultUnsetAPISecret { + if c.Exchanges[i].APIKey == "" || c.Exchanges[i].APIKey == DefaultUnsetAPIKey { c.Exchanges[i].AuthenticatedAPISupport = false + } + + if (c.Exchanges[i].APISecret == "" || c.Exchanges[i].APISecret == DefaultUnsetAPISecret) && + c.Exchanges[i].Name != "COINUT" { + c.Exchanges[i].AuthenticatedAPISupport = false + } + + if (c.Exchanges[i].ClientID == "ClientID" || c.Exchanges[i].ClientID == "") && + (c.Exchanges[i].Name == "ITBIT" || c.Exchanges[i].Name == "Bitstamp" || c.Exchanges[i].Name == "COINUT" || c.Exchanges[i].Name == "CoinbasePro") { + c.Exchanges[i].AuthenticatedAPISupport = false + } + + if !c.Exchanges[i].AuthenticatedAPISupport { log.Warnf(WarningExchangeAuthAPIDefaultOrEmptyValues, c.Exchanges[i].Name) - } else if c.Exchanges[i].Name == "ITBIT" || c.Exchanges[i].Name == "Bitstamp" || c.Exchanges[i].Name == "COINUT" || c.Exchanges[i].Name == "CoinbasePro" { - if c.Exchanges[i].ClientID == "" || c.Exchanges[i].ClientID == "ClientID" { - c.Exchanges[i].AuthenticatedAPISupport = false - log.Warnf(WarningExchangeAuthAPIDefaultOrEmptyValues, c.Exchanges[i].Name) - } } } if !c.Exchanges[i].SupportsAutoPairUpdates {