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 99ad043f14 Paper trader Phase 1.A.1: poll actual fill price on exits, kill silent drop
Previously close_position(..., fill_price=X) was silently swallowed by
**kwargs while the DB wrote the simulated exit_price — broker and ledger
drifted on every exit.

- AlpacaBroker.close_position drops the **kwargs sink; docstring documents
  that callers must poll get_order(order.id) for the actual filled_avg_price
- _poll_exit_fill(order_id, symbol, timeout=30s) added; 1s interval, returns
  actual Alpaca fill price, logs timeout/terminal status
- 3 exit sites now poll and write the actual fill + re-derive net_pnl
  with direction-aware sign (short-safe for future short configs):
    run_daily main exit path (simulate_exit)
    _monitor_close (intraday stop/target hits)
    _process_exits (scheduled & forced exits incl. partial T1)
- WARN-level "paper_engine_exit_fill_drift" when actual vs simulated
  diverges >0.5% so drift is visible in logs even when non-pathological

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
4 months ago
..
backtester Investigate compound mode: V23 is absolute champion in all modes 4 months ago
experiment Add ownership/risk-off sleeves, v17-v19 experiments, and web app restructure 4 months ago
intraday_bt Add V47 near-miss composite diagnostic on V46 400d base 4 months ago
orb_trader Investigate compound mode: V23 is absolute champion in all modes 4 months ago
overfit Add ownership/risk-off sleeves, v17-v19 experiments, and web app restructure 4 months ago
paper_trader Paper trader Phase 1.A.1: poll actual fill price on exits, kill silent drop 4 months ago
pipeline Paper trader Phase 1 fixes: multi-session isolation, pipeline halt, snapshot refresh unblock 4 months ago
qa feat: implement Phase 3 -- LLM enrichment, labeler, review queue, dataset export 5 months ago
review feat: implement Phase 3 -- LLM enrichment, labeler, review queue, dataset export 5 months ago
scenario Add synthetic scenario robustness testing system 5 months ago
sync feat: PEAD mid-cap strategy + pipeline hardening + README cleanup 5 months ago
tools Remove momentum breakout sleeve (overfitting, valid -31%) and revert related code 4 months ago
tracker Add paper trader improvements, web GUI updates, and experiment registry cleanup 4 months ago
web Fix cross-session avg_entry_price contamination in positions view 4 months ago
web_frontend Investigate compound mode: V23 is absolute champion in all modes 4 months ago
__init__.py feat: implement ACE-F v1 Phase 1 -- Stock Oracle 기반 이벤트 파이프라인 5 months ago