Add WeCom markdown alerts and keep target exits while strategy is paused.

Notify open/close/start/pause/fault with SIM vs LIVE venue labels; configure webhook in Settings.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-26 23:19:39 +08:00
parent 4d331da962
commit 56a4007130
12 changed files with 602 additions and 16 deletions
+7
View File
@@ -299,6 +299,13 @@ export type RuntimeSettings = {
sim: boolean;
};
export type NotifySettings = {
enabled: boolean;
webhook_configured: boolean;
webhook_url_masked: string | null;
venue_label: string;
};
export async function downloadBackup(name: string): Promise<void> {
await ensureFreshToken();
const token = getToken();