XiborManager and History

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

XiborManager and History

Perissin Francesco
Hi, I have some problems in understanding how to use these classes in order
to correctly handle past fixings for a rate index.

For example, consider this

Handle<Xibor> my6mEuribor;
my6mEuribor= Handle<Xibor> (new Euribor(6, Months, rhTermStructure));

Now, how can I link fixings to this? Suppose that I have the following
vectors:

std::vector<Date> euriborDates;
std::vector<Rate> euriborFixings;

I guess that I should create the History:

History euriborHistory = History(euriborDates, euriborFixings);

And now?


Thanks
Francesco
--
############################### DISCLAIMER #################################

This  message  (including  any  attachments)  is  confidential  and  may be
privileged.  If you have received it by mistake please notify the sender by
return  e-mail  and  delete this message from your system. Any unauthorised
use  or  dissemination  of  this  message  in  whole or in part is strictly
prohibited.  Please  note  that e-mails are susceptible to change. Banca del
Gottardo (including  its  group  companies)  shall not be liable for the
improper  or  incomplete  transmission of the information contained in this
communication  nor  for  any delay in its receipt or damage to your system.
Banca del Gottardo  (or its group companies) does not guarantee that the
integrity   of  this  communication  has  been  maintained  nor  that  this
communication is free of viruses, interceptions or interference.

############################################################################


Reply | Threaded
Open this post in threaded view
|

Re: XiborManager and History

Luigi Ballabio-2
Ciao,

At 05:32 PM 10/8/02 +0200, Perissin Francesco wrote:

>Hi, I have some problems in understanding how to use these classes in order
>to correctly handle past fixings for a rate index.
>
>For example, consider this
>
>Handle<Xibor> my6mEuribor;
>my6mEuribor= Handle<Xibor> (new Euribor(6, Months, rhTermStructure));
>
>Now, how can I link fixings to this? Suppose that I have the following
>vectors:
>
>std::vector<Date> euriborDates;
>std::vector<Rate> euriborFixings;
>
>I guess that I should create the History:
>
>History euriborHistory = History(euriborDates, euriborFixings);
>
>And now?

         XiborManager::setHistory(my6mEuribor->name(), euriborHistory);

After this,

         Rate foo = my6mEuribor->fixing(twoYearsAgo);

will work automatically.

However, I'm not entirely happy with this interface. I'd be glad to hear
any suggestions for improving it...

Bye,
         Luigi