This code/comment from the file libor.cpp in QL 0.8.1
// http://www.bba.org.uk/bba/jsp/polopoly.jsp?d=225&a=1412 : // For all currencies other than EUR and GBP the period between // Fixing Date and Value Date will be two London business days // after the Fixing Date, or if that day is not both a London // business day and a business day in the principal financial centre >> // of the currency concerned, the next following day which is a // business day in both centres shall be the Value Date. >> Date d = fixingCalendar().advance(fixingDate, fixingDays_, Days); return joinBusinessDays_.adjust(d); Given that joinBusinessDays is the union of business days and the fact that the comment says a business day in both centers, shouldn't this use joinHolidays? The above logic allows a USD Libor swap to settle on American Thanksgiving, which I don't think is correct. Jay ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Hello,
I think that you could get American Thanksgiving on the first line Date d = fixingCalendar().advance(fixingDate, fixingDays_, Days); But this line would adjust on the jointure of the calendars which would give you a day which cannot be Thanksgiving. return joinBusinessDays_.adjust(d); Am I wrong ? Personally I use the same logic for LIBOR fixings at work. (Embedded (Embedded image moved to image moved file: pic25423.gif) to file: Anthony Nguyen pic31928.gif) Interest Rates Trading Desk DEFI/TAU 41, Tower Hill London EC3N 4SG Tel.: 44 (0) 20 7676 7034 Mob.: 44 (0) 792 165 6678 [hidden email] www.sgcib.com |------------------------------ | jwalters@computer | .org | Sent by: | quantlib-users-bo | [hidden email] | eforge.net | | | 14/11/07 14:41 | | | Please respond to | jwalters@computer | .org | | To [hidden email] forge.net cc Subject [Quantlib-users] Question on USD libor fixing dates This code/comment from the file libor.cpp in QL 0.8.1 // http://www.bba.org.uk/bba/jsp/polopoly.jsp?d=225&a=1412 : // For all currencies other than EUR and GBP the period between // Fixing Date and Value Date will be two London business days // after the Fixing Date, or if that day is not both a London // business day and a business day in the principal financial centre >> // of the currency concerned, the next following day which is a // business day in both centres shall be the Value Date. >> Date d = fixingCalendar().advance(fixingDate, fixingDays_, Days); return joinBusinessDays_.adjust(d); Given that joinBusinessDays is the union of business days and the fact that the comment says a business day in both centers, shouldn't this use joinHolidays? The above logic allows a USD Libor swap to settle on American Thanksgiving, which I don't think is correct. Jay ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users ************************************************************************* This message and any attachments (the "message") are confidential and intended solely for the addressee(s). Any unauthorised use or dissemination is prohibited. E-mails are susceptible to alteration. Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified. ************ Ce message et toutes les pieces jointes (ci-apres le "message") sont confidentiels et etablis a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite. Tout message electronique est susceptible d'alteration. La SOCIETE GENERALE et ses filiales declinent toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie. ************************************************************************* ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
In reply to this post by Jay Walters
The first line advances on the fixing calendar, for USD Libor this is United Kingdom and US Thanksgiving is a valid fixing date for USD Libor. The next line uses the joinBusiness days calendar which uses the rule that if the day is a business day in any calendar then it is a business day - this is the opposite of the rule specified by the BBA on their website which is that it must be a business day in both the United Kingdom and the United States for it to be a valid value date.
Jay ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
On Thu, 2007-11-15 at 11:30 -0500, Jay Walters wrote:
> The first line advances on the fixing calendar, for USD Libor this is > United Kingdom and US Thanksgiving is a valid fixing date for USD > Libor. The next line uses the joinBusiness days calendar which uses > the rule that if the day is a business day in any calendar then it is > a business day - this is the opposite of the rule specified by the BBA > on their website which is that it must be a business day in both the > United Kingdom and the United States for it to be a valid value date. This is fixed now---thanks for the heads-up. Luigi -- Zawinski's Law: Every program attempts to expand until it can read mail. Those programs which cannot so expand are replaced by ones which can. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Free forum by Nabble | Edit this page |