TradingAgents/tradingagents/simulation
Andrew Kaszubski e7bff2c4cf feat(simulation): add Scenario Runner for parallel portfolio simulations - Issue #33 (45 tests)
Implements parallel scenario execution framework:
- ScenarioRunner with sequential, threaded, and process execution modes
- ScenarioConfig for configuring simulation parameters
- ScenarioResult for capturing simulation outcomes
- RunnerProgress for tracking execution progress
- Progress callbacks for real-time updates
- Cancellation support for long-running batches
- ScenarioBatchBuilder for parameter sweeps and variations
- Result aggregation with best/worst scenario identification

Features:
- Thread-safe parallel execution with configurable worker count
- FIFO result ordering preserved regardless of completion order
- Exception handling with graceful degradation
- Timeout support per scenario
- Cartesian product generation for parameter variations

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-26 21:59:12 +11:00
..
__init__.py feat(simulation): add Scenario Runner for parallel portfolio simulations - Issue #33 (45 tests) 2025-12-26 21:59:12 +11:00
scenario_runner.py feat(simulation): add Scenario Runner for parallel portfolio simulations - Issue #33 (45 tests) 2025-12-26 21:59:12 +11:00