From 8ab96a1de732cae25d2cf49e916e54b0ac6bae70 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期一, 13 十一月 2023 14:25:35 +0800 Subject: [PATCH] 记录L2订单数据 --- utils/data_export_util.py | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/utils/data_export_util.py b/utils/data_export_util.py index 7de7140..75578cf 100644 --- a/utils/data_export_util.py +++ b/utils/data_export_util.py @@ -114,31 +114,31 @@ limit_price = "" if int(data["val"]["limitPrice"]) == 1: - limit_price = "娑ㄥ仠" + limit_price = "T" elif int(data["val"]["limitPrice"]) == 2: - limit_price = "璺屽仠" + limit_price = "D" operateDesc = "" if int(data["val"]["operateType"]) == 0: if len(limit_price) > 0: - operateDesc = '涔� ({})'.format(limit_price) + operateDesc = '涔皗}'.format(limit_price) else: operateDesc = '涔�' elif int(data["val"]["operateType"]) == 1: if len(limit_price) > 0: - operateDesc = '涔版挙 ({})'.format(limit_price) + operateDesc = '涔版挙{}'.format(limit_price) else: operateDesc = '涔版挙' elif int(data["val"]["operateType"]) == 2: if len(limit_price) > 0: - operateDesc = '鍗� ({})'.format(limit_price) + operateDesc = '鍗杮}'.format(limit_price) else: operateDesc = '鍗�' elif int(data["val"]["operateType"]) == 3: if len(limit_price) > 0: - operateDesc = '鍗栨挙 ({})'.format(limit_price) + operateDesc = '鍗栨挙{}'.format(limit_price) else: operateDesc = '鍗栨挙' format_data.append(operateDesc) @@ -271,6 +271,6 @@ if __name__ == "__main__": try: - export_l2_excel("000530") + export_l2_excel("605218") except Exception as e: logging.exception(e) -- Gitblit v1.8.0