Update genetic impl

This commit is contained in:
2025-07-10 22:07:21 +07:00
parent 2fc7a1d4bb
commit 551480d618
7 changed files with 29 additions and 13 deletions

View File

@@ -17,6 +17,7 @@ namespace Managing.Application.Abstractions.Services
/// <param name="user">The user running the backtest (optional)</param>
/// <param name="save">Whether to save the backtest results</param>
/// <param name="withCandles">Whether to include candles and indicators values in the response</param>
/// <param name="requestId">The request ID to associate with this backtest (optional)</param>
/// <returns>The backtest results</returns>
Task<Backtest> RunTradingBotBacktest(
TradingBotConfig config,
@@ -24,7 +25,8 @@ namespace Managing.Application.Abstractions.Services
DateTime endDate,
User user = null,
bool save = false,
bool withCandles = false);
bool withCandles = false,
string requestId = null);
/// <summary>
/// Runs a trading bot backtest with pre-loaded candles.
@@ -34,12 +36,14 @@ namespace Managing.Application.Abstractions.Services
/// <param name="candles">The candles to use for backtesting</param>
/// <param name="user">The user running the backtest (optional)</param>
/// <param name="withCandles">Whether to include candles and indicators values in the response</param>
/// <param name="requestId">The request ID to associate with this backtest (optional)</param>
/// <returns>The backtest results</returns>
Task<Backtest> RunTradingBotBacktest(
TradingBotConfig config,
List<Candle> candles,
User user = null,
bool withCandles = false);
bool withCandles = false,
string requestId = null);
// Additional methods for backtest management
bool DeleteBacktest(string id);