Only set authenticated API settings when authenticated API requests in config option is enabled

This commit is contained in:
Adrian Gallagher
2017-08-25 17:00:07 +10:00
parent 4dcce85810
commit 40a4ff4fdb

View File

@@ -274,6 +274,10 @@ func (e *Base) IsEnabled() bool {
// SetAPIKeys is a method that sets the current API keys for the exchange
func (e *Base) SetAPIKeys(APIKey, APISecret, ClientID string, b64Decode bool) {
if !e.AuthenticatedAPISupport {
return
}
e.APIKey = APIKey
e.ClientID = ClientID