arbitrage-engine/backend
root d7788d3766 feat: L7事件流 — live_events表+API+前端+三模块事件写入
DB:
- live_events表(id/ts/level/category/symbol/message/detail)

后端:
- GET /api/live/events?limit=30&level=all|critical|warn|info&category=all|trade|risk
- log_live_event() 异步辅助函数

事件源:
- live_executor: 开仓成功写event(trade/info, 含滑点/score)
- position_sync: 平仓写event(trade, 含PnL拆解)
- risk_guard: 熔断/禁仓/恢复写event(risk/critical|warn|info)

前端L7:
- 5秒轮询, 最近30条事件
- 按级别筛选(全部/严重/警告/信息)
- 彩色分类标签(trade绿/risk红/system灰/reconciliation紫)
- 时间线布局, 最大高度56带滚动
2026-03-02 10:22:40 +00:00
..
strategies fix: remove 0.7 ATR multiplier, store risk_distance in DB 2026-03-02 07:00:05 +00:00
admin_cli.py feat: migrate auth system from SQLite to PostgreSQL 2026-03-01 07:29:14 +00:00
agg_trades_collector.py feat: dual-write agg_trades to local PG + Cloud SQL 2026-03-01 07:16:03 +00:00
auth.py feat: migrate auth system from SQLite to PostgreSQL 2026-03-01 07:29:14 +00:00
backfill_agg_trades.py tune: backfill改500ms/批(CPU100%→平衡模式) 2026-02-27 17:59:20 +00:00
backtest.py perf: backtest optimization - 15s eval interval + 50k batch + OHLC TP/SL check 2026-02-28 07:34:48 +00:00
db.py Add strategy-aware paper trade schema and API endpoints 2026-03-01 11:55:00 +00:00
ecosystem.dev.config.js fix: V5.2 TP/SL parameters - wider stops for better risk/reward 2026-03-01 23:06:29 +00:00
fix_historical_pnl.py fix: simulate limit orders for TP/SL (match real trading) 2026-03-01 09:40:00 +00:00
liquidation_collector.py feat: liquidation_collector.py - Binance WS forceOrder realtime + 5min aggregation to market_indicators 2026-02-28 15:38:14 +00:00
live_executor.py feat: L7事件流 — live_events表+API+前端+三模块事件写入 2026-03-02 10:22:40 +00:00
main.py feat: L7事件流 — live_events表+API+前端+三模块事件写入 2026-03-02 10:22:40 +00:00
market_data_collector.py fix: FR collector use premiumIndex API for real-time 5min data 2026-03-02 04:22:12 +00:00
migrate_auth_sqlite_to_pg.py feat: migrate auth system from SQLite to PostgreSQL 2026-03-01 07:29:14 +00:00
migrate_sqlite_to_pg.py feat: SQLite→PG data migration script 2026-02-27 16:16:06 +00:00
paper_config.json fix: V5.2 TP/SL parameters - wider stops for better risk/reward 2026-03-01 23:06:29 +00:00
paper_monitor.py fix: remove 0.7 ATR multiplier, store risk_distance in DB 2026-03-02 07:00:05 +00:00
position_sync.py feat: L7事件流 — live_events表+API+前端+三模块事件写入 2026-03-02 10:22:40 +00:00
requirements.txt feat: 服务器监控面板(/server) - CPU/内存/硬盘/PM2进程/PG数据库/回补状态 2026-02-27 17:30:41 +00:00
risk_guard.py feat: L7事件流 — live_events表+API+前端+三模块事件写入 2026-03-02 10:22:40 +00:00
signal_engine.py feat: live_executor.py + signal_engine NOTIFY + live_trades table 2026-03-02 08:55:36 +00:00
signal_pusher.py feat: use discord bot api for signal push, add binance fallback 2026-02-26 16:54:45 +00:00
subscriptions.py feat: add auth and subscriptions backend modules 2026-02-27 02:28:21 +00:00