Exemple #1
0
    def onGetMixContractListRsp(rpcGetMixContractListRsp):
        reqId = rpcGetMixContractListRsp.commonRsp.reqId
        if reqId in RpcClientRspHandler.waitReqIdSet:
            RpcClientRspHandler.rpcGetMixContractListRspDict[
                reqId] = rpcGetMixContractListRsp
        else:
            logger.info("直接丢弃的回报,请求ID:%s", reqId)

        if rpcGetMixContractListRsp.contract:
            for tmpContract in rpcGetMixContractListRsp.contract:
                ClientTradeCacheService.storeContract(tmpContract)
 def onRpcContractRtn(rpcContractRtn):
     ClientTradeCacheService.storeContract(rpcContractRtn.contract)
 def onRpcContractListRtn(rpcContractListRtn):
     for contract in rpcContractListRtn.contract:
         ClientTradeCacheService.storeContract(contract)