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
AccountBalances object { account_id, buying_power, currency, 19 more }
Represents the balance details for a trading account
daily_unrealized_pnl: string
Total unrealized profit or loss across all positions relative to prior close.
Start-of-day snapshot balances.
asof: optional string
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 string
Start-of-day day-trade buying power. When a null/undefined value is observed, it indicates it does not apply.
maintenance_margin_excess: optional string
Start-of-day maintenance margin excess. When a null/undefined value is observed, it indicates it does not apply.
margin_details: optional MarginDetails { day_trade_count, initial_margin_excess, initial_margin_requirement, 8 more }
Margin-account-only details. When a null/undefined value is observed, it indicates it does not apply.
Deprecatedday_trade_count: number
The number of day trades executed over the 5 most recent trading days.
Deprecatedpattern_day_trader: boolean
true if the account is currently flagged as a PDT, otherwise false.
Deprecatedday_trade_buying_power_usage: optional string
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.
top_contributors: optional array of MarginTopContributor { day_trade_buying_power_usage, initial_margin_requirement, maintenance_margin_requirement, 2 more }
Optional top margin contributors, returned only when explicitly requested.
AccountBalancesSod object { buying_power, equity, long_market_value, 6 more }
asof: optional string
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 string
Start-of-day day-trade buying power. When a null/undefined value is observed, it indicates it does not apply.
maintenance_margin_excess: optional string
Start-of-day maintenance margin excess. When a null/undefined value is observed, it indicates it does not apply.
MarginDetails object { day_trade_count, initial_margin_excess, initial_margin_requirement, 8 more }
Deprecatedday_trade_count: number
The number of day trades executed over the 5 most recent trading days.
Deprecatedpattern_day_trader: boolean
true if the account is currently flagged as a PDT, otherwise false.
Deprecatedday_trade_buying_power_usage: optional string
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.
top_contributors: optional array of MarginTopContributor { day_trade_buying_power_usage, initial_margin_requirement, maintenance_margin_requirement, 2 more }
Optional top margin contributors, returned only when explicitly requested.
MarginTopContributor object { day_trade_buying_power_usage, initial_margin_requirement, maintenance_margin_requirement, 2 more }
PortfolioHistoryResponse object { segments }
day_pnl: optional string
Sum of the profit and loss from intraday trading activities for the trading day.
net_pnl: optional string
P&L after netting all realized and unrealized P&L, adjustments, dividends, change in accruals, income and expenses
PortfolioHistorySegment object { date, eod_equity, realized_pnl, 7 more }
day_pnl: optional string
Sum of the profit and loss from intraday trading activities for the trading day.
net_pnl: optional string
P&L after netting all realized and unrealized P&L, adjustments, dividends, change in accruals, income and expenses
Represents the balance details for a trading account
daily_unrealized_pnl: string
Total unrealized profit or loss across all positions relative to prior close.
Start-of-day snapshot balances.
asof: optional string
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 string
Start-of-day day-trade buying power. When a null/undefined value is observed, it indicates it does not apply.
maintenance_margin_excess: optional string
Start-of-day maintenance margin excess. When a null/undefined value is observed, it indicates it does not apply.
margin_details: optional MarginDetails { day_trade_count, initial_margin_excess, initial_margin_requirement, 8 more }
Margin-account-only details. When a null/undefined value is observed, it indicates it does not apply.
Deprecatedday_trade_count: number
The number of day trades executed over the 5 most recent trading days.
Deprecatedpattern_day_trader: boolean
true if the account is currently flagged as a PDT, otherwise false.
Deprecatedday_trade_buying_power_usage: optional string
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.
top_contributors: optional array of MarginTopContributor { day_trade_buying_power_usage, initial_margin_requirement, maintenance_margin_requirement, 2 more }
Optional top margin contributors, returned only when explicitly requested.
day_pnl: optional string
Sum of the profit and loss from intraday trading activities for the trading day.
net_pnl: optional string
P&L after netting all realized and unrealized P&L, adjustments, dividends, change in accruals, income and expenses