Commit Graph

27 Commits

Author SHA1 Message Date
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 131bb36930 修复实盘顶栏误显示模拟盘会话资金:无交易所余额时显示 —,切模式清缓存。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-04 09:16:45 +08:00
dekun f846f832de 系统设置增加备份恢复:凌晨3点自动备份,保留10天,含 env 与复盘图片。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-04 06:50:44 +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 c42529e3fd 对接中控:只读持仓快照 API、SSO 打开链与 iframe 祖先配置。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-01 10:54:05 +08:00
dekun e7cafd6dbc 关键位现价改与顶栏同源公开行情,前端无价时回退 nav tickers。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-30 23:56:40 +08:00
dekun ee635bcd55 修复关键位现价:模拟盘无密钥时回退 OKX 公开 ticker。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-30 23:52:53 +08:00
dekun fad85ae710 关键位监控币种改为仅 BTC/USDT、ETH/USDT 下拉,对齐期权标的。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-30 23:49:07 +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 d16821c7b7 模拟盘无 API Key 时复盘K线改为优先走 OKX 公开行情接口。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-15 12:16:06 +08:00
dekun 6215d0975d Harden env save against empty numerics; default coin margin and hedge off.
Reject blank float/int/select on save and parse env with safe helpers so options config edits cannot crash into 502; default OKX_TRADE_MODE=options and OKX_OPTIONS_MARGIN_MODE=coin.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-21 18:04:19 +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 28c29a0ac7 Treat empty numeric env values as defaults so env UI blanks cannot crash startup.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-21 17:34:39 +08:00
dekun d60c6ad710 登录态改为同一设备 7 天内免重新登录(permanent cookie,访问滑动续期)。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 22:23:51 +08:00
dekun 4eef0d9fd6 修复价格快照接口 NameError:补全 order_prices 初始化。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 18:13:01 +08:00
dekun a257d7e369 修复顶栏 500:向模板注入 trading_account_label。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 15:26:25 +08:00
dekun c8688a11ae 对齐币本位期权:现货缓冲开仓、页头 ETH/BTC 余额与默认 coin 模式。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 15:01:19 +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 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 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 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 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 82ba8d19a6 Register /embed shell routes for standalone OKX deploy.
Login redirected to /embed after hub removal left the route unregistered.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 17:55:28 +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