From 8d151575d6fa5696545eba6555badbdc6a544dc4 Mon Sep 17 00:00:00 2001 From: admin <admin@example.com> Date: 星期四, 27 二月 2025 18:15:35 +0800 Subject: [PATCH] 指数日志记录 --- data_server.py | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/data_server.py b/data_server.py index e93689c..9269d94 100644 --- a/data_server.py +++ b/data_server.py @@ -6,6 +6,7 @@ from http.server import BaseHTTPRequestHandler import urllib.parse as urlparse +from log_module.log import hx_logger_l2_transaction from strategy import data_cache from trade import huaxin_trade_api, huaxin_trade_data_update from trade.huaxin_trade_record_manager import DelegateRecordManager, DealRecordManager, MoneyManager, PositionManager @@ -184,6 +185,13 @@ orderSysID = params.get("orderSysID") # 绯荤粺璁㈠崟缂栧彿 result = huaxin_trade_api.cancel_order(direction, code, orderSysID, blocking=True) result_str = json.dumps(result) + elif url.path == "/upload_deal_big_orders": + # 鎴愪氦澶у崟浼犻�� + datas = self.rfile.read(int(self.headers['content-length'])) + _str = str(datas, encoding="gbk") + hx_logger_l2_transaction.info(_str) + # 璁板綍鏃ュ織 + result_str = json.dumps({"code": 0}) except Exception as e: result_str = json.dumps({"code": 1, "msg": str(e)}) finally: -- Gitblit v1.8.0