def scannerData(self, reqId, rank, contractDetails, distance, benchmark, projection, legsStr): cd = ContractDetails(**contractDetails.__dict__) if cd.contract: cd.contract = self._getContract(cd.contract) data = ScanData(rank, cd, distance, benchmark, projection, legsStr) self._results[reqId].append(data)
def scannerData(self, reqId, rank, contractDetails, distance, benchmark, projection, legsStr): cd = ContractDetails(**contractDetails.__dict__) if cd.contract: cd.contract = self._getContract(cd.contract) data = ScanData(rank, cd, distance, benchmark, projection, legsStr) dataList = self.reqId2Subscriber.get(reqId) if dataList is None: dataList = self._results.get(reqId) if dataList is not None: if rank == 0: dataList.clear() dataList.append(data)
def contractDetails(self, reqId, contractDetails): cd = ContractDetails(**contractDetails.__dict__) cd.contract = self._getContract(cd.contract) if cd.secIdList: cd.secIdList = [TagValue(s.tag, s.value) for s in cd.secIdList] self._results[reqId].append(cd)