Regarding FRA concept

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Regarding FRA concept

shail
Hi
 
Earlier i was using Quantlib 0.9.0
I prepared a wrapper code for FRA(exactly in Example) in which in i needed atleast two elements in fraInstruments vector i.e.
 
std::vector<boost::shared_ptr<RateHelper> > fraInstruments;
fraInstruments.push_back(fra1x4);
fraInstruments.push_back(fra2x5);
 
By providing one element in vector,it's shows an exception
" not enough instruments given: 1"
 
But in case of Quantlib 0.9.7 eventhough if there is a single value in fraInstruments vector,i get the output.
 
Please can any one help me in this regard that what modification or approach is taken in FRA example.
 
Thanks & Regards
 
Shailesh Kumar
      


Connect with friends all over the world. Get Yahoo! India Messenger.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Regarding FRA concept

Luigi Ballabio
On Thu, 2008-12-04 at 22:54 +0530, shailesh kumar wrote:
> Earlier i was using Quantlib 0.9.0
> I prepared a wrapper code for FRA(exactly in Example) in which in i
> needed atleast two elements in fraInstruments vector i.e.
>  
> But in case of Quantlib 0.9.7 eventhough if there is a single value in
> fraInstruments vector,i get the output.
>  
> Please can any one help me in this regard that what modification or
> approach is taken in FRA example.

The FRA example didn't change, but the bootstrap code did. The
requirement of having two instruments was too strict for most
interpolations. We relaxed it in 0.9.7.

Luigi



--



If you can't convince them, confuse them.
-- Harry S. Truman



------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users