Commit Graph

50 Commits

Author SHA1 Message Date
dekun bab26c7205 条件单占用时左侧期权「选择」按钮置灰禁用,避免手动开仓。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-04 18:45:23 +08:00
dekun e11651d729 实例期权页增加中控条件单卡片,接单后显示状态与触发参数。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-04 18:39:47 +08:00
dekun 4bea770f5c 实例增加实盘说明页(API/账户模式/env),系统设置可关闭导航显示。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-04 10:07:05 +08:00
dekun 740c99e910 实例顶栏增加退出登录按钮,便于清会话回到登录页。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-04 09:44:21 +08:00
dekun e33d289e39 带鱼屏客户端内容锁 1800 居中,普通屏全宽;内嵌与独立打开一致。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-04 07:20:04 +08:00
dekun 07db158656 恢复币本位「重试卖回」常显,带鱼屏内容区改回 1800 居中留白。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-04 07:15:16 +08:00
dekun b79f309c5b 修复「重试卖回」按钮:有持仓时正确隐藏,标的按 BTC/ETH 残留与当前选择显示。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-04 07:05:13 +08:00
dekun 886ef82573 中控内嵌工作台带鱼屏铺满宽度,独立打开仍保持 1920 居中。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-04 06:58:51 +08:00
dekun f846f832de 系统设置增加备份恢复:凌晨3点自动备份,保留10天,含 env 与复盘图片。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-04 06:50:44 +08:00
dekun 9d3effd6fc 修复中控内嵌顶栏变形:整页导航包进 top-nav-links,embed=1 仍进壳。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-03 08:03:15 +08:00
dekun 2eb6b28a39 中控条件开仓单:客户端本地监控穿越/偏离区并按本机规则开平仓。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-03 02:13:16 +08:00
dekun 193c02eda8 修复中控内嵌:跨站 Cookie 被拦时用 embed_sso 维持登录。
SSO 写入 sessionStorage,fetch 自动带 X-Hub-Embed-SSO,避免期权链 API 401。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-01 11:56:51 +08:00
dekun e7a4934068 修复未登录时 API 返回 HTML 导致期权链 JSON 解析失败。
API 统一返回 401 JSON,并改进前端非 JSON 错误提示。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-01 11:51:13 +08:00
dekun ed9fd05a84 env 配置为中控 Bridge Token 增加一键复制。
便于从客户端直接复制到中控登记实例。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-01 11:18:44 +08:00
dekun e7cafd6dbc 关键位现价改与顶栏同源公开行情,前端无价时回退 nav tickers。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-30 23:56:40 +08:00
dekun 56df9a596f 从导航显示与顶栏去掉「对冲计划」开关与入口。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-30 23:28:01 +08:00
dekun 0acba5e351 移除全部对冲计划模块:crypto_okx 改为币本位单独期权执行机。
交易模式锁定 options;okx_trade_mode / 到期盈亏迁入 options;保留期权/桥/关键位/企微与中控预留快照口径。恢复点:backup/before-remove-hedge 与 tag backup-before-remove-hedge-20260930。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-30 23:20:21 +08:00
dekun 41c85c36a9 澄清翻倍出场文案:按当前倍数显示需回收公式,避免误读成按1倍算。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-30 21:59:25 +08:00
dekun d6bb99b5bb 移植期权复盘自动K线、时区修复与保存后轮询展示,与今日 crypto_monitor 改动对齐。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-15 11:51:41 +08:00
dekun 45c7e73db5 Hide coin/USDC options env fields by margin mode.
Also toggle close-gate and compound subfields so the settings page only shows relevant controls.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-25 09:36:13 +08:00
dekun 37f787e6a9 Make options target close gate configurable via env.
Support premium multiplier (coin default 1.05) or net-PnL USDT threshold with index conversion.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-25 09:00:39 +08:00
dekun 0cb2167770 Set ultrawide fish-eye container width to 1920px.
Widen centered layout on 21:9 displays from 1600 to 1920 while keeping normal screens unchanged.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-23 08:35:17 +08:00
dekun 81654c8dd8 Fix ultrawide 1600px cap when Windows display scaling shrinks viewport.
Trigger on 21:9 aspect ratio only, without min-width 1601, so scaled fish-eye monitors still get 1600px container.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-23 08:32:09 +08:00
dekun 625eabb15c Cap ultrawide layout at 1600px centered using 21:9 aspect ratio.
Apply fixed container width only on fish-eye monitors; bump instance_page.css cache version.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-23 08:27:32 +08:00
dekun 6d2d345b70 Fix coin-margin expiry breakeven to use coin premium formula.
Use K/(1-p) and K/(1+p) for coin calls/puts instead of adding ETH premium to USD strike; align T-view straddle band with coin quotes.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-23 08:11:52 +08:00
dekun 68869e35c3 Move spot sell retry into positions header row per mockup.
Show trading-account coin balance with gradient retry button and icon refresh in the holdings title bar.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-23 08:06:09 +08:00
dekun a18f1f6713 Add spot sell retry UI; sell all trading-account coin on sell-back.
Fix coin-margin sell-back to use full available balance instead of bridge record; show retry banner and button on the options positions panel.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-23 08:01:06 +08:00
dekun d1e6d841c9 Hide contract env/UI: keep options+OO hedge and RS key alerts only.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-21 17:54:49 +08:00
dekun fc24114142 币本位数据统计改为U展示,已平盈亏按指数折U与浮盈口径一致。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-21 06:46:11 +08:00
dekun 40c92fb3a6 恢复买一平仓确认框;卖回ETH仍自动执行、不二次确认。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 22:13:55 +08:00
dekun 4bda3b7703 修复复盘盈亏未按ETH指数折U;买一平仓取消确认,自动卖回USDT。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 22:08:28 +08:00
dekun e1c2e5889f 修复期权历史/复盘金额为0:模拟盘合成历史、币本位按ETH精度展示,复盘折算为U。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 21:51:01 +08:00
dekun feef36db78 资金栏交易账户 USDT/ETH 多行显示。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 17:40:16 +08:00
dekun 7ca31b74fb 币本位隐藏 USDT↔USDC 兑换,持仓区与设置仅保留划转。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 15:45:11 +08:00
dekun c8688a11ae 对齐币本位期权:现货缓冲开仓、页头 ETH/BTC 余额与默认 coin 模式。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 15:01:19 +08:00
dekun 432adfb602 Fix nav ticker day-change: use SWAP sodUtc0 (Beijing 08:00) from same instrument.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-17 11:52:35 +08:00
dekun de13869b38 Enlarge BTC/ETH nav spot ticker font size for readability.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-17 11:47:50 +08:00
dekun 08029ccb15 Add BTC/ETH spot tickers on nav, anchored to Beijing 08:00 open.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-17 11:42:19 +08:00
dekun f66b4c3fb3 Widen ultrawide page container from 1440px to 1600px.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-16 16:19:43 +08:00
dekun 48ea7e1bc7 Keep options internal transfer controls on a single row.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-16 16:11:46 +08:00
dekun cdbc947838 Move options convert/transfer into the positions card as a collapsed fold.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-16 16:09:10 +08:00
dekun d0197914ea Add convert and transfer controls below the options order card.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-16 16:06:36 +08:00
dekun 4ade3be2eb Show options-page price clock and drive header trade stats from pure options.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-16 15:59:26 +08:00
dekun 82d891ac92 Cap the full page container at 1440px on ultrawide screens.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-16 15:55:18 +08:00
dekun 3cb1642f16 Make options dual panels equal width and cap ultrawide layout at 1440px.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-16 15:52:20 +08:00
dekun 7b1fd91ab1 Widen page container for 1920px desktops.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 20:55:13 +08:00
dekun ad992ee262 Use trading account and USDC/USDT market price for sim convert.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 18:52:38 +08:00
dekun e7aa724a3b Show okx_sim/okx_live and gate live API fields by matching mode.
In sim, hide LIVE/API keys and expose simulated fund settings in env UI.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 18:35:08 +08:00
dekun 56618a6655 Harden embed live refresh with reconnect backoff and poll fallback.
Document Nginx SSE proxy settings for long-lived live streams.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 18:10:54 +08:00
dekun a1abe159fa Initial standalone crypto_okx with one-click deploy.
Add deploy/manage.sh bootstrap for git.bz121.com/dekun/crypto_okx and point docs at this repo.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-13 20:00:59 +08:00