Administrator
2025-01-06 6567e8cd1fb11ea10912bb3ac5bf2965c74c0e4b
l2_test.py
@@ -37,15 +37,18 @@
                response_data = json.dumps({"code": 0, "data": fdatas})
            except Exception as e:
                response_data = json.dumps({"code": 1, "msg": str(e)})
        elif url.path == "/get_big_buy_order_list":
            # 获获取代码的大买单列表
        elif url.path == "/get_big_order_list":
            # 获获取代码的大买/卖单列表
            ps_dict = dict([(k, v[0]) for k, v in parse_qs(url.query).items()])
            code = ps_dict.get('code')
            try:
                fdatas = CodeInMoneyManager().get_big_buy_money_list(code)
                if fdatas is None:
                    fdatas = []
                response_data = json.dumps({"code": 0, "data": fdatas})
                buy_datas = CodeInMoneyManager().get_big_buy_money_list(code)
                if buy_datas is None:
                    buy_datas = []
                sell_datas = CodeInMoneyManager().get_big_sell_money_list(code)
                if sell_datas is None:
                    sell_datas = []
                response_data = json.dumps({"code": 0, "data": {"buy": buy_datas, "sell": sell_datas}})
            except Exception as e:
                response_data = json.dumps({"code": 1, "msg": str(e)})
        elif url.path == "/get_code_money_info":