quantlib.instruments.bonds.zerocouponbond.
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:
- calendar
cashflowscash flow stream as a
Leg.clean_priceBond clean price.
dirty_priceBond dirty price
error_estimateInstrument.error_estimate: Real
is_expiredInstrument.is_expired: bool
issue_dateBond issue date
maturity_dateBond maturity date
net_present_valueInstrument net present value.
npvShortcut to the net_present_value property.
- settlement_days
start_dateBond start date
valuation_datethe 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
notional(self, Date date=Date)set_pricing_engine(self, PricingEngine engine)Sets the pricing engine.
settlement_date(self, Date from_date=Date)Returns the bond settlement date after the given date.