Accounts
Manage trading accounts, balances, and portfolio history.
Get Accounts
Get Account By ID
Patch Account By ID
Get Account Balances
Get Portfolio History
ModelsExpand Collapse
class AccountBalances: …
Represents the balance details for a trading account
daily_unrealized_pnl: str
Total unrealized profit or loss across all positions relative to prior close.
Start-of-day snapshot balances.
asof: Optional[date]
Timestamp for the start-of-day values. When a null/undefined value is observed, it indicates that there is no available data.
Deprecatedday_trade_buying_power: Optional[str]
Start-of-day day-trade buying power. When a null/undefined value is observed, it indicates it does not apply.
maintenance_margin_excess: Optional[str]
Start-of-day maintenance margin excess. When a null/undefined value is observed, it indicates it does not apply.
margin_details: Optional[MarginDetails]
Margin-account-only details. When a null/undefined value is observed, it indicates it does not apply.
Deprecatedday_trade_count: int
The number of day trades executed over the 5 most recent trading days.
Deprecatedpattern_day_trader: bool
true if the account is currently flagged as a PDT, otherwise false.
Deprecatedday_trade_buying_power_usage: Optional[str]
The amount of day-trade buying power used during the current trading day. When null/undefined, the value should be assumed to be zero. The field is omitted to simplify the response.
class AccountBalancesSod: …
asof: Optional[date]
Timestamp for the start-of-day values. When a null/undefined value is observed, it indicates that there is no available data.
Deprecatedday_trade_buying_power: Optional[str]
Start-of-day day-trade buying power. When a null/undefined value is observed, it indicates it does not apply.
maintenance_margin_excess: Optional[str]
Start-of-day maintenance margin excess. When a null/undefined value is observed, it indicates it does not apply.
List[Account]
class MarginDetails: …
Deprecatedday_trade_count: int
The number of day trades executed over the 5 most recent trading days.
Deprecatedpattern_day_trader: bool
true if the account is currently flagged as a PDT, otherwise false.
Deprecatedday_trade_buying_power_usage: Optional[str]
The amount of day-trade buying power used during the current trading day. When null/undefined, the value should be assumed to be zero. The field is omitted to simplify the response.
class PortfolioHistoryResponse: …
day_pnl: Optional[str]
Sum of the profit and loss from intraday trading activities for the trading day.
net_pnl: Optional[str]
P&L after netting all realized and unrealized P&L, adjustments, dividends, change in accruals, income and expenses
class PortfolioHistorySegment: …
day_pnl: Optional[str]
Sum of the profit and loss from intraday trading activities for the trading day.
net_pnl: Optional[str]
P&L after netting all realized and unrealized P&L, adjustments, dividends, change in accruals, income and expenses
class AccountGetAccountBalancesResponse: …
Represents the balance details for a trading account
daily_unrealized_pnl: str
Total unrealized profit or loss across all positions relative to prior close.
Start-of-day snapshot balances.
asof: Optional[date]
Timestamp for the start-of-day values. When a null/undefined value is observed, it indicates that there is no available data.
Deprecatedday_trade_buying_power: Optional[str]
Start-of-day day-trade buying power. When a null/undefined value is observed, it indicates it does not apply.
maintenance_margin_excess: Optional[str]
Start-of-day maintenance margin excess. When a null/undefined value is observed, it indicates it does not apply.
margin_details: Optional[MarginDetails]
Margin-account-only details. When a null/undefined value is observed, it indicates it does not apply.
Deprecatedday_trade_count: int
The number of day trades executed over the 5 most recent trading days.
Deprecatedpattern_day_trader: bool
true if the account is currently flagged as a PDT, otherwise false.
Deprecatedday_trade_buying_power_usage: Optional[str]
The amount of day-trade buying power used during the current trading day. When null/undefined, the value should be assumed to be zero. The field is omitted to simplify the response.
class AccountGetPortfolioHistoryResponse: …
day_pnl: Optional[str]
Sum of the profit and loss from intraday trading activities for the trading day.
net_pnl: Optional[str]
P&L after netting all realized and unrealized P&L, adjustments, dividends, change in accruals, income and expenses