dekun
1bda78ceb2
Fix env save-and-restart by deferring PM2 restart until after HTTP response.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-13 10:54:48 +08:00
dekun
9f0a30a040
Add hub usage help page with settings nav toggle.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-11 10:02:07 +08:00
dekun
843d87422d
Show hub fullscreen options positions as cards matching instance data.
...
Enrich hub options snapshot with close preview and render read-only option position cards in exchange fullscreen view.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-11 09:40:35 +08:00
dekun
02472f19cb
Fix breakeven badge still showing after roll lowers stop loss.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-10 16:52:29 +08:00
dekun
dbd8764b0d
Fix light-mode system logs readability and add calendar day card frames.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-10 12:42:51 +08:00
dekun
944673cac1
Improve hub and instance navigation contrast for light and dark themes.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-10 12:33:54 +08:00
dekun
66d0721c12
Fix archive chart visibility and contrast in light theme.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-10 12:19:03 +08:00
dekun
e4893a6306
Refine archive cumulative PnL chart proportions and axis layout.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-10 12:14:17 +08:00
dekun
8714bb6fd3
Fix archive.js syntax error that broke the entire archive page.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-10 12:04:31 +08:00
dekun
daf023b403
Improve archive stats chart layout and fix invisible bar colors.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-10 11:58:27 +08:00
dekun
f3af6e2a53
Add collapsible archive stats charts and calendar sections.
...
Show win rate ring, PnL and sick bars, exchange breakdown, hold-time comparison, and cumulative curve below the stats table; wrap the trading calendar in a foldable panel.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-10 11:49:09 +08:00
dekun
5214794f95
Add hub system logs page with PM2 stdout/stderr tabs for all exchanges.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-09 10:33:14 +08:00
dekun
23ba725c89
Fix intraday profit amount and hide TP/SL cancel for day trades.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-09 09:55:09 +08:00
dekun
bb0f328f2f
Fix hub AI save PM2 restart NameError in hub_env_lib.
...
Import restart_instances_then_hub_pm2 so background restart after AI env sync actually runs on the server.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-08 23:48:40 +08:00
dekun
b733e551a0
Normalize fullwidth punctuation to ASCII across codebase.
...
Add scripts/normalize_ambiguous_unicode.py; fix corrupted patch_instance_theme_templates.py. Preserves curly quotes in string literals; removes Git homoglyph warnings on .env.example.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-08 23:42:26 +08:00
dekun
aaa72c7961
Fix hub AI save: background PM2 restart after JSON response.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-08 23:06:31 +08:00
dekun
823aeda42a
Add hub AI config tab with sync to instances and deploy secret bootstrap.
...
Wire bootstrap_deploy_secrets into setup_env.sh (one-time HUB_BRIDGE_TOKEN, FLASK_SECRET_KEY, HUB_SESSION_SECRET). Remove AI section from instance env UI; hub saves OPENAI settings to all four .env files. SSO unchanged.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-08 22:50:58 +08:00
dekun
886f7740f2
Remove redundant reload toolbar from hub settings page.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-08 22:17:06 +08:00
dekun
79962d2cf3
Remove redundant Save All button from hub settings page.
...
Each settings tab already has its own save action; keep reload only.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-08 22:07:41 +08:00
dekun
88f7f0cfca
Add hub settings tabs and account password change UI.
...
Restructure manual-trading-hub settings with CSS tabs matching instance layout; add password API writing HUB_USERNAME/HUB_PASSWORD to hub .env.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-08 22:01:26 +08:00
dekun
279648de56
Add hub TP profit field, 2-decimal options PnL, and exchange mark price display.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-08 17:22:26 +08:00
dekun
189b27e076
Add live expiry countdown for options positions on instance page and trading hub.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-08 11:14:30 +08:00
dekun
3570a6900e
Add OKX options expiry and close breakeven to hub monitor and dashboard.
...
Expose bePx-based expiry balance and mark-to-close breakeven on positions so monitor and dashboard can show both labels per contract.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-07 16:10:03 +08:00
dekun
7bbb5663c9
Dashboard OKX card: 3-column perpetual/options split when options enabled.
...
Show perpetual and options funding metrics separately, total funds row, then positions; other exchanges keep the 2-column layout.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-07 15:22:11 +08:00
dekun
9027708a61
Fix monitor stats bar: full-width strip with centered cell text.
...
Revert whole-card centering; keep compact height and text-align center inside each stat mini-card.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-07 13:42:45 +08:00
dekun
299b20acc5
Hub monitor: compact centered today stats bar in options split layout.
...
Reduce stats card height and center the horizontal bar above the OKX / Binance-Gate columns.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-07 13:36:48 +08:00
dekun
dda022d3c3
Hub monitor: OKX left column with dual inner cards when options enabled.
...
Use a stats bar plus left OKX / right Binance+Gate split layout with equal-height inner perpetual and options cards and no in-card scrolling.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-07 13:33:13 +08:00
dekun
5e66600727
Hub monitor card: split perpetual and options blocks when options enabled.
...
Show matching stat rows and position sections for each account type; keep the standard single-block layout for exchanges without options.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-07 13:17:48 +08:00
dekun
3163912266
Hub funds and dashboard: include OKX options balances in USDT totals.
...
Merge options USDC/USDT at 1:1 into fund overview snapshots, dashboard aggregation, and monitor board totals while keeping a separate options breakdown in the UI.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-07 13:06:01 +08:00
dekun
6cc3382526
Hub monitor: read-only OKX options positions aggregation (Phase B).
...
Expose /api/hub/options/snapshot from OKX instance and render options summary on hub monitor cards when the options capability is enabled.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-07 12:55:35 +08:00
dekun
d7fa596e68
feat: auto sick tag in archive from journal mood issues
...
内照明心同步时匹配实例复盘情绪标签,自动标注犯病并锁定标签;中控不再手动选犯病。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-07 01:12:47 +08:00
dekun
8e1492e4f0
Fix mark/PnL display fallback and intraday entry labels
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 22:19:42 +08:00
dekun
5e4f885f80
fix: loosen divergence scan list layout with card-style rows
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 20:08:51 +08:00
dekun
e62a3f3351
feat: market divergence scan tabs (4h/1d/1w) with Top20 MACD confluence colors
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 19:58:30 +08:00
dekun
43cd98f2d5
feat: add EMA144 as separate market chart indicator
...
Optional EMA144 line on hub K-line main chart, independent from EMA 21/55 cross.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 03:32:26 +08:00
dekun
22b2db34fc
feat: MD-style popup print for strategy doc and checklist
...
Open clean white document in new tab with auto print dialog instead of printing the dark hub page.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 03:28:44 +08:00
dekun
0d5b20c0db
feat: strategy page scroll layout, OKX standalone docs, split print
...
Right checklist drives card height with left doc scroll; rewrite OKX strategy MD and checklist as standalone; add per-column print buttons.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 03:25:56 +08:00
dekun
a4cd966370
fix: align strategy page card heights and inner padding
...
Equal-height two-column cards with flex layout; add card padding and spacing so content is not flush to edges.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 03:17:12 +08:00
dekun
7223b54ec4
feat: add hub strategy docs page with MD and checklists
...
Central /strategy page shows per-exchange strategy markdown and read-only entry checklists; nav toggle in settings, print and HTML export per tab.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 03:12:09 +08:00
dekun
4904a86e03
fix: hide hub close/entrust controls for intraday discipline profile
...
Expose intraday_discipline via hub meta and block manual close/tpsl APIs; Gate instance card no longer shows 全平/平仓/委托.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 02:26:22 +08:00
dekun
a268a93027
feat: show force-close badge and countdown when FORCE_CLOSE is enabled
...
Add shared lib/UI for midnight force-close indicator on instance and hub pages, and document Gate intraday 0-point exit alignment.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 02:17:47 +08:00
dekun
65b911994c
fix: 今日统计数字改用常规字体,去掉发光效果
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-04 23:16:22 +08:00
dekun
9deb58a38a
feat: 监控区 2x2 布局与左上今日统计卡
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-04 23:10:32 +08:00
dekun
eb975b0133
fix: 交易安全审计修复 — 补偿平仓、中控同步、滚仓/趋势防护
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-04 22:44:16 +08:00
dekun
df28e6dfb8
fix: ccxt Gate 类名 gateio 改为兼容 gate
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-04 22:21:33 +08:00
dekun
9f67de3677
refactor: 移除 gate_bot,统一为三所架构并更新文档
...
删除 crypto_monitor_gate_bot 目录,中控与子代理改为 binance/okx/gate 三账户;
文档与 UI 文案「四所」改为「三所」;新增清库前一次性配置备份脚本。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-04 22:00:08 +08:00
dekun
be51eee73f
fix: 中控改委托后同步计划价并去重条件单展示
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-04 21:12:00 +08:00
dekun
0b8f410fbe
fix: 中控持仓卡合并最新风险与保证金展示
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-02 22:19:07 +08:00
dekun
687a34474d
feat: 修改委托后展示最新风险,四所持仓卡增加张数
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-02 22:08:27 +08:00
dekun
bfa3352122
feat: 系统设置增加备份恢复与默认登录 admin
...
支持手动/每日自动备份四所数据库、K线库与 env,上传 zip 一键恢复;中控默认账号 admin/admin123。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-02 16:39:46 +08:00