account | R Documentation |
The accounts API serves important information related to an account, including account status, funds available for trade, funds available for withdrawal, and various flags relevant to an account's ability to trade. See the Account Endpoint in the API v2 Docs for full details.
account(live = get_live())
live |
|
Account (list)
An Account object list of length 26:
id
(character)
Account ID
account_number
(character)
Account number
status
(character)
See Account Endpoint Properties for details
currency
(character)
USD
buying_power
(numeric)
Current available $ buying power; If multiplier = 4, this is your daytrade buying power which is calculated as (last_equity - (last) maintenance_margin) * 4; If multiplier = 2, buying_power = max(equity - initial_margin,0) * 2; If multiplier = 1, buying_power = cash
cash
(numeric)
cash balance
portfolio_value
(numeric)
Total value of cash + holding positions
trading_blocked
(logical)
If true, the account is not allowed to place orders as a boolean.
transfers_blocked
(logical)
If true, the account is not allowed to request money transfers as a boolean.
account_blocked
(logical)
If true, the account activity by user is prohibited as a boolean.
created_at
(Datetime/POSIXct)
Timestamp this account was created at.
Other Account:
account_activities()
,
account_config()
,
account_portfolio()
account()
# With default arguments equivalent to :
account(live = FALSE)
# For access to live accounts, you must submit as live = TRUE
account(live = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.