Commit Graph

11 Commits

Author SHA1 Message Date
dekun a0ee1fa8a0 fix模拟盘盈亏:按权利金净额×平仓指数,不再把买币预算差额当盈利。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-08 23:49:02 +08:00
dekun 77fe0fa679 修复期权币本位高危缺陷:开仓估量、卖回封顶、握库超时与条件单嵌套锁。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-07 12:00:08 +08:00
dekun 91ff1cdecc 权利金折 U 优先用开仓 budget_usdt,避免随币价浮动。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-03 03:23:46 +08:00
dekun bb6e9e9041 中控快照增加开仓权利金折U及占账户资金比例。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-02 16:13:36 +08:00
dekun 34322d1731 修复 BTC 币本位期权净盈亏被 round4 抹成 0 的精度问题。
币本位权利金/回收/盈亏改用 8 位小数,避免小额 BTC 报价显示为 0。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-02 14:45:54 +08:00
dekun 8a62cfbb48 修复比特币期权浮盈把币数量当成 U:看板/中控改为按指数折 USDT。
币本位 BTC/ETH 净盈亏须 × 指数后再标 U;并兜底从合约推断 premium_ccy,避免缺失时漏折算。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-30 22:01:41 +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 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 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