dekun
ead3545df8
Show WeCom machine name after brand title on shell and login.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-02 11:43:02 +08:00
dekun
9427d9c429
Skip used/residual expiries so ATM monitors the next day.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-02 10:31:07 +08:00
dekun
05520f82bd
Show option premium in trade detail and widen the modal.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-02 10:25:33 +08:00
dekun
cad86813dc
Cap fullscreen detail at 1920px width for ultrawide side margins.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-02 10:17:07 +08:00
dekun
987467a808
Make strategy detail overlay fill the entire viewport.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-02 10:14:46 +08:00
dekun
60a1e7ad48
Use horizontal tables for strategy and stats in centered fullscreen modal.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-02 10:10:31 +08:00
dekun
b76ef0d248
Center detail modal at 920px with table layout for strategy and stats.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-02 10:06:41 +08:00
dekun
18fdfc6d0a
Fullscreen strategy detail with 5-row equity pagination.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-02 10:01:52 +08:00
dekun
63225f64de
Show option contract ID and expiry date in trade detail.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-02 09:54:07 +08:00
dekun
079dc83132
Show strategy stats in control monitor detail modal.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-02 09:49:27 +08:00
dekun
0e3b9e53ac
Enrich WeCom open/close notifies with Chinese qty, margin, and PnL.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-02 08:58:49 +08:00
dekun
aab0b9bdf6
Support up to 3 strategy slots on one host with auto ports.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-01 23:33:41 +08:00
dekun
9c515644a3
Add risk leverage basis option: actual ask vs selection leverage.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-01 17:01:18 +08:00
dekun
f1da2778ef
Add one-expiry-per-day open rhythm gate (default on).
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-01 16:39:32 +08:00
dekun
22c42a19a0
Count exit fees in live/SIM net PnL as entry fee x2.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-01 09:27:41 +08:00
dekun
dffcc4eeb9
Show option bid as price/size and option leverage on plan and trades.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-31 16:01:34 +08:00
dekun
dffcd77837
Add trade move points; label option UPL price as bid not mark.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-31 15:44:52 +08:00
dekun
8ceb521049
Add WeCom machine name for multi-node push labels.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-30 17:28:32 +08:00
dekun
021b0d0a22
Align emergency option close to OKX: use bid only, never mark.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-30 17:15:38 +08:00
dekun
2b7c504134
Use half-width colon for risk ratio 1:2 on Plan page.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-30 15:20:48 +08:00
dekun
c05478015d
Read risk_loss_pct exit base and option lev from strategy settings.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-30 15:03:26 +08:00
dekun
67f22626e9
Show risk params box on control cards and modal.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-30 14:58:30 +08:00
dekun
c5f477b8bc
Hide username and logout on LAN clients in control header.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-30 13:47:50 +08:00
dekun
be5803332f
Keep monitor alive across nav and speed up status collect.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-30 13:44:27 +08:00
dekun
3c2589f653
Fix control status: do not treat /health as fleet (missing positions).
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-30 13:36:21 +08:00
dekun
b3ba0fd431
Add SSE second-level status push for control monitor.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-30 13:32:28 +08:00
dekun
7136adcaa9
Widen settings forms and fix Token clipboard copy fallback.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-30 13:15:22 +08:00
dekun
3556450ff0
Show in-position vs flat on control monitor cards with green/red.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-30 13:09:30 +08:00
dekun
e7529e9dc4
Document Fleet control center across README and core docs.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-30 13:07:25 +08:00
dekun
d46eaf43ab
Control settings tabs, hide default creds hint after change, LAN passwordless login.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-30 13:04:07 +08:00
dekun
8034464c2f
Brighten and bold control modal PnL colors.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-30 11:27:37 +08:00
dekun
7c87c42061
Require confirm before control single/batch code update.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-30 11:14:14 +08:00
dekun
75e89ca442
Colorize control detail modal net PnL and leg upl (green/red).
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-30 11:12:12 +08:00
dekun
a317822f7a
Improve control monitor cards: green when running, detail modal with positions.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-30 11:07:54 +08:00
dekun
08fe06d074
Fix control unauthorized: map strategy 401 to 502 and keep fleet headers on redirect.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-30 10:57:06 +08:00
dekun
da5eb4c18c
Add Fleet control plane and split manage.sh deploy menu.
...
Strategy nodes gain fleet token APIs; control/ app for local ops; manage.sh offers strategy vs control one-click deploy.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-30 10:46:40 +08:00
dekun
200702d066
Harden strategy SoT: fail-closed funds gate, shared open pipeline, LIVE switch guards.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-30 01:06:32 +08:00
dekun
4c537e7520
Reset auto USDC cooldown in unit tests for stable assertions.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-30 00:34:36 +08:00
dekun
cc0f0ffd0d
Run OKX auto USDC convert before option pick when trading USDC is short.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-30 00:28:11 +08:00
dekun
a9939bbbdd
Route manual USDT/USDC convert through trading account (not funding).
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-30 00:23:16 +08:00
dekun
0837982714
Add OKX trading-account USDC auto-swap and lock exit target while in position.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-30 00:16:47 +08:00
dekun
f0b0b91f1b
Show risk sizing as a dedicated Plan mode row (比例 / k / 预算).
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-29 23:59:29 +08:00
dekun
5eb169a636
Show live risk-sizing estimate on plan page instead of stale manual qty.
...
When 以损定仓 is on, state() overlays next-open k/qty/exit from market preview.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-29 23:52:43 +08:00
dekun
a47a9b6377
Polish risk sizing: 2dp money preview, editable ratio/exit, plan badge.
...
Exit unit and perp/option units scale with k; plan page shows 以损定仓.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-29 23:48:34 +08:00
dekun
3a4c8d639c
Add risk-based position sizing (以损定仓) with per-open k resize.
...
Manual vs risk modes are exclusive; each open floors k to 1 decimal so estimated premium+fees stay within the loss budget.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-29 23:32:42 +08:00
dekun
0b51aa15ff
Stop sticky header so nav no longer overlaps funds bar on scroll.
...
Transparent sticky header let scrolling stats text bleed through the nav labels.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-29 21:47:08 +08:00
dekun
c425a08a8f
Rebuild broken .venv when activate is missing after ensurepip failure.
...
Half-created venvs often keep bin/python3 without activate; directory existence is not enough.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-29 21:37:04 +08:00
dekun
467203b61d
Detect ensurepip and auto-install python3-venv in one-click deploy.
...
Avoid false OK on bare python3; repair broken .venv; re-check deps after git pull.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-29 21:33:18 +08:00
dekun
9ec0cacf45
Improve apt-lock wait: stop unattended-upgrades during deploy.
...
Shows lock holders and optionally stops auto-upgrade so Node install is not stuck after reboot.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-29 21:29:38 +08:00
dekun
17ba41923a
Wait for apt lock during deploy on fresh Ubuntu hosts.
...
Avoid failing Node install when unattended-upgrades holds dpkg; poll up to 10 minutes then retry.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-29 21:20:40 +08:00