| | |
| | | return_str = json.dumps({"code": 401, "msg": str(e)}) |
| | | break |
| | | finally: |
| | | sk.sendall( socket_util.load_header(return_str.encode(encoding='utf-8'))) |
| | | sk.sendall(socket_util.load_header(return_str.encode(encoding='utf-8'))) |
| | | |
| | | def finish(self): |
| | | super().finish() |
| | |
| | | hx_logger_trade_debug.info(f"获取交易数据开始:{type_}") |
| | | |
| | | if type_ == "delegate_list": |
| | | dataJSON = huaxin_trade_api.get_delegate_list() |
| | | dataJSON = huaxin_trade_api.get_delegate_list(can_cancel=False) |
| | | print("获取委托列表", dataJSON) |
| | | if dataJSON["code"] == 0: |
| | | data = dataJSON["data"] |