Commit Graph

90 Commits

Author SHA1 Message Date
root
47004ece8c feat: paper trading deduct taker fee 0.05% per side (0.1% round trip) 2026-02-28 11:30:17 +00:00
root
59910fe9cd fix: paper page use useAuth() instead of manual localStorage check 2026-02-28 11:24:29 +00:00
root
961cbc6bd8 chore: gitignore __pycache__ 2026-02-28 11:21:00 +00:00
root
b232270948 fix: add Request import 2026-02-28 11:20:05 +00:00
root
cd17c76000 fix: remove duplicate return causing IndentationError in main.py 2026-02-28 11:19:01 +00:00
root
282aed138a feat: paper trading switch + config API + max positions limit 2026-02-28 11:13:39 +00:00
root
e054db112d feat: paper trading - backend (table+signal_engine integration+5 APIs) + frontend page 2026-02-28 11:10:28 +00:00
root
317031ab57 fix: signal_engine now reads real market_indicators (JSONB parsing + OI change rate) 2026-02-28 11:03:44 +00:00
root
271658c725 ui: sidebar label → 信号引擎 V5.1 2026-02-28 10:46:29 +00:00
root
9382d35496 ui: compact signal engine layout - smaller panels, tighter spacing, V5.1 title 2026-02-28 10:42:51 +00:00
root
fb37dfb288 fix: show 4 decimal places for prices under 00 (XRP/SOL) 2026-02-28 10:22:52 +00:00
root
2c28d660ce fix: add XRP/SOL to trades and kline pages 2026-02-28 10:19:33 +00:00
root
5cf2003ca7 fix: limit trade flow to 20 rows 2026-02-28 10:16:38 +00:00
root
0ac2225979 feat: add XRP and SOL symbols (4 coins total) 2026-02-28 10:11:05 +00:00
root
3155e8848b perf: backtest optimization - 15s eval interval + 50k batch + OHLC TP/SL check 2026-02-28 07:34:48 +00:00
root
ec6a8fc64d fix: rename signal-history API to avoid route conflict + restart backfill 2026-02-28 06:22:32 +00:00
root
424cb993f8 feat: signal history list + always compute scoring even without signal 2026-02-28 06:09:32 +00:00
root
ca25938adc fix: remove autocommit for named cursor in backtest 2026-02-28 05:54:32 +00:00
root
5ba4c7fe98 feat: V5.1 backtest framework - tick-by-tick replay with TP/SL/position management 2026-02-28 05:53:42 +00:00
root
2e969f68b4 fix: parse JSONB string from asyncpg + frontend parseVal fallback 2026-02-28 05:49:42 +00:00
root
7ca843ca70 fix: revert signals/latest API to explicit column query (to_jsonb broke field names) 2026-02-28 05:45:21 +00:00
root
9525b06710 fix: market indicators JSONB parsing + fallback layer scores 2026-02-28 05:42:42 +00:00
root
340d8eb3a1 feat: V5.1 frontend - 5-layer scoring display + market indicators panel 2026-02-28 05:33:40 +00:00
root
5c38a2f9bf feat: upgrade signal engine to V5.1 layered scoring 2026-02-28 05:24:16 +00:00
root
a9bdec208f feat(backend): add market indicators collector for V5.1 (4 data sources: L/S ratio, top trader position, OI hist, Coinbase Premium) 2026-02-28 05:17:31 +00:00
root
748f6f57a5 perf: server/status接口优化(cpu非阻塞+pm2直接调用+COUNT估算+5秒缓存) 2026-02-27 18:46:56 +00:00
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