Fix initial balance on the backtest + n8n webhook
This commit is contained in:
@@ -174,6 +174,7 @@ public class PostgreSqlBacktestRepository : IBacktestRepository
|
||||
{
|
||||
Id = entity.Identifier,
|
||||
Config = JsonConvert.DeserializeObject<TradingBotConfig>(entity.ConfigJson),
|
||||
Ticker = entity.Ticker,
|
||||
FinalPnl = entity.FinalPnl,
|
||||
WinRate = entity.WinRate,
|
||||
GrowthPercentage = entity.GrowthPercentage,
|
||||
@@ -190,7 +191,9 @@ public class PostgreSqlBacktestRepository : IBacktestRepository
|
||||
: null
|
||||
: null,
|
||||
Score = entity.Score,
|
||||
ScoreMessage = entity.ScoreMessage ?? string.Empty
|
||||
ScoreMessage = entity.ScoreMessage ?? string.Empty,
|
||||
InitialBalance = entity.InitialBalance,
|
||||
NetPnl = entity.NetPnl
|
||||
});
|
||||
|
||||
return (mappedBacktests, totalCount);
|
||||
@@ -247,6 +250,7 @@ public class PostgreSqlBacktestRepository : IBacktestRepository
|
||||
{
|
||||
Id = entity.Identifier,
|
||||
Config = JsonConvert.DeserializeObject<TradingBotConfig>(entity.ConfigJson),
|
||||
Ticker = entity.Ticker,
|
||||
FinalPnl = entity.FinalPnl,
|
||||
WinRate = entity.WinRate,
|
||||
GrowthPercentage = entity.GrowthPercentage,
|
||||
@@ -263,7 +267,9 @@ public class PostgreSqlBacktestRepository : IBacktestRepository
|
||||
: null
|
||||
: null,
|
||||
Score = entity.Score,
|
||||
ScoreMessage = entity.ScoreMessage ?? string.Empty
|
||||
ScoreMessage = entity.ScoreMessage ?? string.Empty,
|
||||
InitialBalance = entity.InitialBalance,
|
||||
NetPnl = entity.NetPnl
|
||||
});
|
||||
|
||||
return (mappedBacktests, totalCount);
|
||||
@@ -575,7 +581,9 @@ public class PostgreSqlBacktestRepository : IBacktestRepository
|
||||
Fees = entity.Fees,
|
||||
SharpeRatio = (double?)entity.SharpeRatio,
|
||||
Score = entity.Score,
|
||||
ScoreMessage = entity.ScoreMessage ?? string.Empty
|
||||
ScoreMessage = entity.ScoreMessage ?? string.Empty,
|
||||
InitialBalance = entity.InitialBalance,
|
||||
NetPnl = entity.NetPnl
|
||||
});
|
||||
|
||||
return (mappedBacktests, totalCount);
|
||||
@@ -699,6 +707,7 @@ public class PostgreSqlBacktestRepository : IBacktestRepository
|
||||
{
|
||||
Id = entity.Identifier,
|
||||
Config = JsonConvert.DeserializeObject<TradingBotConfig>(entity.ConfigJson),
|
||||
Ticker = entity.Ticker,
|
||||
FinalPnl = entity.FinalPnl,
|
||||
WinRate = entity.WinRate,
|
||||
GrowthPercentage = entity.GrowthPercentage,
|
||||
@@ -709,7 +718,9 @@ public class PostgreSqlBacktestRepository : IBacktestRepository
|
||||
Fees = entity.Fees,
|
||||
SharpeRatio = (double?)entity.SharpeRatio,
|
||||
Score = entity.Score,
|
||||
ScoreMessage = entity.ScoreMessage ?? string.Empty
|
||||
ScoreMessage = entity.ScoreMessage ?? string.Empty,
|
||||
InitialBalance = entity.InitialBalance,
|
||||
NetPnl = entity.NetPnl
|
||||
});
|
||||
|
||||
return (mappedBacktests, totalCount);
|
||||
|
||||
Reference in New Issue
Block a user