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(