Add SIM/LIVE switch with API keys saved to .env and OKX live executor.
Enable settings UI for mode/keys, gate strategy start when LIVE is not ready, and stop PM2 from forcing MODE=SIM. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -175,6 +175,25 @@ export type PlanState = {
|
||||
status: string;
|
||||
}[];
|
||||
ledger: { equity: number; available: number; reserved: number };
|
||||
mode?: "SIM" | "LIVE";
|
||||
sim?: boolean;
|
||||
live_ready?: boolean;
|
||||
live_ready_reason?: string;
|
||||
};
|
||||
|
||||
export type RuntimeSettings = {
|
||||
mode: "SIM" | "LIVE";
|
||||
exchange: string;
|
||||
okx_configured: boolean;
|
||||
binance_configured: boolean;
|
||||
okx_api_key_masked: string | null;
|
||||
okx_api_secret_masked: string | null;
|
||||
okx_api_passphrase_masked: string | null;
|
||||
binance_api_key_masked: string | null;
|
||||
binance_api_secret_masked: string | null;
|
||||
live_ready: boolean;
|
||||
live_ready_reason: string;
|
||||
sim: boolean;
|
||||
};
|
||||
|
||||
export type StrategySettings = {
|
||||
|
||||
Reference in New Issue
Block a user