trade/huaxin/huaxin_trade_api.py
@@ -24,6 +24,16 @@ active_client_dict = {} @classmethod def list_client(cls, _type): if _type == cls.CLIENT_TYPE_TRADE: if _type in cls.socket_client_dict: return cls.socket_client_dict.get(_type) else: if _type in cls.socket_client_dict: return [cls.socket_client_dict.get(_type)] return [] @classmethod def add_client(cls, _type, rid, sk): if _type == cls.CLIENT_TYPE_TRADE: # 交易列表