defexecDetails(self,reqId,contract,execution):ifreqId==-1:#FILLorderId=execution.orderIdexecId=execution.execIdwithself.fills_cond:known=orderIdinself.fillsifknown:self.fills_cond.notify_all()else:self.fills.setdefault(orderId,{})self.fills[orderId][execId]=(contract,execution)ifknown:logging.info("Received execDetaills with reqId = %s ( not a FILL). To address",str(reqId))else:self.event_q.send(message.FillIBEvent(orderId,contract,execution))self._default_cb(reqId,contract,execution)
Comments (1)
Kim Minh Kaplan
The original code was wrong due to indentation garbage due being pasted in Hangout.
HTTPSSSH
You can clone a snippet to your computer for local editing.
Learn more.
The original code was wrong due to indentation garbage due being pasted in Hangout.