account_activities | R Documentation |
The account activities API provides access to a historical record of transaction activities that have impacted your account. Trade execution activities and non-trade activities, such as dividend payments, are both reported through this endpoint. See Account Activities for details.
account_activities(
activity_type = NULL,
date = NULL,
until = NULL,
after = NULL,
direction = "desc",
page_size = 50,
page_token = NULL,
live = get_live()
)
activity_type |
|
date |
|
until |
|
after |
|
direction |
|
page_size |
|
page_token |
|
live |
|
Activity Types:
"FILL"
Order fills (both partial and full fills)
"TRANS"
Cash transactions (both CSD and CSR)
"MISC"
Miscellaneous or rarely used activity types (All types except those in TRANS, DIV, or FILL)
"ACATC"
ACATS IN/OUT (Cash)
"ACATS"
ACATS IN/OUT (Securities)
"CSD"
Cash disbursement(+)
"CSR"
Cash receipt(-)
"DIV"
Dividends
"DIVCGL"
Dividend (capital gain long term)
"DIVCGS"
Dividend (capital gain short term)
"DIVFEE"
Dividend fee
"DIVFT"
Dividend adjusted (Foreign Tax Withheld)
"DIVNRA"
Dividend adjusted (NRA Withheld)
"DIVROC"
Dividend return of capital
"DIVTW"
Dividend adjusted (Tefra Withheld)
"DIVTXEX"
Dividend (tax exempt)
"INT"
Interest (credit/margin)
"INTNRA"
Interest adjusted (NRA Withheld)
"INTTW"
Interest adjusted (Tefra Withheld)
"JNL"
Journal entry
"JNLC"
Journal entry (cash)
"JNLS"
Journal entry (stock)
"MA"
Merger/Acquisition
"NC"
Name change
"OPASN"
Option assignment
"OPEXP"
Option expiration
"OPXRC"
Option exercise
"PTC"
Pass Thru Charge
"PTR"
Pass Thru Rebate
"REORG"
Reorg CA
"SC"
Symbol change
"SSO"
Stock spinoff
"SSP"
Stock split
TradeActivity
(tibble)
TradeActivity Object or a NonTradeActivity Object. See Details.
id
(character)
An id for the activity. Always in "
::" format. Can be sent as page_token
in requests to facilitate the paging of results.
activity_type
(character)
Activity type to filter for. IE "FILL". Non case-sensitive.
transaction_time
(POSIXct)
The time at which the execution occurred.
type
(character)
"fill"
or "partial_fill"
price
(numeric)
The per-share price that the trade was executed at.
qty
(integer)
The number of shares involved in the trade execution.
side
(character)
"buy"
or "sell"
symbol
(character)
The symbol of the security being traded.
leaves_qty
(integer)
For partially_filled orders, the quantity of shares that are left to be filled.
order_id
(character)
The id for the order that filled.
cum_qty
(integer)
The cumulative quantity of shares involved in the execution.
NonTradeActivity
(tibble)
A NonTradeActivity Entity:
activity_type
(character)
See Details
id
(character)
An id for the activity. Always in "
::" format. Can be sent as page_token
in requests to facilitate the paging of results.
date
(POSIXct)
The date on which the activity occurred or on which the transaction associated with the activity settled.
net_amount
(numeric)
The net amount of money (positive or negative) associated with the activity.
symbol
(character)
The symbol of the security involved with the activity. Not present for all activity types.
qty
(integer)
For dividend activities, the number of shares that contributed to the payment. Not present for other activity types.
per_share_amount
(numeric)
For dividend activities, the average amount paid per share. Not present for other activity types.
Other Account:
account_config()
,
account_portfolio()
,
account()
account_activities(activity_type = "FILL")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.