Setting Ibor Coupon Pricer to Fixed Rate Bond in C#
Posted by sergvil on
URL: http://quantlib.414.s1.nabble.com/Setting-Ibor-Coupon-Pricer-to-Fixed-Rate-Bond-in-C-tp5842.html
Hello,
I have a problem when I try to set a pricer to a Fixed Rate Bond. In C++ we have to do this:
// Coupon pricers
boost::shared_ptr<IborCouponPricer> pricer(new BlackIborCouponPricer);
// optionLet volatilities
Handle<OptionletVolatilityStructure> vol = Handle<OptionletVolatilityStructure>(
boost::shared_ptr<OptionletVolatilityStructure>(new
ConstantOptionletVolatility(
settlementDays,
calendar,
ModifiedFollowing,
volatility,
Actual365Fixed())));
pricer->setCapletVolatility(vol);
setCouponPricer(floatingRateBond.cashflows(),pricer);
In C#, I can't find "setCouponPricer" method. It belongs to class "PricerSetter". Perhaps this class it isn't included in SWIG, is it?
Anyway, can I set the pricer using other methods?
Thank you very much.