Pass an Order ID and Account number to cancel an existing open order
schwab_cancelOrder(orderId, account_number, accessTokenList = NULL)
A valid Schwab Order ID
A schwab account number associated with the Access Token
A valid Access Token must be set using the output from
schwab_auth3_accessToken
. The most recent Access Token will be
used by default unless one is manually passed into the function.
order API URL. Message confirming cancellation
if (FALSE) { # \dontrun{
schwab_cancelOrder(orderId = 123456789, account_number = 987654321)
} # }