From a1a667bab9150e611dc04bad43fa49457171936a Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 31 Aug 2021 10:44:48 +1000 Subject: [PATCH] FTX: allow authenticated tests to run --- exchanges/ftx/ftx_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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