Description Usage Arguments Details Value Examples
Data Weighting:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
symbol |
stock symbol |
timePeriod |
is one of "dynamic" | "date" | "1d" | "5d" | "5dm" | "1m" | "1mm" | "3m" | "6m" | "ytd" | "1y" | "2y" | "5y | "max" 5dm returns five days at 10 minute intervals 1mm returns 1 month of data at 30 minute intervals max returns up to 15 years of end of day data for symbol |
chartCloseOnly |
= FALSE,(1 mu/minute 50 max.) All ranges except 1d. Will return adjusted data only with keys date, close, and volume. |
chartIEXOnly |
= FALSE,(free) Only for 1d. Limits the return of intraday prices to IEX only data. |
chartLastN |
= 0, If passed, chart data will return the last N elements |
chartInterval |
= 1,If passed, chart data will return every Nth element as defined by chartInterval |
changeFromClose |
= FALSE, If true, changeOverTime and marketChangeOverTime will be relative to previous day close instead of the first value. |
chartReset |
= FALSE, If true, 1d chart will reset at midnight instead of the default behavior of 9:30am ET. |
chartSimplify |
= FALSE, If true, runs a polyline simplification using the Douglas-Peucker algorithm. This is useful if plotting sparkline charts. |
chartByDay |
= FALSE, if TRUE and timeperiod is dte then will return end of day info for given date instead of minute bars, |
date |
as "YYYY-MM-DD"| "YYYYMMDD" | class(date) == "Date" |
Adjusted + Unadjusted data: 10 message units per symbol per time interval returned (Excluding 1d) Example: If you query for AAPL 5 day, it will return 5 days of prices for AAPL for a total of 50.
Adjusted close only data (chartCloseOnly=TRUE) 2 mu per symbol per time interval returned (Excluding 1d)
Intraday minute bar data: 1 mu per symbol per time interval for 1d range up to a max of 50 Example: If you query for AAPL 1d at 11:00am, it will return 90 minutes of data for a total of 50.
IEX Only intraday minute bar data (chartIEXOnly=TRUE): 0 mu (as in free) This will only return IEX data with keys minute, high, low, average, volume, notional, and numberOfTrades
a dataframe
1 | history("AAPL")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.