From 9d460dc47db95f346f8b8f8e198844b4b0a91d33 Mon Sep 17 00:00:00 2001 From: tzquant_zq Date: Tue, 31 Dec 2024 15:52:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- counter_demo.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/counter_demo.py b/counter_demo.py index 0f0f6d5..11bb0ff 100644 --- a/counter_demo.py +++ b/counter_demo.py @@ -335,11 +335,15 @@ def run(): # ------------------ 修改风控的配置信息 密钥 --------------------------- risk_setting = { + # 这个是交易所的 key "key": json_data[secret_name]["key"], "secret_name": secret_name, "sub_id": sub_id, + # 这个是交易所的 secret "secret": json_data[secret_name]["secret"], + # 这个是天择网站上申请的虚拟子账户的 key "sub_key": json_data[secret_name][sub_id]["key"], + # 这个是天择网站上申请的虚拟子账户的 secret "sub_secret": json_data[secret_name][sub_id]["secret"], "active": True, # True 风控启动 "order_flow_limit_1m": 15, # 根据下单的标签来做1m的下单次数限制 @@ -402,6 +406,7 @@ def run(): queue_dict[key] = q # 限制该币种杠杆倍数 默认3倍 leverage_limit = 3 + # 这个是调试用的 不调试要注释掉 # private_run(queue_dict, config, risk_setting, platform, settle, leverage_limit) # 先启动私有信息的发送进程 确保初始化有数据 p = multiprocessing.Process(