Clean a bit and add prod env to front

This commit is contained in:
2025-05-11 17:23:02 +07:00
parent 549c4ae746
commit 65c4ec4957
15 changed files with 184 additions and 230 deletions

View File

@@ -1008,6 +1008,7 @@ public class TradingBot : Bot, ITradingBot
BotTradingBalance = data.BotTradingBalance,
BotType = data.BotType,
CooldownPeriod = data.CooldownPeriod,
MaxLossStreak = data.MaxLossStreak,
Name = data.Name
};
@@ -1077,5 +1078,6 @@ public class TradingBotBackup
public MoneyManagement MoneyManagement { get; set; }
public DateTime StartupTime { get; set; }
public decimal BotTradingBalance { get; set; }
public decimal CooldownPeriod { get; set; }
public int CooldownPeriod { get; set; }
public int MaxLossStreak { get; set; }
}

View File

@@ -15,7 +15,7 @@ public class TradingBotConfig
public bool FlipPosition { get; set; }
public BotType BotType { get; set; }
public decimal BotTradingBalance { get; set; }
public decimal CooldownPeriod { get; set; } = 1;
public int MaxLossStreak { get; set; } = 0; // 0 means no limit
public int CooldownPeriod { get; set; } = 1;
public int MaxLossStreak { get; set; } = 0;
public string Name { get; set; }
}