td_marketHours {rameritrade} | R Documentation |
Get Market Hours
Description
Returns a list output for current day and specified market that details the trading window
Usage
td_marketHours(
marketType = c("EQUITY", "OPTION", "BOND", "FUTURE", "FOREX"),
accessToken = NULL
)
Arguments
marketType |
The asset class to pull: 'EQUITY','OPTION','BOND','FUTURE','FOREX'. Default is EQUITY |
accessToken |
A valid Access Token must be set using
|
Value
List output of times and if the current date is a trading day
Examples
## Not run:
# Access Token must be set using td_auth_accessToken
# Market hours for the current date
td_marketHours()
td_marketHours('2020-06-24', 'OPTION')
## End(Not run)
[Package rameritrade version 0.1.5 Index]