schwab_transactSearch {schwabr} | R Documentation |
Search for all Transaction types
Description
Can pull trades as well as transfers, dividend reinvestment, interest, etc. Any activity associated with the account.
Usage
schwab_transactSearch(
account_number,
startDate = Sys.Date() - 30,
endDate = Sys.Date(),
transType = "TRADE",
accessTokenList = NULL
)
Arguments
account_number |
A Schwab account number associated with the Access Token |
startDate |
Transactions after a certain date. Will not pull back transactions older than 1 year. format yyyy-mm-dd |
endDate |
Filter transactions that occurred before a certain date. format yyyy-mm-dd |
transType |
Filter for a specific Transaction type. No entry will return all types. For example: TRADE, CASH_IN_OR_CASH_OUT, CHECKING, DIVIDEND, INTEREST, OTHER |
accessTokenList |
A valid Access Token must be set using the output from
|
Value
a jsonlite data frame of transactions
Examples
## Not run:
# Access Token must be set using schwab_auth3_accessToken
# Transactions for the last 5 days
schwab_transactSearch(account_number = 987654321,
startDate = Sys.Date()-days(5))
## End(Not run)
[Package schwabr version 0.1.3 Index]