dekun
baf928d064
Highlight selected Call/Put legs on the OO hedge T-quote board.
...
Selected buttons show 腿A/腿B and accent styling so the active strikes are obvious.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-06 09:13:00 +08:00
dekun
f19500bcd9
Fix options PnL backfill matching when the same contract is traded twice.
...
Match exchange history by sheets and open time so an earlier close is not overwritten with the later trade's PnL.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-06 09:04:30 +08:00
dekun
25ed46e3f2
Default options chain to ATM plus 3 ITM and 3 OTM.
...
Apply the same window in list and T views; expand-all remains available on both.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-06 08:55:34 +08:00
dekun
7f22bffbc6
Shorten force-close window to 5m and grey-out open during blocks.
...
Unify Gate/OKX/Binance: disable the open button with a side note during force-close, cooloff, and daily freeze, and enforce the same gate server-side.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-06 08:38:00 +08:00
dekun
7352d10254
Fix hub total floating PnL by excluding OKX options from swap agent.
...
Option legs were scored with linear swap math and then added again from the options snapshot, inflating 总浮盈亏 and 持有仓位.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-05 22:13:22 +08:00
dekun
3f6e67661b
Lock hedge-plan option selection to ITM/ATM (perp) and ATM/OTM (OO).
...
Server validate on preview/start, UI filters and recommend templates, plus usability/security audit doc.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-05 21:50:35 +08:00
dekun
09a763e47d
Merge OKX dual APIs into one OKX_API_* account for perp and options.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-05 21:28:33 +08:00
dekun
22e6b68e6d
Add OKX env toggle to show or hide perpetual funds in the header.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-05 17:55:15 +08:00
dekun
55e94fe059
Restore Gate intraday close/TP-SL controls and document force-close rules.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-05 08:16:02 +08:00
dekun
747434a65e
Add index-over-ask leverage column to options chain list.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-01 10:26:11 +08:00
dekun
f6ea0dc399
Add all-time stats tab with monthly breakdown on instance analytics.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-01 09:49:47 +08:00
dekun
a00699aec3
Fix TP/SL exit classification when exchange fill slips past the tight band.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-01 09:38:28 +08:00
dekun
4b4dca9e3c
Fix strategy-logic P0s from audit: monitor false-flat, fill-confirmed open/close, mode gates.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-30 09:56:18 +08:00
dekun
fa7ff739a0
Fix env form grid class so mode refresh keeps two-column layout.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-30 09:28:16 +08:00
dekun
fdbbde08df
Refresh env UI on trade-mode change; hide hedge review tabs in options mode.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-30 08:38:19 +08:00
dekun
83ce50b24e
Add OKX three-way trade mode for options vs hedge.
...
Env OKX_TRADE_MODE selects standalone options, perp hedge, or OO hedge; hide the other module UI and use group or position limits per mode.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-30 08:28:50 +08:00
dekun
f9c2a63cbc
Preflight options position limit for dual-leg OO hedges.
...
Reject OO start when max active is under 2 free slots so limit=1 cannot open a half straddle.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-30 08:17:17 +08:00
dekun
94c65cbd6e
Add OKX options max active positions env gate.
...
Enforce concurrent option contract count on standalone and hedge buys; editable in env UI with hot reload (0 = unlimited).
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-30 08:12:50 +08:00
dekun
d89aff3ad6
Use absolute coin counts in perp-options points mode.
...
Treat 2:4 as 2 perp + 4 option coins instead of normalizing to 1:2, and disable embed page caching so hub iframe picks up trade UI updates.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-29 22:54:16 +08:00
dekun
9f3395de2f
Add sideways max-loss to perpetual-options calculator.
...
Show premium wipeout plus flat round-trip perp fees as case C for both size and points modes.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-29 22:38:20 +08:00
dekun
28a329cb63
Restructure live order form into labeled rows for clearer hierarchy.
...
Group policy selects, SL/RR fields, options, and submit so the unlabeled RR input and scrambled checkbox/price row no longer fight for space.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-29 09:24:17 +08:00
dekun
26bc19f047
Add two-day amplitude window to amp-stats.
...
For each settlement day, also compute H-L over start minus one day through 16:00 (e.g. 25 16:00 to 27 16:00).
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-28 15:05:38 +08:00
dekun
c81ba147cc
Replace amp-stats straddle/perp overlays with move-points amplitude ratio.
...
Input points now drives amplitude hit share; table keeps both-side moves and amp达标.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-28 14:56:48 +08:00
dekun
90be23e845
Fix amp-stats perp PnL to exit at daily profit target.
...
Hit A/B via open-to-high/low; day PnL equals target when touched, otherwise settle at close.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-28 14:41:29 +08:00
dekun
2ce67da8e8
Use daily open as perp-hedge entry and toggle buy-straddle vs perp overlays.
...
Amp-stats now prices premium from each day's open, and the form switches mutually between straddle and perpetual-options对照.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-28 14:31:17 +08:00
dekun
d049c5d317
Add perpetual-options hedge overlay to amp-stats with hit rates and daily PnL.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-28 14:20:42 +08:00
dekun
a908dccaba
Add ratio-to-move-points mode for hub perpetual-options calculator.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-28 12:47:17 +08:00
dekun
4bcf88b5cb
Add hub perpetual-options hedge calculator tab and sizing formula.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-28 12:37:51 +08:00
dekun
1755f67eca
Phone tabbar: 下单/关键位/期权, hide options tab when unavailable.
2026-07-27 07:48:11 +08:00
dekun
6886de0bad
Phone-only: funds strip, hide list filter, slim options columns, fix order dialog.
2026-07-27 07:26:34 +08:00
dekun
f04a91efe6
Fix instance phone layout: tabbar padding, form stack, options table scroll.
2026-07-27 07:20:08 +08:00
dekun
b43e33e24f
Register instance_mobile_nav.js in shared static asset routes.
2026-07-27 07:13:20 +08:00
dekun
b5a061e758
Add instance phone shell with bottom tabbar and more sheet.
2026-07-27 07:13:04 +08:00
dekun
a2075ba73e
Cap options budget-full sizing at min(balance, trade budget) with UI hint.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-26 08:54:38 +08:00
dekun
846f3de525
Keep transfer settings sub-tab after embed soft-reload of manual transfer.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-26 08:42:01 +08:00
dekun
a7b75895e6
Preserve settings transfer sub-tab after manual transfer in embed shell.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-26 08:37:26 +08:00
dekun
d870178b83
Show auto-transfer account and currency as selects with defaults.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-26 08:34:02 +08:00
dekun
7ebe1671b2
Keep settings on transfer tab after manual USDT transfer redirect.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-26 08:27:15 +08:00
dekun
cb4f6aaa4b
Normalize TRANSFER_CCY to uppercase so Gate wallet transfers do not fail.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-26 08:24:26 +08:00
dekun
890659f173
Add key monitor and live trade toggles to instance nav display prefs.
...
Defaults stay on; users can hide them like other top-bar tabs.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-24 00:55:31 +08:00
dekun
ca499c6104
Send WeChat alerts on OKX options open and close.
...
Cover manual, target, and exchange/expiry sync with idempotent sent flags.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-24 00:48:15 +08:00
dekun
54f1857fa2
Sync OKX options closed trades into hub archive with a separate tab.
...
Mirror perpetual archive flow into archive_options_trade_cache for offline calendar and review.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-24 00:39:59 +08:00
dekun
6f1ae14b3d
Add display toggles to hide monitor cards and strategy tabs.
...
Keep unused exchanges/docs out of the UI without disabling accounts.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-24 00:24:00 +08:00
dekun
29d59d6a53
Add playbook v2 without hedge as the primary strategy guide.
...
Wire hub strategy tabs and coach brief to 1H→space→structure→risk/reward→options/perp only.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-24 00:09:40 +08:00
dekun
ed3033d793
Add hub strategy compare page for perp vs options vs 7:3 hedge.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-23 14:39:59 +08:00
dekun
8e3c00641f
Hide options PnL/ROI and daily float when account-PnL pref is off.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-23 12:39:43 +08:00
dekun
8a9dee267f
Add open-trade three-check behavior guidelines.
...
Document signal/process/emotion firewall, expose it in hub strategy tabs, and brief the AI coach.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-23 09:15:47 +08:00
dekun
910c938d0a
Throttle OKX amp-stats candle pagination and retry on 429.
...
Add page pauses, exponential backoff, and cooldown before swap fallback to avoid rate limits.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-23 02:57:24 +08:00
dekun
0a9e3aa95c
Fix amp-stats long-range candles via OKX history endpoints.
...
Recent candles cap near 60d; continue with history-index/history candles and color profit green/red.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-23 02:53:36 +08:00
dekun
b64c742fc9
Add weekend filter, take-profit, and profit column to amp stats.
...
Long-straddle effective move uses TP on path hit (>=) else abs change; mark Sat/Sun on settlement days.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-23 02:47:20 +08:00