25#ifndef quantlib_bond_forward_hpp
26#define quantlib_bond_forward_hpp
81 const Date& valueDate,
82 const Date& maturityDate,
89 const ext::shared_ptr<Bond>& bond,
Forward contract on a bond
void performCalculations() const override
Real forwardPrice() const
(dirty) forward bond price
Real cleanForwardPrice() const
(dirty) forward bond price minus accrued on bond at delivery
Real spotValue() const override
NPV of underlying bond.
Real spotIncome(const Handle< YieldTermStructure > &incomeDiscountCurve) const override
NPV of bond coupons discounted using incomeDiscountCurve.
ext::shared_ptr< Bond > bond_
Abstract base forward class.
const DayCounter & dayCounter() const
Handle< YieldTermStructure > discountCurve() const
term structure relevant to the contract (e.g. repo curve)
const Calendar & calendar() const
BusinessDayConvention businessDayConvention() const
Handle< YieldTermStructure > incomeDiscountCurve() const
term structure that discounts the underlying's income cash flows
Shared handle to an observable.
BusinessDayConvention
Business Day conventions.
unsigned QL_INTEGER Natural
positive integer