From 0983b63726a57840d223443131738eb7d78fbf8a Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期一, 27 五月 2024 13:22:55 +0800 Subject: [PATCH] bug修改 --- main.py | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 3cf810b..f4d6846 100644 --- a/main.py +++ b/main.py @@ -147,7 +147,7 @@ r["marketInfo"] = {"code": cb_market.code, "name": r["securityName"], "rate": f"{round(cb_market.rate * 100, 2)}%", "price": cb_market.price, "lastVolume": cb_market.total_bid_volume // 100, - "buy1Money": output_util.money_desc(cb_market.buy1_price * cb_market.buy1_volume)} + "buy1Money": output_util.money_desc(cb_market.buy1_price * cb_market.buy1_volume),"preClosePrice":cb_market.pre_close_price} if underlying_market: if not gpcode_manager.CodesNameManager().get_code_name(underlying_market.code): # 寮傛璇锋眰鍚嶇О @@ -162,7 +162,8 @@ "price": underlying_market.price, "lastVolume": underlying_market.total_bid_volume // 100, "buy1Money": output_util.money_desc( - underlying_market.buy1_price * underlying_market.buy1_volume)} + underlying_market.buy1_price * underlying_market.buy1_volume), + "preClosePrice":underlying_market.pre_close_price} send_response({"code": 0, "data": results}, client_id, request_id) elif type_ == "refresh_trade_data": -- Gitblit v1.8.0