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 Account:
Represents a trading account
class AccountBalances:
Represents the balance details for a trading account
String dailyUnrealizedPnl
Total unrealized profit or loss across all positions relative to prior close.
MarginType marginType
The applicable margin model for the account
Start-of-day snapshot balances.
Optional<LocalDate> asof
Timestamp for the start-of-day values. When a null/undefined value is observed, it indicates that there is no available data.
DeprecatedOptional<String> dayTradeBuyingPower
Start-of-day day-trade buying power. When a null/undefined value is observed, it indicates it does not apply.
Optional<String> maintenanceMarginExcess
Start-of-day maintenance margin excess. When a null/undefined value is observed, it indicates it does not apply.
Margin-account-only details. When a null/undefined value is observed, it indicates it does not apply.
Deprecatedlong dayTradeCount
The number of day trades executed over the 5 most recent trading days.
MarginSessionDetails intradayDetails
MarginSessionDetails overnightDetails
Deprecatedboolean patternDayTrader
true if the account is currently flagged as a PDT, otherwise false.
DeprecatedOptional<String> dayTradeBuyingPowerUsage
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:
Optional<LocalDate> asof
Timestamp for the start-of-day values. When a null/undefined value is observed, it indicates that there is no available data.
DeprecatedOptional<String> dayTradeBuyingPower
Start-of-day day-trade buying power. When a null/undefined value is observed, it indicates it does not apply.
Optional<String> maintenanceMarginExcess
Start-of-day maintenance margin excess. When a null/undefined value is observed, it indicates it does not apply.
class MarginDetails:
Deprecatedlong dayTradeCount
The number of day trades executed over the 5 most recent trading days.
MarginSessionDetails intradayDetails
MarginSessionDetails overnightDetails
Deprecatedboolean patternDayTrader
true if the account is currently flagged as a PDT, otherwise false.
DeprecatedOptional<String> dayTradeBuyingPowerUsage
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:
List<PortfolioHistorySegment> segments
Optional<String> dayPnl
Sum of the profit and loss from intraday trading activities for the trading day.
Optional<String> netPnl
P&L after netting all realized and unrealized P&L, adjustments, dividends, change in accruals, income and expenses
class PortfolioHistorySegment:
Optional<String> dayPnl
Sum of the profit and loss from intraday trading activities for the trading day.
Optional<String> netPnl
P&L after netting all realized and unrealized P&L, adjustments, dividends, change in accruals, income and expenses