Exemplo n.º 1
0
    def onGetAccountListRsp(rpcGetAccountListRsp):
        reqId = rpcGetAccountListRsp.commonRsp.reqId
        if reqId in RpcClientRspHandler.waitReqIdSet:
            RpcClientRspHandler.rpcGetAccountListRspDict[
                reqId] = rpcGetAccountListRsp
        else:
            logger.info("直接丢弃的回报,请求ID:%s", reqId)

        if rpcGetAccountListRsp.account:
            for tmpAccount in rpcGetAccountListRsp.account:
                ClientTradeCacheService.storeAccount(tmpAccount)
 def onRpcAccountRtn(rpcAccountRtn):
     ClientTradeCacheService.storeAccount(rpcAccountRtn.account)
 def onRpcAccountListRtn(rpcAccountListRtn):
     for account in rpcAccountListRtn.account:
         ClientTradeCacheService.storeAccount(account)