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
c6e8f6fe1e
Support LIVE exchange funds and perp margin mode.
...
Hide sim equity when LIVE is selected; OKX funds bar uses exchange balances; add cross/isolated for perp only (options stay cash).
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-29 19:57:09 +08:00
dekun
50a4540aaf
Remove background from header brand and top nav.
...
Use transparent text links; active state is accent color only.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-29 19:49:03 +08:00
dekun
9b3693e542
Drop index from option market card title.
...
Index remains only on the perp quote card.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-29 19:45:11 +08:00
dekun
a668214e5d
Show perp mark and option index on market cards.
...
Uppercase ETH in 选约条件; add 市价 to perp quote; append index after ATM strike title.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-29 19:41:52 +08:00
dekun
b2e23e973f
Show qty on plan card and merge float PnL row.
...
Read perp/option ETH size into 选约条件; combine 永续/期权浮盈 on one line.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-29 19:38:55 +08:00
dekun
e1da830eac
Improve desktop settings and trades list UX.
...
Fold backup/WeCom help into rules; backup list one-per-line (5 visible); trades table with 10/page; hide funds bar on mobile.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-29 19:31:30 +08:00
dekun
0ee1d8be5d
Add fixed-direction switch for perp/option open side.
...
When enabled, lock perp long→buy Put or short→buy Call with ITM/ATM only; off keeps ATM/ask rules.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-29 19:18:12 +08:00
dekun
71b5fcae79
Show strategy rules in fold; larger nav; notify only when cannot open.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-29 18:12:26 +08:00
dekun
a5945f0837
Notify funds short once; check trading only; drop duplicate plan title.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-29 18:07:59 +08:00
dekun
6be46a1126
Center funds bar and stack USDT/USDC on two lines.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-29 18:03:08 +08:00
dekun
81e51236c0
Align funds to OKX funding/trading only; fold rules; match settings width.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-29 17:59:28 +08:00
dekun
80c561bdce
Show open-capacity labels, enlarge funds, move rules; WeCom on short funds.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-29 17:53:43 +08:00
dekun
6081fb7e48
Align header with crypto_monitor: brand above nav, shared page width.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-29 17:45:04 +08:00
dekun
f49365b4d4
Constrain funds bar width and fold strategy rules.
...
Match page max-width on ultrawide and move the plan subtitle into a collapsible rules section under the funds strip.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-29 17:37:34 +08:00
dekun
5c3bd4b654
Add OKX-style funds bar with USDT/USDC convert and transfer.
...
SIM uses multi-wallet balances; LIVE hits OKX asset/account APIs and spot USDC-USDT swap. Funds strip hides sim labeling.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-29 17:06:13 +08:00
dekun
1c75db4a19
Split fee stats by leg and hide LIVE slip.
...
SIM shows perp/option fees and slip separately; LIVE keeps real exchange fees only with slip forced to zero.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-29 16:37:18 +08:00
dekun
8518a207a7
Show expiry settlement as index vs strike intrinsic.
...
Persist settle_index_px and surface formula in trade detail so expiry closes are not mistaken for book fills.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-29 16:15:22 +08:00
dekun
3df64aeb2d
Show open time and hold duration on position cards.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-29 15:41:56 +08:00
dekun
195e63fb2e
Show each residual option on its own line.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-27 16:02:10 +08:00
dekun
1f6de95711
Open trade detail in a modal dialog on row click.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-27 15:48:32 +08:00
dekun
14c6ba51a8
Show trade open/close times and hold period by target exit.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-27 15:37:37 +08:00
dekun
0e3a8b08ec
Lock Android portrait via fullscreen then orientation.lock.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-27 14:30:43 +08:00
dekun
ed96b3ffb0
Force portrait layout on phones instead of landscape prompt.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-27 14:26:12 +08:00
dekun
bc0be9ce1a
Lock phone UI to portrait with PWA and landscape gate.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-27 14:21:43 +08:00
dekun
b4f709024f
Fix mobile option card and trade list wrapping.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-27 07:00:45 +08:00
dekun
60112bf8eb
Add mobile monitor layout with bottom nav and glance card.
...
EOF
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-27 06:54:42 +08:00
dekun
56a4007130
Add WeCom markdown alerts and keep target exits while strategy is paused.
...
Notify open/close/start/pause/fault with SIM vs LIVE venue labels; configure webhook in Settings.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-26 23:19:39 +08:00
dekun
2b348854fe
Add DB+.env auto backup with download and upload restore in Settings.
...
Backups land under /root/eth_hedge_backups; restore accepts zip body for new-server migration and restarts the process.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-26 23:05:58 +08:00
dekun
16efa44ffb
Hide manual trade by default, block open while running, auto-refresh auth token.
...
Also fix flat-side reconcile to check both long and short residuals; document in 更新说明.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-26 22:43:38 +08:00
dekun
f48ea5bbcc
Audit fixes: LIVE symbols/fills/expiry/pending, security harden, add 更新说明.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-26 22:28:03 +08:00
dekun
8813fd3e37
Use 比特骆驼 logo for PWA/brand marks, remove install button, docs Ubuntu 22.04 only.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-26 22:07:11 +08:00
dekun
86d3c94f32
Rebrand to 比特骆驼自动化对冲系统; clear login autofill and sim subtitle.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-26 22:02:09 +08:00
dekun
cb97a45051
Add PWA install badge for desktop and tablet (manifest, SW, Add to Home Screen).
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-26 21:57:39 +08:00
dekun
aca9d80e64
Collapse field hints into a default-folded 规则说明 on strategy and runtime settings.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-26 21:52:49 +08:00
dekun
ca66c494e7
Use exchange fees, UPL, funding for LIVE PnL; USDC 1:1 to USDT.
...
Option open P&L stays local (option net); exit target ignores estimated close fees.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-26 21:49:20 +08:00
dekun
b7e055e37b
Add always-apply rule: deploy after edits; chat-only when user says 先聊.
...
Also split strategy settings into subtabs and hide sim equity in LIVE.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-26 21:41:16 +08:00
dekun
dbc86a1ce6
Add Binance live trading, anti-stuck open/close recovery, and configurable rate limits.
...
OKX/Binance LIVE share half_open and option_closed_perp_pending repair paths; private REST throttles default to 1s and are tunable in settings.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-26 21:35:10 +08:00
dekun
e666230d0b
Add SIM/LIVE switch with API keys saved to .env and OKX live executor.
...
Enable settings UI for mode/keys, gate strategy start when LIVE is not ready, and stop PM2 from forcing MODE=SIM.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-26 21:08:39 +08:00
dekun
38ffbf728b
Pin market watch to held option strike while a position is open.
...
Stop falling back to ATM quotes for unrealized/close PnL after ATM drifts or restart.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-26 18:37:20 +08:00
dekun
4994aaab16
Implement dual target-close paths and residual option expiry.
...
Document and enforce: A full dual-leg close, B perp-only when deep OTM with residual archive that does not block next open, and expiry settlement when target is missed.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-26 18:32:05 +08:00
dekun
96e8e5cb70
Show option/perp PnL and fee-deducted net in trade details.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-26 16:14:48 +08:00
dekun
32e8de85cc
Show option top-of-book size and open option before perp.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-25 12:57:16 +08:00
dekun
fff285c1f9
Add ATM open-offset toggle default off.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-25 12:42:20 +08:00