File: options.expiry.Rd

package info (click to toggle)
r-cran-quantmod 0.4.28-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 984 kB
  • sloc: makefile: 2
file content (43 lines) | stat: -rw-r--r-- 1,194 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
\name{options.expiry}
\alias{options.expiry}
\alias{futures.expiry}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{ Calculate Contract Expirations }
\description{
Return the index of the contract expiration date.  The third Friday of the
month for options, the last third Friday of the quarter for futures.
}
\usage{
options.expiry(x)
futures.expiry(x)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
  \item{x}{ a time-indexed zoo object }
}
\details{
Designed to be used within a charting context via \code{addExpiry}, the values returned
are based on the description above. Exceptions, though rare, are not accounted for.
}
\value{
A numeric vector of values to index on.
}
\references{ ~put references to the literature/web site here ~ }
\author{ Jeffrey A. Ryan }
\note{ 
There is currently no accounting for holidays that may interfere with
the general rule. Additionally all efforts have been focused on
US equity and futures markets.
}
\seealso{ \code{\link{addExpiry}} }
\examples{
\dontrun{
getSymbols("AAPL")

options.expiry(AAPL)
futures.expiry(AAPL)

AAPL[options.expiry(AAPL)]
}
}
\keyword{ utilities }% __ONLY ONE__ keyword per line