Add HEDGE_PO_MODE instance modes with shared sim/live path.

Lock one mode per instance/subaccount, cross-asset BTC option/ETH perp sizing, combo-U exit, and ship docs/tests/audit.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-10-14 20:05:25 +08:00
parent ab7a2309ad
commit 5d161b4220
18 changed files with 1215 additions and 115 deletions
+3
View File
@@ -61,10 +61,13 @@ python app.py
- `SIM_DEFAULT_MODE=sim`(默认模拟盘)
- `OKX_OPTIONS_MARGIN_MODE=coin`(固定)
- `OKX_TRADE_MODE=perp_options|options_options`(本仓仅对冲)
- `HEDGE_PO_MODE=eth|btc|btc_eth`(一实例一模式一子账户;跨币见 `HEDGE_CROSS_NOTIONAL_K`)
- `STANDALONE_OPTIONS_UI=false`(默认;勿开,除非临时救急)
- `SIM_INITIAL_EQUITY_USDT=10000`
- `APP_PORT=5010`
永期三模式说明与审计清单见 [docs/永期对冲三模式.md](docs/永期对冲三模式.md)。
## 风险
实盘风险自负。默认模拟盘;切 `live` 前请核对 API 权限与资金。