Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Add SDEX check
Browse files Browse the repository at this point in the history
  • Loading branch information
debnil committed Oct 13, 2020
1 parent b36caac commit f6c27cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/trade.go
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,8 @@ func runTradeCmd(options inputs) {
guiVersionFlag = guiVersion
}

isTestnet := strings.Contains(botConfig.HorizonURL, "test") && botConfig.IsTradingSdex()

metricsTracker, e := metrics.MakeMetricsTracker(
userID,
amplitudeAPIKey,
Expand All @@ -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))
Expand Down

0 comments on commit f6c27cc

Please sign in to comment.