Description Usage Arguments Details Value Note Author(s) References Examples
Used in conjunction with exchange expiration calendars included in the greeks package to find the next expiration date given a set of criteria. Currently only OCC options are available, though this will be user extensible.
1 2 3 4 5 6 |
n |
Which expiration or expirations to return, defaulting to n=1 meaning the first 'next' expiry from 'from'. |
mindays |
Should there be a minimum number of days until expiration? Defaults to zero (no minimum). |
from |
Next expiration from which date. Must be of class Date or coercible to such. |
cycle |
Which expiration cycle should be used. Currently only 'monthly' is available. |
calendar |
Which product calendar should be used. ‘.OCC’ is the only included calendar at the time of release. |
expiration |
Should the actual expiration be used, e.g. the day following the last trading day for OCC equity options, or should last trading date be returned. |
The initial prototype is designed for US equity option expirations as given by the OCC calendar. This is a package variable that is derived from the official OCC sources.
A Date object of length 'n'.
It is always possible that dates change for exchanges or individual contracts. Use your data provider and broker to verify consistency.
Jeffrey A. Ryan
http://www.optionsclearing.com/about/publications/expiration-calendar-2011.jsp
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.