Description Usage Arguments Value Examples
Given the tickers, buy-in date, sell-out date, returns the historical prices and profit/loss
1 | gather_stock_returns(api_key, ticker, buy_date, sell_date)
|
api_key |
character API key (sandbox or production) from Intrinio |
ticker |
character ticker symbols or a vector of ticker symbols |
buy_date |
character the buy-in date in the format of " If the input date is not a trading day, it will be automatically changed to the next nearest trading day. |
sell_date |
character the sell-out date in the format of " If the input date is not a trading day, it will be automatically changed to the last nearest trading day. |
a dataframe that contains the companies, historical prices and corresponding profit/loss
1 2 | gather_stock_returns('OjhlMjhjNTBmMWJiMWE0MTExYjQwNWZmZTVkZWM1', c('AAPL', 'CSCO'),
"2017-12-31", "2019-03-01")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.