| | |
| | | global_data_cache_util.huaxin_subscript_codes_update_time = tool.get_now_time_str() |
| | | finally: |
| | | sk.sendall(socket_util.load_header(json.dumps({"code": 0}).encode(encoding='utf-8'))) |
| | | elif data_json["type"] == "l2_subscript_codes_rate": |
| | | # 设置订阅的代码的涨幅 |
| | | try: |
| | | data = data_json["data"] |
| | | datas = data["data"] |
| | | # print("l2_subscript_codes", data_json) |
| | | global_data_cache_util.huaxin_subscript_codes_rate = datas |
| | | finally: |
| | | sk.sendall(socket_util.load_header(json.dumps({"code": 0}).encode(encoding='utf-8'))) |
| | | elif data_json["type"] == "l2_position_subscript_codes": |
| | | # 设置订阅的代码 |
| | | try: |
| | |
| | | result_str = json.dumps({"code": 1, "msg": str(e)}) |
| | | sk.sendall(socket_util.load_header(result_str.encode(encoding='utf-8'))) |
| | | break |
| | | elif data_json["type"] == 'low_suction': |
| | | # TODO 低吸通道 |
| | | datas = data_json["data"] |
| | | pass |
| | | |
| | | |
| | | |
| | | except Exception as e: |
| | | log.logger_tuoguan_request_debug.exception(e) |
| | | finally: |