defexecDetails(self,reqId,contract,execution):#ifreqId==-1:#FILLexec_id=execution.execIdorder_id=execution.orderIdwithself.fills_cond:iforder_idnotinself.fills:self.fills.setdefault(order_id,{})self.fills[order_id][execId]=(contract,execution)self.fills_cond.notify_all()self.save_fill_to_db(order_id,exec_id,contract,execution)self.event_q.send(message.FillIBEvent(order_id,contract,execution))else:logging.info("Received execDetaills with reqId = %s (not a FILL). To address",str(reqId))withself.fills_cond:self.fills_cond.notify_all()self._default_cb(reqId,contract,execution)
Comments (0)
HTTPSSSH
You can clone a snippet to your computer for local editing.
Learn more.