I have felt the same way about this issue.
this would be a really useful feature imo. Since the option expiration falls
on the 3rd Friday of each month it may be possible to determine this
day without any hardcoding. Does anyone know of some logic like this.
I am eager to hear thoughts on this
request.
From:
[hidden email] [mailto:[hidden email]]
On Behalf Of David Brown
Sent: Wednesday, October 18, 2006
2:30 PM
To:
[hidden email]
Subject: [Quantlib-users] Simple
Expiration Date Handling
Hi-
I've been browsing through the object hierarchy for a bit now and
noticed that QuantLib has a great date handling system which handles
internationalization and Holiday exceptions, but it appears to me that
something is missing. There does not appear to be a built-in provision to
simply calculate the expiration dates of options. The majority of options
traded in the
For instance:
Obj 1: Oct 30 Calls misc details
Obj 2: Oct 30 Puts misc details
Obj 3: Nov 30 Puts misc details
Obj 4: Nov 35 Calls misc details
Today is 10/18/06. Days_To_Expiry =
Obj1.DaysToExpiry
Now this is passable to the calculation engine.
Any thoughts?
David Brown
| Free forum by Nabble | Edit this page |