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

Commit

Permalink
fix deprecation check for TickIntervalSecondsDeprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilsaraf committed Dec 29, 2020
1 parent 9a8222e commit 2e47aba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/trade.go
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ func convertDeprecatedBotConfigValues(l logger.Logger, botConfig trader.BotConfi
botConfig.CentralizedMinBaseVolumeOverride = botConfig.MinCentralizedBaseVolumeDeprecated
}

if botConfig.TickIntervalMillis != 0 && botConfig.TickIntervalSecondsDeprecated == 0 {
if botConfig.TickIntervalMillis != 0 && botConfig.TickIntervalSecondsDeprecated != 0 {
l.Infof("deprecation warning: cannot set both '%s' (deprecated) and '%s' in the trader config, using value from '%s'\n", "TICK_INTERVAL_SECONDS", "TICK_INTERVAL_MILLIS", "TICK_INTERVAL_MILLIS")
} else if botConfig.TickIntervalSecondsDeprecated != 0 {
l.Infof("deprecation warning: '%s' is deprecated, use the field '%s' in the trader config instead, see sample_trader.cfg as an example\n", "TICK_INTERVAL_SECONDS", "TICK_INTERVAL_MILLIS")
Expand Down

0 comments on commit 2e47aba

Please sign in to comment.