You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
I Luk Kim 98923e8620 Add Phase 6 reconciliation: position integrity, kill switch, order fill verification
- ReconciliationReport dataclass tracking orphaned/ghost positions and stale orders
- _cancel_stale_orders(): cancel leftover open orders at daily run start
- _reconcile_positions(): detect Alpaca vs local state mismatches; auto-close ghost positions with RECONCILED exit reason
- _verify_order_fill(): poll broker up to 2s to confirm market order fill before saving state
- _check_kill_switch(): activate and persist kill switch at 25% drawdown; blocks new entries
- run_daily() and _process_entries() wired with all safety checks
- 18 unit tests covering all reconciliation scenarios

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
5 months ago
..
__init__.py Add paper trading system: broker integration, state management, reporter 5 months ago
alpaca_broker.py Add paper trading system: broker integration, state management, reporter 5 months ago
auto.py Add paper trading system: broker integration, state management, reporter 5 months ago
backtest_sim.py Remove overlay backtesting and scoring 5 months ago
cli.py Remove overlay backtesting and scoring 5 months ago
engine.py Add Phase 6 reconciliation: position integrity, kill switch, order fill verification 5 months ago
event_detector.py Improve paper backtest: overlay support, --top/--rank/--year options, speed optimization 5 months ago
mock_broker.py Add paper trading system: broker integration, state management, reporter 5 months ago
models.py Add paper trading system: broker integration, state management, reporter 5 months ago
reporter.py Remove overlay backtesting and scoring 5 months ago
state.py Add paper trading system: broker integration, state management, reporter 5 months ago