ZeroCouponBond¶
- class ZeroCouponBond(Natural settlement_days, Calendar calendar, Real face_amount, Date maturity_date, BusinessDayConvention payment_convention=Following, Real redemption=100.0, Date issue_date=Date())¶
Bases:
BondZero coupon bond
- Attributes:
calendarquantlib.time.date.calendar.CalendarcashflowsLeg: cash flow streamdirty_priceBond dirty price
error_estimateReal: error estimate on the NPV when availableis_expiredbool: whether the instrument might have value greater than zero.issue_dateDate: Bond issue datematurity_dateDate: Bond maturity datenet_present_valueThe net present value of the instrument.
npvA shortcut to the net_present_value property.
settlement_daysintstart_dateDate: Bond start datevaluation_dateDate: the date the net present value refers to.
Methods
accrued_amount(self, Date date=Date)Returns the bond accrued amount at the given date
bond_yield(self, Price price, DayCounter dc, ...)Return the yield given a price and settlement date
clean_price(self, *args)notional(self, Date date=Date)set_pricing_engine(self, PricingEngine engine)Sets the pricing engine to be used.
settlement_date(self, Date from_date=Date)Returns the bond settlement date after the given date.