trading/services/trade_executor
Viktor Barzin 52b3c76482 feat(kevin): correct exits, realized P&L, wire exit scanner
- executor: EXIT/SELL signals close the FULL held broker position (not a target_dollars-sized fresh order) and skip when flat

- executor: book realized P&L on the closing trade ((fill - avg_entry)*qty) so the dashboard P&L + win-rate populate; entries leave pnl=None

- exit scanner: wired into the bridge run loop on kevin_bridge_exit_scan_cron (daily ET gate; croniter intentionally not a dependency) plus an offsetting-SELL guard so it only emits exits for currently-held tickers

[ci skip]

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-04 22:13:30 +00:00
..
__init__.py feat: trade executor — risk management and order execution 2026-02-22 15:36:08 +00:00
config.py feat(trade-executor): defer outside_market_hours signals to next open 2026-06-01 19:01:37 +00:00
deferred_queue.py feat(trade-executor): defer outside_market_hours signals to next open 2026-06-01 19:01:37 +00:00
main.py feat(kevin): correct exits, realized P&L, wire exit scanner 2026-06-04 22:13:30 +00:00
risk_manager.py feat(kevin-exec): size from target_dollars, propagate price, bracket entries 2026-06-04 21:56:59 +00:00
slack_notifier.py feat(trade-executor): defer outside_market_hours signals to next open 2026-06-01 19:01:37 +00:00