Add metadata to backtest

This commit is contained in:
2025-07-11 17:56:03 +07:00
parent c62570e15d
commit 47ef0cf2d5
8 changed files with 49 additions and 16 deletions

View File

@@ -18,6 +18,7 @@ namespace Managing.Application.Abstractions.Services
/// <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>
/// <param name="metadata">Additional metadata to associate with this backtest (optional)</param>
/// <returns>The backtest results</returns>
Task<Backtest> RunTradingBotBacktest(
TradingBotConfig config,
@@ -26,7 +27,8 @@ namespace Managing.Application.Abstractions.Services
User user = null,
bool save = false,
bool withCandles = false,
string requestId = null);
string requestId = null,
object metadata = null);
/// <summary>
/// Runs a trading bot backtest with pre-loaded candles.
@@ -37,13 +39,15 @@ namespace Managing.Application.Abstractions.Services
/// <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>
/// <param name="metadata">Additional metadata 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,
string requestId = null);
string requestId = null,
object metadata = null);
// Additional methods for backtest management
bool DeleteBacktest(string id);