altercandles {limexhub} | R Documentation |
Get Alternative Candlestick Data
Description
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'.
Usage
altercandles(symbol = "BRX", from = "2023-11-27", to = Sys.Date())
Arguments
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. |
Value
A data frame containing the candlestick data if the request was successful, NULL otherwise.
Examples
## Not run:
candles_data <- altercandles(symbol = "BRX", from = "2023-07-31", to = "2023-08-24")
## End(Not run)
[Package limexhub version 0.1.5 Index]