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
+2
View File
@@ -228,6 +228,7 @@ export type PlanState = {
premium_exit_multiple: number;
exit_target_usdt: number;
leverage: number;
perp_margin_mode?: "cross" | "isolated";
perp_qty_eth?: number;
option_qty_eth?: number;
min_option_hours: number;
@@ -311,6 +312,7 @@ export type StrategySettings = {
skip_weekends?: boolean;
initial_equity?: number;
leverage?: number;
perp_margin_mode?: "cross" | "isolated";
min_option_hours?: number;
min_option_leverage?: number;
atm_open_offset_enabled?: boolean;