getClosePrice: getClosePrice Barchart data.

Description Usage Arguments Value Author(s) See Also Examples

Description

getClosePrice returns an data frame The getClosePrice API provides the close price for given instruments for the given date.

Usage

1
getClosePrice(symbols, date = NULL, splits = 1, dividends = 1)

Arguments

symbols

required; A symbol or code that identifies a financial instrument. Multiple symbols separated by a comma may be used. Example IBM,AAPL,GOOG

date

optional; The date of the historical data query. The value should conform to the format yyyymmdd. Example 2010-01-01

splits

optional; An adjustment of stock value due to corporate action. This parameter only applies to stocks and specifies whether the data returned should be adjusted for splits or not. Set to true to query for adjusted the data, or to false for non-adjusted data. Default 1. Example true

dividends

optional; A distribution of a portion of a company's earnings. This parameter only applies to stocks and specifies whether the data returned should be adjusted for dividends or not. Set to true to query for adjusted the data, or to false for non-adjusted data. Default 1. Example true

Value

data frame

Author(s)

Mario Pisa

See Also

https://www.barchart.com/ondemand/api/getFuturesExpirations

Examples

1
2
getClosePrice(symbols = 'ESM19')
getClosePrice(symbols = 'NGM19,ESM19')

mariope/RBarchart documentation built on June 24, 2019, 9:47 p.m.