Learn R Programming

iqfeed (version 0.2)

HDX: Retrieves daily historic bars for a given number of days, for the specified symbol.

Description

Retrieves daily historic bars for a given number of days, for the specified symbol.

Usage

HDX(symbol, days, tz="")

Arguments

symbol
Any valid symbol.
days
The number of days.
tz
The timezone code (defaults to "", or the current timezone, as timezone translation is not typically desired in this context).

Value

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

Examples

Run this code
require("iqfeed")
iqConf()
HDX("XOM",days=14)

Run the code above in your browser using DataLab