Commit Graph

164 Commits

Author SHA1 Message Date
root
fbf84f2be5 tune: signal-engine循环15秒(从5秒,降CPU60%) 2026-02-27 18:38:03 +00:00
root
a8e1e123ca tune: backfill改500ms/批(CPU100%→平衡模式) 2026-02-27 17:59:20 +00:00
root
7b8a0f74f2 fix: 服务器监控页面改用白色主题统一现有风格(white bg/slate text/blue accent) 2026-02-27 17:50:21 +00:00
root
28da06ba69 fix: server页面auth类型修复(token→isLoggedIn) 2026-02-27 17:37:17 +00:00
root
930c8d3a9c feat: 服务器监控面板(/server) - CPU/内存/硬盘/PM2进程/PG数据库/回补状态 2026-02-27 17:30:41 +00:00
root
871da720ab fix: 实时成交显示20条 2026-02-27 17:17:00 +00:00
root
f2ab9e4252 fix: 实时成交表格底部白边(flex-1+bg-white填满容器) 2026-02-27 17:09:23 +00:00
root
55422b0ae0 perf: backfill全速200ms/批(PG无锁冲突) 2026-02-27 17:04:36 +00:00
root
61287657df perf: trades/summary聚合下推PG(SQL GROUP BY替代Python循环) + trades/latest加2秒缓存 2026-02-27 16:52:35 +00:00
root
e56766ed98 feat: SQLite→PG data migration script 2026-02-27 16:16:06 +00:00
root
4168c1dd88 refactor: SQLite→PostgreSQL migration - db.py连接层 + main/collector/signal-engine/backfill全部改PG
Phase 1: 核心数据表(agg_trades/rate_snapshots/signal*)迁PG
auth.py暂保留SQLite(低频,不影响性能)
- db.py: psycopg2同步池 + asyncpg异步池 + PG schema + 分区管理
- main.py: 全部改asyncpg查询
- collector: psycopg2 + execute_values批量写入
- signal-engine: psycopg2同步读写
- backfill: psycopg2 + ON CONFLICT DO NOTHING
2026-02-27 16:15:16 +00:00
root
23c7597a40 fix: backfill sleep 2s per batch to avoid SQLite WAL lock contention 2026-02-27 15:44:43 +00:00
root
35fcb7cef0 feat: V5 signals page - CVD三轨+ATR+VWAP+大单阈值实时展示+信号状态 2026-02-27 15:34:11 +00:00
root
547f093352 feat: V5 signal-engine + API endpoints for indicators/latest/trades 2026-02-27 15:31:12 +00:00
root
3e630166b4 fix: backfill meta update - handle existing rows with NOT NULL last_agg_id 2026-02-27 15:03:24 +00:00
root
009f114e4d feat: backfill_agg_trades.py - historical aggTrades REST backfill with rate limiting, continuity check 2026-02-27 15:01:55 +00:00
root
41af2ed2e6 fix: price axis auto-range to show actual volatility, not 0-based 2026-02-27 14:13:51 +00:00
root
4a6232ed05 feat: dual-axis Delta+price chart, show vwap price overlay on delta chart 2026-02-27 14:08:45 +00:00
root
f27fdca6ac fix: mobile scroll - remove nested overflow on mobile, disable sticky thead on mobile, 2s interval 2026-02-27 13:11:12 +00:00
root
04d3219a1c fix: latest trades on top + fixed height container so page never jumps 2026-02-27 13:01:47 +00:00
root
1db9e55259 fix: append new trades to bottom instead of top, fixed container height to prevent page jump 2026-02-27 12:51:36 +00:00
root
2a6fb97a43 fix: prevent page scroll jump on data refresh - silent reload + fixed container heights 2026-02-27 12:38:58 +00:00
root
48d1611d5b ui: add descriptions and refresh info to summary cards 2026-02-27 12:23:32 +00:00
root
bef981d903 fix: mobile header - merge auth into sidebar topbar, remove duplicate header 2026-02-27 12:12:24 +00:00
root
b25ac2e04d fix: use any type for recharts tooltip formatter to bypass strict check 2026-02-27 11:52:29 +00:00
root
ec7fa415c5 fix: recharts tooltip formatter type 2026-02-27 11:49:58 +00:00
root
155dc87df3 feat: V4 trades page - live trades + delta analysis + sidebar entry, remove from dashboard 2026-02-27 11:47:32 +00:00
root
3ff83845fb ui: add buy/sell direction legend to LiveTradesCard 2026-02-27 11:41:57 +00:00
root
bb187167bb feat: add LiveTradesCard - real-time agg trades display + /api/trades/latest endpoint 2026-02-27 11:35:55 +00:00
root
7e38b24fa8 feat: V3.0 aggTrades collector - WS+REST补洞+巡检+按月分表+查询API 2026-02-27 11:29:16 +00:00
root
1ab228286c 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
root
052e5a0541 fix: remove duplicate fetchAPI in api.ts 2026-02-27 10:11:32 +00:00
root
11667d4faa feat: add YTD annualized rate to RateCard 2026-02-27 10:08:22 +00:00
root
1f844b946e feat: login/register to top-right, remove kline/signals from sidebar nav 2026-02-27 09:56:40 +00:00
root
24d9044d9d feat: sidebar layout + unified dashboard with kline, history, signals 2026-02-27 09:44:49 +00:00
root
88543efe5c fix: show nextFundingTime in Beijing time, add 明天 prefix if next day 2026-02-27 09:02:15 +00:00
root
362c1f1e16 fix: add /api/signals/history endpoint 2026-02-27 08:54:13 +00:00
root
ae1d1f18b3 fix: remove duplicate FundingChart from dashboard 2026-02-27 08:32:46 +00:00
root
1a7a77e183 feat: merge history into dashboard, remove history nav entry 2026-02-27 08:25:11 +00:00
root
eebbfd456c feat: rate and price kline have independent interval selectors 2026-02-27 08:10:48 +00:00
root
32e9dd3531 feat: rate kline unit x10000 (bps), default interval 1h 2026-02-27 07:56:07 +00:00
root
8961fbb16f fix: hide lightweight-charts watermark logo 2026-02-27 07:36:59 +00:00
root
80c4ea67e7 fix: add background snapshot loop - collect every 2s regardless of frontend 2026-02-27 07:04:41 +00:00
root
4f0cc7c393 fix: kline time display in Beijing time (UTC+8) 2026-02-27 06:44:58 +00:00
root
072592145f feat: kline page with lightweight-charts + /api/kline OHLC aggregation endpoint 2026-02-27 06:36:19 +00:00
root
c6801e061c fix: add SignalHistoryItem and snapshots types to api.ts 2026-02-27 05:52:57 +00:00
root
f8201b3d8e fix: tooltip formatter types in live page 2026-02-27 05:50:06 +00:00
root
8efa6ede32 feat: rate_snapshots 2s persistent storage + /live realtime chart page 2026-02-27 05:47:26 +00:00
root
cf531d8c44 feat: add auth and subscriptions backend modules 2026-02-27 02:28:21 +00:00
root
93043009ac feat: full light theme - white bg, blue accent, responsive navbar 2026-02-27 02:26:15 +00:00