altercandles | R Documentation |
Retrieves alternative candlestick data for a given stock symbol within the specified date range. The API token is retrieved from an environment variable 'LIMEX_API_TOKEN'.
altercandles(symbol = "BRX", from = "2023-11-27", to = Sys.Date())
symbol |
Stock symbol to fetch candlestick data for. |
from |
Starting date for the candlestick data in 'YYYY-MM-DD' format. |
to |
Ending date for the candlestick data in 'YYYY-MM-DD' format. |
A data frame containing the candlestick data if the request was successful, NULL otherwise.
## Not run:
candles_data <- altercandles(symbol = "BRX", from = "2023-07-31", to = "2023-08-24")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.