From 2f2516749615da866e96d8d24e499b7ecbb63a3e Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期一, 23 六月 2025 12:28:52 +0800
Subject: [PATCH] 默认交易模式变更/真实下单位置计算位置修改

---
 utils/middle_api_protocol.py |   24 ++++++++++++++++++++++--
 1 files changed, 22 insertions(+), 2 deletions(-)

diff --git a/utils/middle_api_protocol.py b/utils/middle_api_protocol.py
index 7495894..31ae98a 100644
--- a/utils/middle_api_protocol.py
+++ b/utils/middle_api_protocol.py
@@ -34,6 +34,7 @@
     fdata = {"type": "redis", "data": {"ctype": "cmd", "data": data}}
     return fdata
 
+
 def load_redis_cmds(datas):
     fdata = {"type": "redis", "data": {"ctype": "cmds", "data": datas}}
     return fdata
@@ -53,8 +54,8 @@
 
 
 # ------------------------------寮�鐩樺暒-------------------------------------
-def load_kpl(url, data):
-    fdata = {"type": "kpl", "data": {"ctype": "kpl", "data": {"url": url, "data": data}}}
+def load_kpl(url, data, timeout):
+    fdata = {"type": "kpl", "data": {"ctype": "kpl", "data": {"url": url, "data": data, "timeout": timeout}}}
     return fdata
 
 
@@ -68,3 +69,22 @@
 def load_l2_subscript_codes(datas):
     fdata = {"type": "l2_subscript_codes", "data": {"ctype": "l2_subscript_codes", "data": datas}}
     return fdata
+
+
+# ------------------------------L2璁㈤槄浠g爜鐨勫疄鏃舵定骞�------------------------------------
+def load_l2_subscript_codes_rate(datas):
+    fdata = {"type": "l2_subscript_codes_rate", "data": {"ctype": "l2_subscript_codes_rate", "data": datas}}
+    return fdata
+
+
+# ------------------------------娑堟伅鎺ㄩ��------------------------------------
+def load_push_msg(data):
+    fdata = {"type": "push_msg", "data": {"ctype": "push_msg", "data": data}}
+    return fdata
+
+
+# ------------------------------鑾峰彇涓夋柟鏉垮潡------------------------------------
+def get_third_blocks(code, source):
+    fdata = {"type": "get_third_blocks",
+             "data": {"ctype": "get_third_blocks", "data": {"code": code, "source": source}}}
+    return fdata
\ No newline at end of file

--
Gitblit v1.8.0