Add netpnl and initialBalance to backtests

This commit is contained in:
2025-10-16 17:19:22 +07:00
parent 661f91f537
commit 472c507801
9 changed files with 50 additions and 10 deletions

View File

@@ -55,6 +55,8 @@ public class Backtest
public Guid RequestId { get; set; }
public object? Metadata { get; set; }
public string ScoreMessage { get; set; } = string.Empty;
[Required] public decimal InitialBalance { get; set; }
[Required] public decimal NetPnl { get; set; }
/// <summary>
/// Creates a new TradingBotConfig based on this backtest's configuration for starting a live bot.

View File

@@ -25,4 +25,6 @@ public class LightBacktest
[Id(12)] public string ScoreMessage { get; set; } = string.Empty;
[Id(13)] public object Metadata { get; set; }
[Id(14)] public string Ticker { get; set; } = string.Empty;
[Id(15)] public decimal InitialBalance { get; set; }
[Id(16)] public decimal NetPnl { get; set; }
}