arbitrage-engine/frontend/app
fanziqi ad60a53262 review: add code audit annotations and REVIEW.md for v5.1
P0 issues annotated (critical, must fix before live trading):
- signal_engine.py: cooldown blocks reverse-signal position close
- paper_monitor.py + signal_engine.py: pnl_r 2x inflated for TP scenarios
- signal_engine.py: entry price uses 30min VWAP instead of real-time price
- paper_monitor.py + signal_engine.py: concurrent write race on paper_trades

P1 issues annotated (long-term stability):
- db.py: ensure_partitions uses timedelta(30d) causing missed monthly partitions
- signal_engine.py: float precision drift in buy_vol/sell_vol accumulation
- market_data_collector.py: single bare connection with no reconnect logic
- db.py: get_sync_pool initialization not thread-safe
- signal_engine.py: recent_large_trades deque has no maxlen

P2/P3 issues annotated across backend and frontend:
- coinbase_premium KeyError for XRP/SOL symbols
- liquidation_collector: redundant elif condition in aggregation logic
- auth.py: JWT secret hardcoded default, login rate-limit absent
- Frontend: concurrent refresh token race, AuthContext not synced on failure
- Frontend: universal catch{} swallows all API errors silently
- Frontend: serial API requests in LatestSignals, market-indicators over-polling

docs/REVIEW.md: comprehensive audit report with all 34 issues (P0×4, P1×5,
P2×6, P3×4 backend + FE-P1×4, FE-P2×8, FE-P3×3 frontend), fix suggestions
and prioritized remediation roadmap.
2026-03-01 17:14:52 +08:00
..
about feat: full light theme - white bg, blue accent, responsive navbar 2026-02-27 02:26:15 +00:00
dashboard feat: full light theme - white bg, blue accent, responsive navbar 2026-02-27 02:26:15 +00:00
history feat: merge history into dashboard, remove history nav entry 2026-02-27 08:25:11 +00:00
kline fix: add XRP/SOL to trades and kline pages 2026-02-28 10:19:33 +00:00
live fix: add SignalHistoryItem and snapshots types to api.ts 2026-02-27 05:52:57 +00:00
login feat: V2.0 auth system - JWT access/refresh, invite codes, route protection, admin CLI, auth gate blur overlay 2026-02-27 11:08:57 +00:00
paper review: add code audit annotations and REVIEW.md for v5.1 2026-03-01 17:14:52 +08:00
register feat: V2.0 auth system - JWT access/refresh, invite codes, route protection, admin CLI, auth gate blur overlay 2026-02-27 11:08:57 +00:00
server fix: 服务器监控页面改用白色主题统一现有风格(white bg/slate text/blue accent) 2026-02-27 17:50:21 +00:00
signals review: add code audit annotations and REVIEW.md for v5.1 2026-03-01 17:14:52 +08:00
trades fix: show 4 decimal places for prices under 00 (XRP/SOL) 2026-02-28 10:22:52 +00:00
favicon.ico feat: arbitrage engine Phase 0 scaffold - FastAPI + Next.js 2026-02-26 12:06:10 +00:00
globals.css fix: hide lightweight-charts watermark logo 2026-02-27 07:36:59 +00:00
layout.tsx feat: V2.0 auth system - JWT access/refresh, invite codes, route protection, admin CLI, auth gate blur overlay 2026-02-27 11:08:57 +00:00
page.tsx review: add code audit annotations and REVIEW.md for v5.1 2026-03-01 17:14:52 +08:00