quantlib.instruments.forward.
Forward¶
- class Forward¶
Bases:
InstrumentAbstract base forward class.
- Attributes:
error_estimateReal: error estimate on the NPV when availableforward_valueThe forward value/price of the underlying, discounting income/dividends.
is_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.
spot_valueThe spot value/price of the underlying financial instrument.
valuation_dateDate: the date the net present value refers to.
Methods
implied_yield(self, ...)Calculates the implied yield of the forward contract.
set_pricing_engine(self, PricingEngine engine)Sets the pricing engine to be used.
spot_income(self, ...)The NPV of income/dividends/storage-costs etc.