thank you so much Whiti was able to construct a yc per the link.however, when i call the zeroRate method i always get the first rate 0.122% that i inserted regardless of the date in the first argument. This is the first deposit rate quote Rate d1wQuote=0.00122;the discount function also just returns 1 all the time. i believe these two functions belong to class YieldTermStructure.here is my code snippet. Assume everything is set up as in the link in your email above.std::cout<<"the zero rate at t+8m : " << depoSwapTermStructure->zeroRate(todaysDate + 8*Months,depositDayCounter,Simple)<<std::endl;std::cout<<"the 8month zero price to be used for discounting "<<depoSwapTermStructure->discount(todaysDate + 8*Months) <<std::endl;depoSwapTermStructure is fromboost::shared_ptr<YieldTermStructure>depoSwapTermStructure(new PiecewiseYieldCurve<Discount, LogLinear>(settlementDate,depoSwapInstruments,termStructureDayCounter, tolerance));
anyone , any ideas?thanksPavanOn Thu, Aug 7, 2014 at 12:01 PM, Whit Armstrong <[hidden email]> wrote:
Just take this example and use depo and swap rates. drop the FRAs.-WhitOn Thu, Aug 7, 2014 at 2:10 PM, Pavan Shah <[hidden email]> wrote:
------------------------------------------------------------------------------hello, i have the following quotes from an outside source.
US00O/N Index0.090 US0001W Index 0.122 US0002W Index 0.171 US0001M Index 0.159 US0003M Index 0.237 US0006M Index 0.330 US0012M Index 0.560 USSW2 CMPN Curncy 0.678 USSW3 CMPN Curncy 1.123 USSW4 CMPN Curncy 1.509 USSW5 CMPN Curncy 1.802 USSW6 CMPN Curncy 2.034 USSW7 CMPN Curncy 2.219 USSW8 CMPN Curncy 2.373 USSW9 CMPN Curncy 2.502 USSW10 CMPN Curncy 2.613 USSW15 CMPN Curncy 2.976 USSW20 CMPN Curncy 3.139 USSW30 CMPN Curncy 3.247 how can i input these quotes and produce a complete yield curve and corresponding vector of discount factors?an example would be greatly appreciatedi am trying to price an option that may expire in 23 months from now (for example).So i would need the correct rate to use for that.thanksPavan
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
| Free forum by Nabble | Edit this page |