Add BacktestSpotBot and update BacktestExecutor for spot trading support

- Introduced BacktestSpotBot class to handle backtesting for spot trading scenarios.
- Updated BacktestExecutor to support both BacktestFutures and BacktestSpot trading types.
- Enhanced error handling to provide clearer messages for unsupported trading types.
- Registered new command handlers for OpenSpotPositionRequest and CloseSpotPositionCommand in ApiBootstrap.
- Added unit tests for executing backtests with spot trading configurations, ensuring correct behavior and metrics validation.
This commit is contained in:
2025-12-01 23:41:23 +07:00
parent 3771bb5dde
commit 5bd03259da
9 changed files with 847 additions and 5 deletions

View File

@@ -620,6 +620,11 @@ public static class Enums
/// <summary>
/// Backtest futures trading mode
/// </summary>
BacktestFutures
BacktestFutures,
/// <summary>
/// Backtest spot trading mode
/// </summary>
BacktestSpot
}
}