Description Usage Arguments Examples
Download live stock prices for current (or if market does not work, for last working day) day in "xts", "data.frame" or "data.table" format. The timezone of dataset is formatted in US Eastern timezone.
1 | intraday_live(stock, type="xts")
|
stock |
the ticker name of the stock. you are free to write the ticker in lower or uppercase characters. |
type |
type of dataset output. default format is "xts". it can also have an output with "data.frame" or "data.table" formats. |
1 2 3 4 5 6 7 8 9 | # DON'T RUN!
# xts output for Apple Inc. minutely live stock prices
live_xts <- intraday("AAPL", type="xts")
# data.frame output for Pfizer Inc. minutely live stock prices
live_df <- intraday("Pfe", type="data.frame")
# data.table output for Cisco Inc. minutely live stock prices
live_dt <- intraday_live(stock="csco", type="data.table")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.