diff --git a/exchanges/ftx/ftx_test.go b/exchanges/ftx/ftx_test.go index ed13ea58..b9ef5b3f 100644 --- a/exchanges/ftx/ftx_test.go +++ b/exchanges/ftx/ftx_test.go @@ -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