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_estimateReal: error estimate on the NPV when availableis_expiredbool: whether the instrument might have value greater than zero.net_present_valueThe net present value of the instrument.
npvA shortcut to the net_present_value property.
valuation_dateDate: the date the net present value refers to.
Methods
set_pricing_engine(self, PricingEngine engine)Sets the pricing engine to be used.