td_cancelOrder {rameritrade} | R Documentation |
Cancel an Open Order
Description
Pass an Order ID and Account number to cancel an existing open order
Usage
td_cancelOrder(orderId, accountNumber, accessToken = NULL)
Arguments
orderId |
A valid TD Ameritrade Order ID |
accountNumber |
The TD brokerage account number associated with the Access Token |
accessToken |
A valid Access Token must be set using
|
Value
order API URL. Message confirming cancellation
Examples
## Not run:
td_cancelOrder(orderId = 123456789, accountNumber = 987654321)
## End(Not run)
[Package rameritrade version 0.1.5 Index]