Description Usage Arguments Value Author(s) See Also Examples
getClosePrice
returns an data frame
The getClosePrice API provides the close price for given instruments for the given date.
1 | getClosePrice(symbols, date = NULL, splits = 1, dividends = 1)
|
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 |
data frame
Mario Pisa
https://www.barchart.com/ondemand/api/getFuturesExpirations
1 2 | getClosePrice(symbols = 'ESM19')
getClosePrice(symbols = 'NGM19,ESM19')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.