dekun
5e2f332bdd
期权链列名「距平衡」改为「平衡价差」
...
列表表头与下单面板标签统一为平衡价差。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-23 08:23:07 +08:00
dekun
aa1a2da2b7
距平衡改为行权价到平衡价的价差
...
Call 为 BE−K、Put 为 K−BE;链/下单/持仓统一;顺带修复 format_position_row 中 row_mode 引用顺序。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-23 08:21:31 +08:00
dekun
57cca5554e
划转默认折叠,修复币本位到期平衡计算
...
币本位权利金为币报价,到期平衡按 OKX 结算公式 K/(1±p) 计算;链/持仓/跨式平衡带同步修正。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-23 08:15:33 +08:00
dekun
aa14688a7e
持仓区增加账户内划转,买一平仓规则并入左侧开平仓说明
...
持仓卡片底部可折叠划转面板(资金/交易 USDT/USDC);移除持仓区重复平仓规则,统一到左侧开平仓规则说明。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-23 08:11:19 +08:00
dekun
fe5bb923d7
期权页增加重试卖回ETH按钮,平仓后可手动全额卖回交易户标的币
...
币本位模式下持仓区显示重试按钮与可用余额提示,调用已有 spot-bridge 接口按交易账户全部可用量市价卖回 USDT。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-23 08:01:19 +08:00
dekun
893a2cc115
币本位期权数据统计按指数折算为U,不再误标USDC导致0.00
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-21 06:17:55 +08:00
dekun
9421ff7360
期权历史表:盈亏单行显示,收窄合约列
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-20 21:56:36 +08:00
dekun
1314349fe5
修复币本位期权杠杆显示:按1/卖一而非指数/卖一
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-20 12:18:15 +08:00
dekun
72c84bb993
实现OKX单笔期权币本位与USDT桥复利(中控只读,不改Gate)
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-20 12:10:29 +08:00
dekun
86cf722117
修复翻倍倍数输入被刷回1:持仓轮询重绘时保留草稿,聚焦输入时跳过重绘。
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-12 16:20:45 +08:00
dekun
2a33f74252
修复翻倍倍数无法手输:未勾选开启时不再 disabled,应用/勾选只控制是否监控。
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-12 16:17:09 +08:00
dekun
271865fa3d
修复全仓复利关闭后仍无法开仓:前端不再残留选中全仓,后端强制改指定张数。
...
审计:开关关闭时隐藏全仓芯片并自动勾选指定张数;报价/余额热同步 compound_full_enabled;API 将 compound_full 归一为 sheets(缺张数默认1);单测覆盖开关开关两种归一路径。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-12 16:14:53 +08:00
dekun
8605efa2ed
翻倍出场监控中按钮改为取消;中控目标监控列显示倍数如1倍。
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-12 10:37:31 +08:00
dekun
cd23ea74a6
单独期权增加翻倍出场:可开关、自选倍数(默认1倍=盈利等于权利金),达标后买一限价平。
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-12 10:31:29 +08:00
dekun
8dda7500df
修复期权页 Jinja 语法错误导致 HTTP 500。
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-12 10:19:37 +08:00
dekun
a8d6795837
全仓复利开启时隐藏并禁用单笔预算;关闭后才显示可用打满预算。
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-12 10:00:50 +08:00
dekun
51e454b0f6
增加独立的全仓复利开关,与上限开关分离;关闭时隐藏下单模式并拒绝开仓。
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-12 09:52:13 +08:00
dekun
1522117eeb
单独期权增加全仓复利模式:可选上限开关,仅允许一仓
...
用期权户全部可用×缓冲开仓,默认不设上限;开启上限后按 env 封顶,全仓时禁止已有持仓再开。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-12 09:45:36 +08:00
dekun
a354811a6e
修复期权链拉取触发 OKX 50011 限频
...
为 instruments 加进程缓存并在限频时回退旧数据,前端遇 50011 不再连打重试。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-11 17:31:46 +08:00
dekun
3d7d754ba3
单独期权下单预估改为显示盈亏比
...
目标位指数仅作到期实值参考,展示盈利÷本合约权利金;持仓目标行同步显示盈亏比。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-11 17:10:04 +08:00
dekun
a90876d772
fix(options): expand-all widens money filter so more strikes show
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-10 17:45:02 +08:00
dekun
4bc238b014
Fix hub options float summary blank when bid book is invalid.
...
Stop treating total_received=0 as a real bid recycle, fall back to exchange upl for display totals, and keep row/summary aligned.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-07 09:47:14 +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
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
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
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
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
d2028ed0ee
Show options budget buffer ratio in open-order rule tip.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-20 10:37:20 +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
88d460d484
Options: collapse open rules; move open-guard tip into risk policy.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-20 08:46:02 +08:00
dekun
ed1ec6f14a
Options: default nearest expiry and env ask-liquidity chain filter.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-20 08:37:39 +08:00
dekun
972ef4f910
Options: loosen order dialog spacing and stack mode/note rows.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-20 08:15:55 +08:00
dekun
4e614eb9ed
Options: frame target and size-mode chips like cancel buttons.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-20 08:11:23 +08:00
dekun
547eedeec4
Options: show order form as viewport modal on select.
...
Stop inserting the panel under the strike row; mount backdrop on body with cancel/Esc close.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-20 08:06:07 +08:00
dekun
19b46d19fd
Options: eth-amount dialog, stop note autofill, pending tab in positions.
...
Selecting 指定币数量 opens an order dialog; pending orders move into a 当前委托 tab after 当前持仓; harden remark autofill that showed dekun.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-20 08:00:39 +08:00
dekun
899a2de931
Show options position source (纯期权/永期/期期) on holdings cards.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-19 08:45:17 +08:00
dekun
d7272c9722
Persist options review deletes across local resync.
...
Hide deleted rows by history key and contract/close fingerprint so local options_trades imports no longer resurrect them.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-17 10:03:00 +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
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
195eeae295
Fix options select UI and false contract-missing quotes.
...
Keep the order host out of tbody wipes, sync pick-button labels, and retry/fallback OKX meta under rate limits so live contracts are not reported as missing.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-16 12:18:41 +08:00
dekun
12c4e55f24
Fix intermittent empty options expiry dropdown after coin select.
...
Retry instrument fetch, reject empty chains instead of caching them, and ignore stale loadChain races.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-16 12:04:08 +08:00
dekun
4c7197ad99
Fix options chain headers mixing list and T-view columns.
...
Thead rows used a .hidden class with no CSS rule on instance pages, so both header sets stayed visible.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-16 11:57:07 +08:00
dekun
a21b962bf1
Fix options mark price float junk and target index input rollback.
...
Skip full card redraw while the monitor target field is focused, and format mark/avg without relying on dusty server strings.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-15 22:24:52 +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
ee7be3e7f3
Align options realtime PnL with bid-net and show totals in stats.
...
Header float PnL now uses bid recycle minus premium like position cards. Stats adds realized/open/total net PnL.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-15 22:00:45 +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
ab8b2a74e2
Show cancellable pending option orders beside the order form.
...
Fetch live OKX option hangs on the right after submit, with refresh and one-click cancel.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-15 21:22:29 +08:00
dekun
61f63c456b
Use bid-only limit closes when option index targets hit.
...
Target price is only for monitoring; auto flat waits for 买一 instead of falling back to mark.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-15 15:53:08 +08:00
dekun
d6823a2903
Add options index target monitors that auto limit-close on hit.
...
Position and order forms can arm a target; right-side and hub panels show active monitors; expiry remains the stop with no separate SL.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-15 15:27:46 +08:00