dekun
c9d40e5e52
Add desktop calculator tabs.
...
Show one strategy calculator at a time while preserving the existing mobile tab experience.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-16 14:44:36 +08:00
dekun
b30129f83f
Remove duplicate funds PnL banner.
...
Keep cumulative PnL in summary cards and free toolbar space after snapshot sync.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-16 14:36:37 +08:00
dekun
4e86595f2a
Collapse daily stats by default.
...
Show only total floating PnL until expanded; enlarge details and lower exchange headers.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-16 14:31:00 +08:00
dekun
35b23836e3
Restore strategy chips and 1080p side margins.
...
Stick expand hint to card bottom; drop mistaken key-monitor slot; keep ultrawide content width.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-16 14:11:29 +08:00
dekun
0540b585c7
Refine monitor 2x2 slots and drop tablet CSS.
...
Add options target column, reserve pos/monitor rows, equal columns, and remove hub-tablet densify path.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-16 14:03:59 +08:00
dekun
018b4d5601
Split OKX monitor into perp and options cards.
...
Align four exchange cards in a 2x2 grid so 1080p layout stays balanced.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-16 13:47:21 +08:00
dekun
bde8c517e0
Tighten empty monitor cards on 1080p.
...
Size no-position blocks to content and give remaining height to options/positions.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-16 13:42:26 +08:00
dekun
480f6d78e8
Fix desktop blur from false tablet layout.
...
Stop classifying short desktop viewports as tablets so densify fonts do not apply.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-16 13:35:41 +08:00
dekun
57dad1ffdf
Fit tablet hub to one screen with denser type.
...
Keep full card content readable; shrink fonts/spacing and use in-table scroll only when positions overflow.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-16 13:22:57 +08:00
dekun
7d6f0ac55b
Fix tablet hub cards clipping content.
...
Prefer visible card content over forced one-screen crop; auto row heights and page scroll on hub-tablet.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-16 13:13:17 +08:00
dekun
2777419a10
Add tablet viewport fit for hub one-screen layout.
...
Hi-DPI tablets like 2560x1600 map to ~1280x800 CSS; broaden fit breakpoints and densify for hub-tablet.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-16 13:09:29 +08:00
dekun
836b37cc7e
Fit hub monitor, market, and funds to one 1080p screen.
...
Constrain desktop shell to 100dvh with flex fill so OKX perp+option plus peer cards, chart, and equity overview avoid page scroll.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-16 13:01:17 +08:00
dekun
4686cf049a
Require real ask depth for options and hedge opens.
...
Block mark-as-ask opens, show reference mark when no depth, cap sheets to ask size; leave close paths unchanged. Document in docs/更新文档.md.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-16 12:48:53 +08:00
dekun
f0d5b47f50
Fix options add-on premium to sum all open legs for the contract.
...
Display, close gate, alerts, and full-close accounting no longer use only the latest fill row.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-16 11:11:32 +08:00
dekun
19a4a5194d
Use per-exchange PWA names and logos for instance app installs.
...
Show Binance/OKX/Gate 交易系统 with distinct exchange icons in manifests, apple titles, and login branding.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-16 08:44:07 +08:00
dekun
6f934ecbbf
Clarify 2x recycle is a target-close gate, not auto-close.
...
Rename UI copy from auto-close to target gate so 2x alone is not read as a close trigger.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-15 22:16:06 +08:00
dekun
cbb7f954f5
Auto-cancel stale option close limits after pending TTL.
...
Default 10m via OKX_OPTIONS_PENDING_TTL_SECONDS; show age/countdown in pending panel; monitor loop cancels sell closes.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-15 22:06:24 +08:00
dekun
1909eea654
Use bid1-only option closes with hard-disabled market exits.
...
Manual close checks liquidity only; target auto still requires 2x recycle hold once, then reuses the shared bid1 executor. Add /options/guide doc and update hedge-plan refs.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-15 21:49:06 +08:00
dekun
1fa98425e7
Add OKX hedge-plan P0: env group, preview page, and PnL scenario math.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-14 11:00:15 +08:00
dekun
d27ccbea8f
Add OKX options hedge strategy guide for manual perp and options pairing.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-13 11:20:03 +08:00
dekun
58c9f36a75
Add interactive deploy manager with install, uninstall, and update menus.
...
Provides curl-friendly manage.sh so production servers can bootstrap without a prior clone, then configure API and risk settings in the browser.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-12 12:23:29 +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
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
0d2ce9c126
Add curated env config UI with Chinese labels and deploy secret bootstrap
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-08 21:03:00 +08:00
dekun
806bb074ab
feat: add OKX options module with dual API, USDT/USDC convert, and docs
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-07 08:17:27 +08:00
dekun
ff1bcd69d2
feat: two-level entry model UI for trend accounts (reversal/trend/swing)
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 19:02:18 +08:00
dekun
eb6788091d
docs: OKX reversal launch A/B strategy v0.4 with short mirror
...
Align OKX strategy MD and checklist with binance v0.4; document long reversal and mirrored short rules.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 18:50:04 +08:00
dekun
96ab7e997c
docs: binance reversal launch A/B strategy v0.4 draft
...
Document MACD divergence, reference-high two-touch rules, launch A (A1/A2) and B; update hub checklist. UI implementation still pending.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 18:44:17 +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
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
df99eb5fb5
chore: gate-only force-close policy and deploy pull script
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 02:32:35 +08:00
dekun
3c0c62997f
chore: align binance/okx env examples with gate and add sync script
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 02:31:06 +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
5137d5ed17
fix: remove inline estimated TP preview from fixed RR order form
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 00:40:16 +08:00
dekun
e81343ae91
fix: 小分歧联动波段单显示,杠杆改为按币种默认只读
...
option 增加 data-trade-style;修复 JS 初始化顺序。杠杆隐藏输入,显示 BTC/ETH 10x 其它 5x。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 00:28:10 +08:00
dekun
ea429b2694
feat: 趋势户开仓类型大分歧A/B/小分歧,自动联动趋势波段与复盘
...
下单监控增加 entry_model 下拉;平仓写入短标签并预填复盘。Binance/OKX 用趋势 profile,Gate 日内仍用手选 trade_style。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 00:18:38 +08:00
dekun
21894334f8
feat: KEY_AUTO_ORDER_ENABLED 三所统一开关,联动关键位自动单与开仓类型
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-05 23:39:06 +08:00
dekun
4923b32bbe
feat: 新增 Plan B 整目录重装脚本,不影响 setup_env 一键安装
...
添加 deploy/reinstall.sh 备份 env、克隆、调 setup_env、恢复配置并 PM2 启动;
附带 pm2_start_all.sh 与 hub_settings 清理工具。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-04 22:07:59 +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
5797d49d8a
refactor: 将共用代码迁入 lib/ 模块化目录
...
统一 strategy、key_monitor、trade、hub 等共用库到 lib/ 子包,并补充 lib-structure 文档,便于四所与中控维护。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-02 16:23:09 +08:00
dekun
5b3448b52b
feat: 关键位回调/突破触价开仓拆分与穿越触发
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-29 10:49:43 +08:00
dekun
e51d7824a7
fix: 全仓模式预估风险/盈利按杠杆与可用保证金计算
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-29 00:38:27 +08:00
dekun
6ffae02d30
Allow roll add-ons while position-limit freeze is active.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-24 02:08:44 +08:00
dekun
9d1986d771
Exclude trend and roll monitors from position-limit freeze count.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-24 02:04:09 +08:00
dekun
322060de31
Show position-limit freeze on hub and instance risk badges.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-24 01:58:24 +08:00
dekun
c0f3606ecc
Add win rate and profit-loss ratio to archive stats.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-21 09:13:37 +08:00
dekun
c05afbbedf
Add win/loss metrics to archive stats with symbol filter sync.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-21 09:03:21 +08:00
dekun
ce172a7cee
Fix false freeze after restart from stale account_risk_state.
...
Clear expired cooloff on read, never restart timer from invalid future anchors, and reconcile with journaled manual closes when the 1h window already ended.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-18 22:14:58 +08:00
dekun
9330e356fc
Fix freeze countdown exceeding configured cooloff hours.
...
Clamp future last_close anchors, cap remaining time server-side, prefer freeze_remaining_sec in the badge JS, and auto-repair stale DB rows on read.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-18 22:11:09 +08:00