dekun
20e0c2cb9f
refactor(hedge): env-driven option-primary UI with grouped params
...
Move mode switch to HEDGE_PLAN_OPTION_PRIMARY, split left into capital/select/exit groups, and show perp quote above options with leverage auto-match.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-09 09:05:32 +08:00
dekun
c3c7243dd7
fix(hedge): do not apply option leverage gate to ITM/ATM chain list
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-09 08:55:33 +08:00
dekun
f7e5329915
fix(hedge): hide mode-specific fields and default to option-primary
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-09 08:49:24 +08:00
dekun
e7e733d9a9
fix(hedge): filter options-chain by min hours and strike interval for option-primary
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-09 08:38:11 +08:00
dekun
afe361ce47
feat(hedge): add option-primary mode for perp+options plans
...
Add UI switch for Call+short/Put+long, premium x0.95 sizing, option-first open, and K+/-points exits with fee-aware net PnL.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-09 08:29:26 +08:00
dekun
993189ce13
Limit OO T-quote to 3 Call and 3 Put by default with leverage columns.
...
Drop the scroll box, add a show-all toggle after refresh, and show K/ask leverage on both sides.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-06 09:27:01 +08:00
dekun
2181c81aba
Show selected state on OO money filters and recommend buttons.
...
Muted idle chips, cyan checkmark when active so 平/虚 and 推荐跨式/双虚 are obvious after click.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-06 09:17:07 +08:00
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
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
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
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
60ff45f098
Fix hedge option PnL match by parsing opened_at as Asia/Shanghai.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-21 10:21:52 +08:00
dekun
7e7666adfb
Align hedge plan option leg PnL with OKX exchange history.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-21 10:09:44 +08:00
dekun
3ae7def999
Show live hedge budget buffer ratio in options-options rule tips.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-20 10:32:06 +08:00
dekun
c9229d64bf
Move hedge rule tips into left parameter cards as inline collapses.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-20 10:25:31 +08:00
dekun
3923818508
Add collapsible rule tips for perp-options and options-options hedge tabs.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-20 10:22:04 +08:00
dekun
00d76ba20f
Stop browser autofill stuffing login username into transfer amount fields.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-20 10:14:14 +08:00
dekun
5b346a5760
Hedge start: re-quote ask and resize OO sheets; add HEDGE_PLAN_BUDGET_BUFFER.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-20 10:09:32 +08:00
dekun
a43cb35d9a
Add end-plan action; never show unfilled option legs as open.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-20 09:36:46 +08:00
dekun
8597e47596
Hedge options open: require full fill (IOC + wait) before success.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-20 09:14:03 +08:00
dekun
3c21680763
Bump hedge_plan.js cache for Chinese close-reason labels.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-19 16:45:27 +08:00
dekun
38ac258497
Color 期期 preview PnL and show RR vs full premium loss.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-19 15:43:01 +08:00
dekun
7938628485
Fix 期期 sheets bias: split total 2n from same-sheets, not n.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-19 15:33:00 +08:00
dekun
e3cd2a75de
Replace 期期 equal-split with long/short bias sizing and env ratio controls.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-19 15:25:10 +08:00
dekun
d74d0aeae0
Park partial hedge plans for manual leg complete instead of auto-close.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-19 09:06:22 +08:00
dekun
e11c13747a
Add mutual-exclusion gate between hedge plans and standalone options.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-19 08:51:46 +08:00
dekun
fa2127d66c
Make 永期 hedge UI clearer with dir segments and field grid.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-19 08:34:45 +08:00
dekun
d5f3f315dc
Show hedge-plan scenario preview in a modal with start/cancel.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-19 08:28:54 +08:00
dekun
1c155328b4
Move 期期 USDC transfer into T-quote card to free left panel.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-19 08:20:55 +08:00
dekun
3093d07167
期期: green index after lower target, USDC transfer, clearer selected state.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-19 08:16:44 +08:00
dekun
79420904f4
Tighten 期期 parameter UI: compact controls, less copy.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-19 08:10:12 +08:00
dekun
3119486105
Add 期期 close mode (全平/到期平) with scheme-C env toggle.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-19 08:06:27 +08:00
dekun
b3548240cc
Auto-fill 期期 sheets from trading balance with same-sheets default.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-19 00:56:35 +08:00
dekun
f21e4d1166
Add env toggles to show/hide perp and options hedge plan tabs.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-19 00:43:04 +08:00
dekun
c4c8ad172a
Label dashboard positions from monitor sources with priority.
...
Match hedge/roll/trend/order/key monitors for source badges, show option target monitors in green, and refresh the dashboard with the board 5s cycle.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-17 14:25:36 +08:00
dekun
eb5c6a658b
Show hedge targets in control center
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-17 07:29:45 +08:00
dekun
8f71dbe874
Show hedge targets in options monitoring
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-17 07:15:00 +08:00
dekun
6e6cb7caac
Add active hedge plan tab
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-17 07:04:51 +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
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
8ecc70a61c
Support dual breakout targets for options-options hedges.
...
Replace single S* with up/down targets across UI, preview, persist, monitor, and alerts so ranging breakouts can close the winner either way.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-14 14:32:06 +08:00
dekun
f6ef06f659
Add hedge history delete/detail modal and typed stats cards.
...
History shows contract names with clickable fill details; stats split perp vs options plans for win rate, profit factor, max win/loss, and drawdown.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-14 14:04:48 +08:00
dekun
e6907dfbbe
Add hedge-plan WeChat start/end alerts and expiry settlement.
...
Wire idempotent notify on open/close/partial fail, settle OO at expiry, and close orphaned TP option legs without rewriting plan totals.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-14 13:23:32 +08:00
dekun
982497d65a
Enable hedge-plan live opens with path validation, DB, and monitor.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-14 13:15:10 +08:00
dekun
5fcf649c79
Move hedge-plan calc actions to second card and add spacing above preview.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-14 13:05:56 +08:00
dekun
8afaea1ea6
Allow entering sheet counts for each options-options hedge leg.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-14 12:59:24 +08:00
dekun
9e0d89bd01
Align hedge-plan perp contract precision with exchange and show TP/SL USDT PnL.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-14 12:49:03 +08:00