Commit Graph

10 Commits

Author SHA1 Message Date
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 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 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 c8688a11ae 对齐币本位期权:现货缓冲开仓、页头 ETH/BTC 余额与默认 coin 模式。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 15:01:19 +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