HIT: Retrieves historic interval bars within a given time interval...

Description Usage Arguments Details Value Author(s) Examples

Description

Retrieves historic interval bars within a given time interval for the specified symbol.

Usage

1
HIT(symbol, interval = 3600, start, end, beginFilterTime = "", endFilterTime = "", tz="America/New_York")

Arguments

symbol

Any valid symbol.

interval

The interval period in seconds.

start

The starting date/time or just date.

end

The ending date/time or just date.

beginFilterTime

The beginning time of day (America/New_York) in the form "HHmmSS" (leave blank for all day).

endFilterTime

The ending time of day (America/New_York) in the form "HHmmSS" (leave blank for all day).

tz

The timezone code (defaults to "America/New_York").

Details

A basic attempt is made to interpret the date/time values. One may very explicitly specify the date/time parameters in the following format: "CCCC-MM-dd HH:mm:SS" and by specifying the tz parameter.

Value

An xts time-series object with High, Low, Open, Close, and Volume bars over the requested interval.

Author(s)

B. W. Lewis

Examples

1
2
3
4
5
require("iqfeed")
iqConf()
t0 <- "2010-01-18 15:25:00"
t1 <- "2010-01-22 10:00:00"
HIT("MSFT",interval=3600,start=t0,end=t1)

bwlewis/iqfeed documentation built on May 13, 2019, 9:06 a.m.