From eac656005df02bf4ec560032dfad21b9591fb46f Mon Sep 17 00:00:00 2001 From: liaozhaorun <1300336796@qq.com> Date: Mon, 1 Dec 2025 21:34:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=9E=E7=9B=98api?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- strategy_manager/launcher.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/strategy_manager/launcher.py b/strategy_manager/launcher.py index db8e810..15b3920 100644 --- a/strategy_manager/launcher.py +++ b/strategy_manager/launcher.py @@ -110,8 +110,8 @@ def run_strategy(config_path: str): strategy_class = load_strategy_class(config["strategy_class"]) # 创建API - from tqsdk import TqApi, TqAuth, TqKq - api = TqApi(TqKq(), auth=TqAuth("emanresu", "dfgvfgdfgg")) + from tqsdk import TqApi, TqAuth, TqKq, TqAccount + api = TqApi(TqAccount('H宏源期货', '903308830', 'lzr520102'), auth=TqAuth("emanresu", "dfgvfgdfgg")) # 准备策略参数 strategy_params = config["strategy_params"].copy()