Add strategy residual table with manual close at panel bottom.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-08-03 07:47:22 +08:00
parent 09abb8d35b
commit 1252f45aac
5 changed files with 191 additions and 62 deletions
+14 -5
View File
@@ -307,11 +307,20 @@ export type PlanState = {
};
residuals?: {
group_id: string;
option_inst_id: string;
option_side: string;
strike: number | null;
expiry_ymd: string | null;
status: string;
option_inst_id?: string;
option_side?: string;
option_qty_eth?: number | null;
strike?: number | null;
expiry_ymd?: string | null;
status?: string;
initial_premium?: number | null;
bid_px?: number | null;
bid_sz?: number | null;
bid_sz_eth?: number | null;
current_premium?: number | null;
recovery_pct?: number | null;
liquidity_ok?: boolean;
liquidity_detail?: string | null;
}[];
ledger: { equity: number; available: number; reserved: number };
mode?: "SIM" | "LIVE";