Accounts
Manage trading accounts, balances, and portfolio history.
Get Accounts
Get Account By ID
Patch Account By ID
Get Account Balances
Get Portfolio History
List non-trade activities
ModelsExpand Collapse
class Account:
Represents a trading account
AccountHolderEntityKind accountHolderEntityKind
AccountStatus status
AccountSubtype subtype
AccountType type
class AccountBalances:
Represents the balance details for a trading account
String buyingPower
The total buying power available in the account: base buying power plus the open order adjustment, where base buying power is maintenance margin excess times the multiplier for intraday and overnight margin excess times the multiplier for overnight.
MarginSession currentSession
String dailyUnrealizedPnl
Total unrealized profit or loss across all positions relative to prior close.
String equity
The total equity in the account: cash plus long market value plus short market value, where short market value is negative.
MarginType marginType
The applicable margin model for the account
String openOrderAdjustment
Buying power correction from open orders, computed as projected buying power minus actual buying power. A negative value means open orders are consuming buying power.
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.
Optional<String> maintenanceMarginExcess
Start-of-day maintenance margin excess: the difference between equity and the maintenance margin requirement. 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.
MarginSessionDetails intradayDetails
Intraday session margin calculation details.
MarginSessionDetails overnightDetails
Overnight session margin calculation details.
Optional<String> multiplier
Margin multiplier: 4 during intraday sessions (pre-market, regular, and after-hours) and 2 during the overnight session. When a null/undefined value is observed, it indicates it does not apply.
Optional<String> shortMarketValue
The total market value of all short positions. 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.
Optional<String> maintenanceMarginExcess
Start-of-day maintenance margin excess: the difference between equity and the maintenance margin requirement. When a null/undefined value is observed, it indicates it does not apply.
class AccountWithPersonalDetails:
Represents a trading account
AccountHolderEntityKind accountHolderEntityKind
AccountStatus status
AccountSubtype subtype
AccountType type
Optional<LocalDate> closeDate
The date the account was closed, if applicable When a null/undefined value is observed, it indicates it does not apply.
Optional<String> countryOfTaxResidency
The country of tax residency of the account-holder entity. null
when not on file or entity reference data is unavailable.
When a null/undefined value is observed, it indicates that there is no available data.
Optional<LocalDate> dateOfBirth
The date of birth of the account holder’s primary contact. null
when not on file or entity reference data is unavailable.
When a null/undefined value is observed, it indicates that there is no available data.
The mailing address of the account-holder entity. null when no
mailing address is on file or entity reference data is unavailable.
When a null/undefined value is observed, it indicates that there is no available data.
class MarginDetails:
MarginSessionDetails intradayDetails
Intraday session margin calculation details.
MarginSessionDetails overnightDetails
Overnight session margin calculation details.
class MarginSessionDetails:
class NonTradeActivity:
ActivityType activityType
LocalDateTime createdAt
The creation time at UTC, when this activity became part of the ledger
SecurityType instrumentType
ActivityState state
Optional<String> cancelledReferenceId
Reference ID for the record that is being cancelled. Present only on records where the activity state is ‘cancelled’. The contents of this fields points at the reference_id of the original record that is being cancelled by this record.
Optional<String> instrumentId
Instrument identifier. Omitted when the activity has no single resolvable instrument.
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