quantlib.instrument.
Instrument¶
- class Instrument¶
Bases:
ObservableAbstract instrument class
This class is purely abstract and defines the interface of concrete instruments which will be derived from this one.
- Attributes:
error_estimateInstrument.error_estimate: Real
is_expiredInstrument.is_expired: bool
net_present_valueInstrument net present value.
npvShortcut to the net_present_value property.
valuation_datethe date the net present value refers to.
Methods
set_pricing_engine(self, PricingEngine engine)Sets the pricing engine.