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

Commit 2e47aba

Browse files
committed
fix deprecation check for TickIntervalSecondsDeprecated
1 parent 9a8222e commit 2e47aba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/trade.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ func convertDeprecatedBotConfigValues(l logger.Logger, botConfig trader.BotConfi
544544
botConfig.CentralizedMinBaseVolumeOverride = botConfig.MinCentralizedBaseVolumeDeprecated
545545
}
546546

547-
if botConfig.TickIntervalMillis != 0 && botConfig.TickIntervalSecondsDeprecated == 0 {
547+
if botConfig.TickIntervalMillis != 0 && botConfig.TickIntervalSecondsDeprecated != 0 {
548548
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")
549549
} else if botConfig.TickIntervalSecondsDeprecated != 0 {
550550
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")

0 commit comments

Comments
 (0)