Pass an Order ID and Account number to cancel an existing open order

schwab_cancelOrder(orderId, account_number, accessTokenList = NULL)

Arguments

orderId

A valid Schwab Order ID

account_number

A schwab account number associated with the Access Token

accessTokenList

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.

Value

order API URL. Message confirming cancellation

Examples

 if (FALSE) { # \dontrun{

schwab_cancelOrder(orderId = 123456789, account_number = 987654321)

} # }