R/get_order_history_options.R

Defines functions get_order_history_options

Documented in get_order_history_options

#' Download all available options order history for your RobinHood account
#'
#' @param RH object of class RobinHood
#' @import httr jsonlite magrittr
#' @export
#' @examples
#' \dontrun{
#' # Login in to your RobinHood account
#' RH <- RobinHood("username", "password")
#'
#' get_order_history(RH)
#'}
get_order_history_options <- function(RH) {

    # Check if RH is valid
    check_rh(RH)

    # Get Order History
    order_history <- api_orders_options(RH, action = "history")

    return(order_history)
}

Try the RobinHood package in your browser

Any scripts or data that you put into this service are public.

RobinHood documentation built on March 1, 2021, 5:08 p.m.