diff --git a/cmd/trade.go b/cmd/trade.go index dca0d5f2f..a055393da 100644 --- a/cmd/trade.go +++ b/cmd/trade.go @@ -527,6 +527,7 @@ func runTradeCmd(options inputs) { botConfig.TickIntervalSeconds, botConfig.TradingExchange, botConfig.TradingPair(), + strings.Contains(botConfig.HorizonURL, "test"), ) if e != nil { logger.Fatal(l, fmt.Errorf("could not generate metrics tracker: %s", e)) diff --git a/support/metrics/metricsTracker.go b/support/metrics/metricsTracker.go index 41433782f..89ed8b7ea 100644 --- a/support/metrics/metricsTracker.go +++ b/support/metrics/metricsTracker.go @@ -57,6 +57,7 @@ type commonProps struct { Exchange string `json:"exchange"` TradingPair string `json:"trading_pair"` SecondsSinceStart float64 `json:"seconds_since_start"` + IsTestnet bool `json:"is_testnet"` } // updateProps holds the properties for the update Amplitude event. @@ -113,6 +114,7 @@ func MakeMetricsTracker( updateTimeIntervalSeconds int32, exchange string, tradingPair string, + isTestnet bool, ) (*MetricsTracker, error) { props := commonProps{ CliVersion: version, @@ -124,6 +126,7 @@ func MakeMetricsTracker( UpdateTimeIntervalSeconds: updateTimeIntervalSeconds, Exchange: exchange, TradingPair: tradingPair, + IsTestnet: isTestnet, } return &MetricsTracker{