mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 23:16:45 +00:00
Only set authenticated API settings when authenticated API requests in config option is enabled
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user