Commit Graph

44 Commits

Author SHA1 Message Date
dekun d60c6ad710 登录态改为同一设备 7 天内免重新登录(permanent cookie,访问滑动续期)。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 22:23:51 +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 703ab4a04e 修复系统设置保存500:鉴权不再依赖缺失的lib.hub;补全order_prices初始化。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 18:12:39 +08:00
dekun 36724a902a 修复翻倍出场/翻倍提醒可能重复推微信:done状态停扫,提醒标记立即提交。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 18:04:40 +08:00
dekun 440778e9e6 补齐币本位期权开平仓微信推送:单位用ETH/BTC,手动/目标/翻倍平仓与翻倍提醒均必达。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 17:57:58 +08:00
dekun a7d0c2f875 买一平仓规则并入左侧开平仓规则说明,持仓区不再单独展示。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 17:47:46 +08:00
dekun 7236700cc9 顶栏 CSS 版本号 bump,确保交易账户多行样式生效。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 17:41:58 +08:00
dekun feef36db78 资金栏交易账户 USDT/ETH 多行显示。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 17:40:16 +08:00
dekun 857974070e 顶栏实时盈亏:币本位按 ETH/BTC 指数折算为 USDT。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 17:25:49 +08:00
dekun e39dbd47c5 修复币本位买盘残档误判:内在价值按币报价(点差/指数)计算。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 17:22:17 +08:00
dekun 1bb7f9b0ba 模拟盘买币改用公开行情,避免无效 OKX Key 导致 50111。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 16:05:10 +08:00
dekun f63b3d9f2a 修复模拟盘划转无效:期权页挂载划转脚本,并确保走模拟钱包。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 15:55:54 +08:00
dekun 7ca31b74fb 币本位隐藏 USDT↔USDC 兑换,持仓区与设置仅保留划转。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 15:45:11 +08:00
dekun 6f721d1e6d 模拟盘对齐币本位:钱包支持 ETH/BTC,现货桥与期权权利金走本地撮合。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 15:16:51 +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 f03d5d3704 Fix nav spot tickers: register JS in static allowlist and harden price fetch.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-17 11:46:35 +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 960565482f Add proper PWA install icons and sim-aware app manifest.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-16 16:38:37 +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 7c91d6cad7 Merge close rules into open-rules fold and drop the guide doc link.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-16 16:17:17 +08:00
dekun 72d8daf15c Show pure-options header trade stats on every navigation page.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-16 16:13:27 +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 9effca9f05 Add sim option expiry settlement so expired positions clear from current holdings.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-16 15:39:39 +08:00
dekun b9544e53ee Enrich sim option positions with public index and mark prices.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 21:04:00 +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 fed51035de Fix sim pending-orders wrapper to accept positional inst_id.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 19:23:33 +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 9d1495658c Route sim transfer and convert through local wallets instead of OKX private API.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 18:47:41 +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 bd742a2e43 Remove obsolete perpetual risk sections from env config UI.
Keep WeChat and options/hedge tabs; move sizing knobs under perpetual hedge.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 18:18:00 +08:00
dekun 679c7a313c Drop obsolete trade-execution and cooling sections from risk policy.
Options/hedge standalone no longer surfaces perpetual manual-risk blurbs.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 18:16:04 +08:00
dekun 919ac70bc2 Expose sim/live matching mode in env config UI.
Saving SIM_DEFAULT_MODE also switches runtime trading.mode immediately.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 18:14:17 +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 d9de3fe784 Restore shared CSS/JS static mounts for standalone deploy.
Embed UI looked unstyled because hub_bridge no longer registers lib/common/static.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 18:00:56 +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