| | |
| | | |
| | | import dask |
| | | import psutil |
| | | import huaxin_api.constant |
| | | import huaxin_client.constant |
| | | from line_profiler import LineProfiler |
| | | |
| | | import constant |
| | |
| | | from code_attribute import gpcode_manager |
| | | from db import mysql_data_delegate as mysql_data, redis_manager_delegate as redis_manager |
| | | from db.redis_manager_delegate import RedisUtils |
| | | from huaxin_api.client_network import SendResponseSkManager |
| | | from huaxin_client.client_network import SendResponseSkManager |
| | | from l2 import l2_data_manager_new, l2_log, code_price_manager, l2_data_util, l2_data_manager, transaction_progress |
| | | from l2.cancel_buy_strategy import HourCancelBigNumComputer, LCancelBigNumComputer, DCancelBigNumComputer |
| | | from l2.huaxin import huaxin_target_codes_manager |
| | |
| | | class OutsideApiCommandCallback(outside_api_command_manager.ActionCallback): |
| | | @classmethod |
| | | def __send_response(cls, data_bytes): |
| | | sk = SendResponseSkManager.create_send_response_sk(addr=huaxin_api.constant.SERVER_IP, |
| | | port=huaxin_api.constant.SERVER_PORT) |
| | | sk = SendResponseSkManager.create_send_response_sk(addr=huaxin_client.constant.SERVER_IP, |
| | | port=huaxin_client.constant.SERVER_PORT) |
| | | try: |
| | | data_bytes = socket_util.load_header(data_bytes) |
| | | sk.sendall(data_bytes) |