Show OKX-style perp/option position cards on plan page.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-24 17:32:57 +08:00
parent 5125c6702b
commit 1155cf082d
4 changed files with 309 additions and 29 deletions
+11
View File
@@ -129,6 +129,17 @@ export type PlanState = {
group_id?: string;
perp_side?: string;
option_side?: string;
perp_inst_id?: string;
perp_entry_px?: number;
perp_qty_eth?: number;
perp_mark_px?: number | null;
option_inst_id?: string;
option_entry_px?: number;
option_qty_eth?: number;
option_qty_contracts?: number;
option_mark_px?: number | null;
strike?: number | null;
expiry_ymd?: string | null;
perp_upl?: number;
option_upl?: number;
index_px?: number | null;