FTX: allow authenticated tests to run

This commit is contained in:
Scott
2021-08-31 10:44:48 +10:00
committed by GitHub
parent 4d1994afb6
commit a1a667bab9

View File

@@ -54,7 +54,7 @@ func TestMain(m *testing.M) {
exchCfg.API.Credentials.Key = apiKey
exchCfg.API.Credentials.Secret = apiSecret
exchCfg.API.Credentials.Subaccount = subaccount
if areTestAPIKeysSet() {
if apiKey != "" && apiSecret != "" {
// Only set auth to true when keys present as fee online calculation requires authentication
exchCfg.API.AuthenticatedSupport = true
exchCfg.API.AuthenticatedWebsocketSupport = true