news | R Documentation |
Retrieves news data for a specific stock symbol from the Limex API. The API token is retrieved from an environment variable 'LIMEX_API_TOKEN'.
news(symbol = "AAPL", from = "2010-01-01", to = Sys.Date())
symbol |
The stock symbol for which news data is requested. |
from |
The start date for the data retrieval in 'YYYY-MM-DD' format. |
to |
The end date for the data retrieval in 'YYYY-MM-DD' format. |
A data frame containing the news data if successful, NULL otherwise.
## Not run:
news_data <- news(symbol = "BRX", from = "2023-11-27", to = "2023-11-28")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.