Add netpnl and initialBalance to backtests
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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; }
|
||||
}
|
||||
Reference in New Issue
Block a user