Support LIVE exchange funds and perp margin mode.

Hide sim equity when LIVE is selected; OKX funds bar uses exchange balances; add cross/isolated for perp only (options stay cash).

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-29 19:57:09 +08:00
parent 50a4540aaf
commit c6e8f6fe1e
12 changed files with 134 additions and 24 deletions
+4 -2
View File
@@ -32,10 +32,12 @@ ATM **期权买方** + **反向永续**;净利达标兑现,未达标拖到
| 项 | 建议 |
|----|------|
| 永续 | 全仓 `cross`;双向持仓(hedge)与软件 `posSide` 对齐 |
| 期权 | **买卖模式 / cash**(买方付权利金);尽量 **逐仓/独立**,便于远虚残留不挡下一组 |
| 永续 | 设置页可选 **全仓 `cross`(默认)/ 逐仓 `isolated`**;双向持仓(hedge)与软件 `posSide` 对齐 |
| 期权 | 固定 **cash**(买方付权利金)**不受**永续保证金模式选项影响 |
| API | Key + Secret + **Passphrase**IP 白名单;交易权限最小化 |
实盘顶部资金条(总资金 / 资金账户 / 交易账户)直接读 OKX;SIM 才显示本地模拟资金。
---
## 3. 标准仓与缩放