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:
+2
-1
@@ -37,7 +37,7 @@
|
||||
|
||||
**平仓顺序**:同样先平期权(买一薄)→ 再瞬时平永续。平期权期间永续对冲先留着;永续盘口失败则回滚期权入账。
|
||||
|
||||
永续杠杆默认 **3×**(可配)。同时最多 **1 组**仓,禁止叠仓开下一组。
|
||||
永续杠杆默认 **3×**(可配)。永续保证金模式默认 **全仓**(可改逐仓);期权保证金模式固定买方现金/逐仓意图。同时最多 **1 组**仓,禁止叠仓开下一组。
|
||||
|
||||
### 2.1 开仓方向
|
||||
|
||||
@@ -331,6 +331,7 @@
|
||||
| `perp_qty_eth` | 1 | 仓位 |
|
||||
| `option_qty_eth` | 2 | 仓位 |
|
||||
| `leverage` | 3 | 永续 |
|
||||
| `perp_margin_mode` | cross | 永续全仓/逐仓(期权不受影响) |
|
||||
| `fee_rate` | 0.0005 | 成本 |
|
||||
| `exit_mode` | fixed_usdt | 出场 |
|
||||
| `net_profit_target` | 15 | 出场 |
|
||||
|
||||
Reference in New Issue
Block a user