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

        if rpcGetTickListRsp.tick:
            for tmpTick in rpcGetTickListRsp.tick:
                ClientTradeCacheService.storeTick(tmpTick)
 def onRpcTickRtn(rpcTickRtn):
     ClientTradeCacheService.storeTick(rpcTickRtn.tick)
     StrategyEngine.onTick(rpcTickRtn.tick)
 def onRpcTickListRtn(rpcTickListRtn):
     for tick in rpcTickListRtn.tick:
         ClientTradeCacheService.storeTick(tick)