dekun
e16b8c8dd2
现价/开仓紧挨盈亏比或止盈后面,取消顶到行尾的空白。
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-12 20:58:00 +08:00
dekun
b658c82135
现价紧贴开仓按钮前方(三种止盈止损模式一致)。
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-12 20:54:32 +08:00
dekun
3f305bd0ca
开仓紧跟止盈/止盈%;持仓上限改为红底提示条,显示更清楚。
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-12 20:51:04 +08:00
dekun
bacb5fdde4
价格/百分比模式开仓按钮靠右;持仓上限红字移到预估风险下方。
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-12 20:45:47 +08:00
dekun
ce22f8c7d6
关键位监控仅一条时默认展开,两条及以上默认折叠。
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-12 19:47:44 +08:00
dekun
13b03ed750
调整实盘/关键位表单布局:开仓按钮跟盈亏比、添加按钮同行;成交价说明移入开仓规则;去掉多周期K线勾选。
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-12 19:44:03 +08:00
dekun
71a91484a3
白名单仅一币时选择币种默认显示 env 币种(关键位/实盘下单共用)。
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-12 19:27:05 +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
9c19afc8d4
修正期权开仓 51008 文案:不再误报资金账户 USDT,按 USDC/USDT 区分提示。
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-12 16:08:16 +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
886b6dcc5b
修复全仓复利开启时单笔预算仍显示:flex 覆盖了 hidden,改为强制隐藏。
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-12 10:16:47 +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
38e3e00fe9
情景测算按到期实值反推盈亏比达标现货价
...
达标情景现货价按权利金价值与行权价反推,便于对照到期后效果。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-11 17:01:21 +08:00
dekun
a1bf760a28
修正期期盈亏比口径:按总权利金计算,残值按本合约
...
盈利腿触发改为盈利金额/总权利金;亏损腿残值20%仍相对该合约自身权利金。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-11 16:51:50 +08:00
dekun
c5d3d9d6c1
期期出场改盈亏比:达目标平盈利腿,亏损腿残值20%或到期平
...
将上/下破目标价替换为盈亏比(盈利金额/初始权利金,默认2);残值平需买一流动性且权利金≤初始20%。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-11 16:44:45 +08:00
dekun
e26a67176c
fix(hub): default HUB_ALLOW_PUBLIC on to avoid cloud 403 forbidden
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-11 15:31:59 +08:00
dekun
860ebef4a7
fix(options): expose chain DTE in env UI and show nearest expiries for OO
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-10 17:54:03 +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
245b85ad27
feat(instance): add exchange account ledger tab with SSE sync
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-10 09:51:45 +08:00
dekun
425fc701bc
fix(hedge): equal-height right shell card with strategy status
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-09 10:02:59 +08:00
dekun
eca6d091e9
feat(hedge): option-primary watch entry with leverage gate
...
Start strategy arms a watching plan instead of opening immediately; list filters by leverage; type is a dropdown defaulting to OTM.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-09 09:27:42 +08:00
dekun
6ab27cebcd
fix(hedge): show option list by interval; leverage only at start
...
Keep capital/select params on one row, reload chain when interval changes, and stop filtering the chain by option leverage.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-09 09:18:36 +08:00
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
0b8e5a0914
Fix hub funds overview double-counting OKX USDT with options.
...
Only add options USDC/USDG onto perpetual USDT totals, repair historical double-counted snapshots, and label the options line as USDC.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-07 10:30:34 +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
d41028b766
Fix dashboard PnL using spot contract size of 1.
...
Prefer perpetual symbols and normalize before market.contractSize lookup so Gate BTC float matches ~0.4U not thousands.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-06 14:20:43 +08:00
dekun
75a4175522
Fix instance dashboard order PnL columns showing empty dashes.
...
Compute float_pnl and tp_profit from mark/entry/contracts using each exchange contract size during dashboard enrich.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-06 14:12:57 +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
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