From 40a4ff4fdba809780ad55ed9a66e496e83109733 Mon Sep 17 00:00:00 2001 From: Adrian Gallagher Date: Fri, 25 Aug 2017 17:00:07 +1000 Subject: [PATCH] Only set authenticated API settings when authenticated API requests in config option is enabled --- exchanges/exchange.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/exchanges/exchange.go b/exchanges/exchange.go index fc13269d..e89a56a7 100644 --- a/exchanges/exchange.go +++ b/exchanges/exchange.go @@ -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