Administrator
2023-07-18 3cc54d41c3f33e2d3557fd34eed163f3af48c19e
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:
            # 交易列表