From d38901dc95d8100a2be48540e5cf42d7ca32071d Mon Sep 17 00:00:00 2001 From: Amishai Guilburd Date: Sun, 2 Nov 2025 10:21:26 +0200 Subject: [PATCH] fixed bug loading default configuration instead of existing ones --- src/utils/command-helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/command-helpers.ts b/src/utils/command-helpers.ts index 379e2d0..6bfad99 100644 --- a/src/utils/command-helpers.ts +++ b/src/utils/command-helpers.ts @@ -15,7 +15,7 @@ export function initializeServices(includeOrderHistory = false): ServiceContaine return { analyzer, executor: new TradingExecutor(), - riskManager: new RiskManager(), + riskManager: new RiskManager(analyzer.getConfigManager()), // 使用 analyzer 内部的 orderHistoryManager 实例,确保一致性 ...(includeOrderHistory && { orderHistoryManager: analyzer.getOrderHistoryManager() }) };