Learn R Programming

charlesschwabapi (version 1.0.5)

cancel_order: Cancel Specific Order by ID for Account

Description

Given the tokens object from the `get_authentication_tokens` function, the encrypted account ID, and the order ID, cancel the specific order.

Usage

cancel_order(tokens, encrypted_account_id, order_id)

Value

Returns a message informing the user if cancellation was successful or if there was an error.

Arguments

tokens

token object from `get_authentication_tokens` function (list).

encrypted_account_id

encrypted ID of the account from `get_account_numbers` function (string).

order_id

order ID for the order (numeric).

Author

Nick Bultman, njbultman74@gmail.com, July 2024