diff --git a/cmd/trade.go b/cmd/trade.go index a055393da..dbf7c4afe 100644 --- a/cmd/trade.go +++ b/cmd/trade.go @@ -513,6 +513,8 @@ func runTradeCmd(options inputs) { guiVersionFlag = guiVersion } + isTestnet := strings.Contains(botConfig.HorizonURL, "test") && botConfig.IsTradingSdex() + metricsTracker, e := metrics.MakeMetricsTracker( userID, amplitudeAPIKey, @@ -527,7 +529,7 @@ func runTradeCmd(options inputs) { botConfig.TickIntervalSeconds, botConfig.TradingExchange, botConfig.TradingPair(), - strings.Contains(botConfig.HorizonURL, "test"), + isTestnet, ) if e != nil { logger.Fatal(l, fmt.Errorf("could not generate metrics tracker: %s", e))