def m_tif(self): if Order.TimeInForceChoice(self.TimeInForce) not in self._tif_map: raise NotImplementedError( 'Time in force of this type ' + Order.TimeInForceChoice.to_str(self.TimeInForce)) return self._tif_map[Order.TimeInForceChoice(self.TimeInForce)]