dekun
d4d2110412
顶栏加固:交易账户/期权字段缺省与币金额格式化吞掉Undefined,降低再发500风险
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-20 17:33:10 +08:00
dekun
b763937ec2
币本位实时盈亏/期权浮盈按ETH展示,避免两位小数抹成0.00U
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-20 16:31:02 +08:00
dekun
b0c331aa26
修复币本位顶栏改动导致 Gate/Binance 顶栏 UndefinedError 500
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-20 14:56:30 +08:00
dekun
4fb3be35ef
单笔期权默认改为币本位;未配置时按coin处理
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-20 14:05:44 +08:00
dekun
15694e8ea8
隐藏粉尘级ETH/BTC余额,避免顶栏显示0币
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-20 13:19:35 +08:00
dekun
f3de3763bb
修复币本位报价误走USDC,中控补资金账户并隐藏零币余额
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-20 13:08:28 +08:00
dekun
73efad6fa5
币本位顶栏去掉期权资金/交易列,交易账户显示USDT/ETH/BTC
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-20 12:58:43 +08:00
dekun
a84554e613
币本位顶栏资金显示USDT+ETH,单笔期权本位改为下拉选择
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-20 12:38:39 +08:00
dekun
72c84bb993
实现OKX单笔期权币本位与USDT桥复利(中控只读,不改Gate)
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-20 12:10:29 +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
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
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
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
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
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
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
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
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
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
b5a061e758
Add instance phone shell with bottom tabbar and more sheet.
2026-07-27 07:13:04 +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
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
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
301a464f29
Add daily loss-count freeze for account risk cooldown.
...
RISK_DAILY_LOSS_LIMIT (default 2, 0 disables) freezes new opens after N losing closes in the trading day.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-21 22:13:38 +08:00
dekun
67a09b1de8
Fix options review light theme dark card/filter styles.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-21 10:14:26 +08:00
dekun
1bc12a32c6
Sync exchange PnL when hub loads trade records API.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-21 09:40:42 +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
4a3e6a2a1d
Add global autofill guard for hub, env, and transfer inputs.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-20 10:18:56 +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
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