Pass an order ID and Account number to get details such as status, quantity, ticker, executions (if applicable), account, etc.

schwab_orderDetail(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

list of order details

Examples

if (FALSE) { # \dontrun{

# Get stored refresh token
refreshToken = readRDS('/secure/location/')

# generate a new access token
accessTokenList = schwab_auth3_accessToken('AppKey', 'AppSecret', refreshToken)

# Get order details for a single order
# Passing Access Token is optional once it's been set
schwab_orderDetail(orderId = 123456789, account_number = 987654321)

} # }