Skip to content
Start Trading

Accounts

Manage trading accounts, balances, and portfolio history.

Get Accounts
client.V1.Accounts.GetAccounts(ctx, query) (*V1AccountGetAccountsResponse, error)
GET/v1/accounts
Get Account By ID
client.V1.Accounts.GetAccountByID(ctx, accountID) (*V1AccountGetAccountByIDResponse, error)
GET/v1/accounts/{account_id}
Patch Account By ID
client.V1.Accounts.PatchAccountByID(ctx, accountID, body) (*V1AccountPatchAccountByIDResponse, error)
PATCH/v1/accounts/{account_id}
Get Account Balances
client.V1.Accounts.GetAccountBalances(ctx, accountID, query) (*V1AccountGetAccountBalancesResponse, error)
GET/v1/accounts/{account_id}/balances
Get Portfolio History
client.V1.Accounts.GetPortfolioHistory(ctx, accountID, query) (*V1AccountGetPortfolioHistoryResponse, error)
GET/v1/accounts/{account_id}/portfolio-history
List non-trade activities
client.V1.Accounts.GetNonTradeActivities(ctx, accountID, query) (*V1AccountGetNonTradeActivitiesResponse, error)
GET/v1/accounts/{account_id}/non-trade-activities
ModelsExpand Collapse
type Account struct{…}

Represents a trading account

ID int64

The unique identifier for the account

formatint64
AccountHolderEntityID int64

The account holder entity identifier

formatint64
AccountHolderEntityKind AccountHolderEntityKind

Whether the account holder is a natural person or a legal entity.

One of the following:
const AccountHolderEntityKindNaturalPerson AccountHolderEntityKind = "NATURAL_PERSON"
const AccountHolderEntityKindLegalEntity AccountHolderEntityKind = "LEGAL_ENTITY"
const AccountHolderEntityKindOther AccountHolderEntityKind = "OTHER"
FullName string

The full legal name of the account

OpenDate Time

The date the account was opened

formatdate
OptionsLevel int64

The options level of the account

formatint64
ShortName string

The short name of the account

The current status of the account

One of the following:
const AccountStatusActive AccountStatus = "ACTIVE"
const AccountStatusInactive AccountStatus = "INACTIVE"
const AccountStatusClosed AccountStatus = "CLOSED"

The sub-type of account

One of the following:
const AccountSubtypeCash AccountSubtype = "CASH"
const AccountSubtypeMargin AccountSubtype = "MARGIN"
const AccountSubtypeOther AccountSubtype = "OTHER"

The type of account

One of the following:
const AccountTypeCustomer AccountType = "CUSTOMER"
const AccountTypeOther AccountType = "OTHER"
CloseDate TimeOptional

The date the account was closed, if applicable When a null/undefined value is observed, it indicates it does not apply.

formatdate
type AccountBalances struct{…}

Represents the balance details for a trading account

AccountID int64

The unique identifier for the account

formatint64
BuyingPower string

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.

Currency string

Currency identifier for all monetary values.

CurrentSession MarginSession

The session whose values the engine is applying to these balances. buying_power, multiplier, and margin_details.usage reflect this session. A closed market reports overnight.

One of the following:
const MarginSessionIntraday MarginSession = "intraday"
const MarginSessionOvernight MarginSession = "overnight"
DailyChange string

Difference between current equity and start-of-day equity.

DailyPnl string

Total profit or loss since start of day.

DailyRealizedPnl string

Realized profit or loss since start of day.

DailyUnrealizedPnl string

Total unrealized profit or loss across all positions relative to prior close.

Equity string

The total equity in the account: cash plus long market value plus short market value, where short market value is negative.

LongMarketValue string

The total market value of all long positions.

MarginType MarginType

The applicable margin model for the account

One of the following:
const MarginTypeOther MarginType = "OTHER"
const MarginTypeNone MarginType = "NONE"
const MarginTypePortfolioMargin MarginType = "PORTFOLIO_MARGIN"
const MarginTypeRiskBasedHaircutBrokerDealer MarginType = "RISK_BASED_HAIRCUT_BROKER_DEALER"
const MarginTypeRegT MarginType = "REG_T"
const MarginTypeRiskBasedHaircutMarketMaker MarginType = "RISK_BASED_HAIRCUT_MARKET_MAKER"
const MarginTypeCiro MarginType = "CIRO"
const MarginTypeFuturesNlv MarginType = "FUTURES_NLV"
const MarginTypeFuturesTotEq MarginType = "FUTURES_TOT_EQ"
OpenOrderAdjustment string

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.

SettledCash string

The amount of cash that is settled and available for withdrawal or trading.

Start-of-day snapshot balances.

BuyingPower string

Start-of-day buying power.

Equity string

Start-of-day equity.

LongMarketValue string

Start-of-day long market value.

ShortMarketValue string

Start-of-day short market value.

Asof TimeOptional

Timestamp for the start-of-day values. When a null/undefined value is observed, it indicates that there is no available data.

formatdate
MaintenanceMarginExcess stringOptional

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.

MaintenanceMarginRequirement stringOptional

Start-of-day maintenance margin requirement: the amount of equity required to maintain current positions. When a null/undefined value is observed, it indicates it does not apply.

TradeCash stringOptional

Start-of-day trade cash. When a null/undefined value is observed, it indicates it does not apply.

TradeCash string

Trade-date effective cash.

UnrealizedPnl string

Total unrealized profit or loss across all open positions.

UnsettledCredits string

Trade-date unsettled cash credits.

UnsettledDebits string

Trade-date unsettled cash debits.

WithdrawableCash string

The amount of cash currently available to withdraw.

MarginDetails MarginDetailsOptional

Margin-account-only details. When a null/undefined value is observed, it indicates it does not apply.

InitialMarginExcess string

The difference between equity and the initial margin requirement.

InitialMarginRequirement string

The amount of equity required to open new positions.

IntradayDetails MarginSessionDetails

Intraday session margin calculation details.

BuyingPower string

Maximum buying power available in the account during the session: 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.

Multiplier stringOptional

Margin multiplier for the session: 4 during intraday sessions (pre-market, regular, and after-hours) and 2 during the overnight session.

MaintenanceMarginExcess string

The difference between equity and the maintenance margin requirement.

MaintenanceMarginRequirement string

The amount of equity required to maintain current positions.

OvernightDetails MarginSessionDetails

Overnight session margin calculation details.

BuyingPower string

Maximum buying power available in the account during the session: 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.

Multiplier stringOptional

Margin multiplier for the session: 4 during intraday sessions (pre-market, regular, and after-hours) and 2 during the overnight session.

OvernightMarginExcess string

The difference between equity and the overnight margin requirement.

OvernightMarginRequirement string

The amount of equity required to hold current positions overnight.

TopContributors []MarginTopContributorOptional

Optional top margin contributors, returned only when explicitly requested.

InitialMarginRequirement string

Initial margin requirement attributable to this underlying.

MaintenanceMarginRequirement string

Maintenance margin requirement attributable to this underlying.

MarketValue string

Net market value attributable to this underlying.

OvernightMarginRequirement string

Overnight margin requirement attributable to this underlying.

UnderlyingInstrumentID string

UUID of the underlying security contributing to margin requirement.

formatuuid
Usage MarginDetailsUsageOptional

Current usage totals. When a null/undefined value is observed, it indicates that there is no available data.

Total string

The total margin available in the current model.

Used string

The amount of margin that is currently being utilized.

Multiplier stringOptional

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.

ShortMarketValue stringOptional

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.

Sma AccountBalancesSmaOptional

The intraday special memorandum account (SMA) of the account holder. Omitted when no SMA is available for the current trade date, or when the account holder has more than one open account. When a null/undefined value is observed, it indicates that there is no available data.

Asof Time

The time the SMA was calculated as of (UTC). During a trade date the API returns the last published value, so use this time to judge how current the value is.

formatdate-time
Value string

The SMA amount in the account currency. The value can be negative.

type AccountBalancesSma struct{…}

The intraday special memorandum account (SMA) of an account holder.

The SMA belongs to the account holder, not to one account. The API returns it only when the account holder has a single open account.

Asof Time

The time the SMA was calculated as of (UTC). During a trade date the API returns the last published value, so use this time to judge how current the value is.

formatdate-time
Value string

The SMA amount in the account currency. The value can be negative.

type AccountBalancesSod struct{…}
BuyingPower string

Start-of-day buying power.

Equity string

Start-of-day equity.

LongMarketValue string

Start-of-day long market value.

ShortMarketValue string

Start-of-day short market value.

Asof TimeOptional

Timestamp for the start-of-day values. When a null/undefined value is observed, it indicates that there is no available data.

formatdate
MaintenanceMarginExcess stringOptional

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.

MaintenanceMarginRequirement stringOptional

Start-of-day maintenance margin requirement: the amount of equity required to maintain current positions. When a null/undefined value is observed, it indicates it does not apply.

TradeCash stringOptional

Start-of-day trade cash. When a null/undefined value is observed, it indicates it does not apply.

type AccountHolderEntityKind string

Whether an account holder is a natural person or a legal entity.

One of the following:
const AccountHolderEntityKindNaturalPerson AccountHolderEntityKind = "NATURAL_PERSON"
const AccountHolderEntityKindLegalEntity AccountHolderEntityKind = "LEGAL_ENTITY"
const AccountHolderEntityKindOther AccountHolderEntityKind = "OTHER"
type AccountList []Account
ID int64

The unique identifier for the account

formatint64
AccountHolderEntityID int64

The account holder entity identifier

formatint64
AccountHolderEntityKind AccountHolderEntityKind

Whether the account holder is a natural person or a legal entity.

One of the following:
const AccountHolderEntityKindNaturalPerson AccountHolderEntityKind = "NATURAL_PERSON"
const AccountHolderEntityKindLegalEntity AccountHolderEntityKind = "LEGAL_ENTITY"
const AccountHolderEntityKindOther AccountHolderEntityKind = "OTHER"
FullName string

The full legal name of the account

OpenDate Time

The date the account was opened

formatdate
OptionsLevel int64

The options level of the account

formatint64
ShortName string

The short name of the account

The current status of the account

One of the following:
const AccountStatusActive AccountStatus = "ACTIVE"
const AccountStatusInactive AccountStatus = "INACTIVE"
const AccountStatusClosed AccountStatus = "CLOSED"

The sub-type of account

One of the following:
const AccountSubtypeCash AccountSubtype = "CASH"
const AccountSubtypeMargin AccountSubtype = "MARGIN"
const AccountSubtypeOther AccountSubtype = "OTHER"

The type of account

One of the following:
const AccountTypeCustomer AccountType = "CUSTOMER"
const AccountTypeOther AccountType = "OTHER"
CloseDate TimeOptional

The date the account was closed, if applicable When a null/undefined value is observed, it indicates it does not apply.

formatdate
type AccountSettings struct{…}
Risk RiskSettingsOptional

Risk settings for the account When a null/undefined value is observed, it indicates that there is no available data.

MaxNotional stringOptional

The maximum notional value available to the account. On update, a value must be 0 or greater, null clears the limit, and omitting the field leaves the limit unchanged. When a null/undefined value is observed, it indicates that there is no available data.

type AccountStatus string

Account status

One of the following:
const AccountStatusActive AccountStatus = "ACTIVE"
const AccountStatusInactive AccountStatus = "INACTIVE"
const AccountStatusClosed AccountStatus = "CLOSED"
type AccountSubtype string

Account subtype classification providing more granular categorization

One of the following:
const AccountSubtypeCash AccountSubtype = "CASH"
const AccountSubtypeMargin AccountSubtype = "MARGIN"
const AccountSubtypeOther AccountSubtype = "OTHER"
type AccountType string

Account type classification

One of the following:
const AccountTypeCustomer AccountType = "CUSTOMER"
const AccountTypeOther AccountType = "OTHER"
type AccountWithPersonalDetails struct{…}

Represents a trading account

ID int64

The unique identifier for the account

formatint64
AccountHolderEntityID int64

The account holder entity identifier

formatint64
AccountHolderEntityKind AccountHolderEntityKind

Whether the account holder is a natural person or a legal entity.

One of the following:
const AccountHolderEntityKindNaturalPerson AccountHolderEntityKind = "NATURAL_PERSON"
const AccountHolderEntityKindLegalEntity AccountHolderEntityKind = "LEGAL_ENTITY"
const AccountHolderEntityKindOther AccountHolderEntityKind = "OTHER"
FullName string

The full legal name of the account

OpenDate Time

The date the account was opened

formatdate
OptionsLevel int64

The options level of the account

formatint64
ShortName string

The short name of the account

The current status of the account

One of the following:
const AccountStatusActive AccountStatus = "ACTIVE"
const AccountStatusInactive AccountStatus = "INACTIVE"
const AccountStatusClosed AccountStatus = "CLOSED"

The sub-type of account

One of the following:
const AccountSubtypeCash AccountSubtype = "CASH"
const AccountSubtypeMargin AccountSubtype = "MARGIN"
const AccountSubtypeOther AccountSubtype = "OTHER"

The type of account

One of the following:
const AccountTypeCustomer AccountType = "CUSTOMER"
const AccountTypeOther AccountType = "OTHER"
CloseDate TimeOptional

The date the account was closed, if applicable When a null/undefined value is observed, it indicates it does not apply.

formatdate
CountryOfTaxResidency stringOptional

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.

DateOfBirth TimeOptional

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.

formatdate
MailingAddress AddressOptional

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.

City string

City

Country string

Country

Line1 string

First street address line

PostalCode string

Postal code

Line2 stringOptional

Second street address line When a null/undefined value is observed, it indicates it does not apply.

State stringOptional

State or province When a null/undefined value is observed, it indicates it does not apply.

PhoneNumber stringOptional

The phone number 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.

type ActivityState string

The states exposed by this endpoint.

One of the following:
const ActivityStateSettled ActivityState = "settled"
const ActivityStateCancelled ActivityState = "cancelled"
type ActivityType string

Type of an activity.

One of the following:
const ActivityTypeMoneyMovement ActivityType = "money_movement"
const ActivityTypeInterest ActivityType = "interest"
const ActivityTypeFee ActivityType = "fee"
const ActivityTypeDividend ActivityType = "dividend"
const ActivityTypeOptionEvent ActivityType = "option_event"
const ActivityTypeTransfer ActivityType = "transfer"
const ActivityTypeCorporateAction ActivityType = "corporate_action"
const ActivityTypeTaxWithholding ActivityType = "tax_withholding"
const ActivityTypeAdjustment ActivityType = "adjustment"
const ActivityTypeOther ActivityType = "other"
type Address struct{…}

A postal address.

City string

City

Country string

Country

Line1 string

First street address line

PostalCode string

Postal code

Line2 stringOptional

Second street address line When a null/undefined value is observed, it indicates it does not apply.

State stringOptional

State or province When a null/undefined value is observed, it indicates it does not apply.

type MarginDetails struct{…}
InitialMarginExcess string

The difference between equity and the initial margin requirement.

InitialMarginRequirement string

The amount of equity required to open new positions.

IntradayDetails MarginSessionDetails

Intraday session margin calculation details.

BuyingPower string

Maximum buying power available in the account during the session: 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.

Multiplier stringOptional

Margin multiplier for the session: 4 during intraday sessions (pre-market, regular, and after-hours) and 2 during the overnight session.

MaintenanceMarginExcess string

The difference between equity and the maintenance margin requirement.

MaintenanceMarginRequirement string

The amount of equity required to maintain current positions.

OvernightDetails MarginSessionDetails

Overnight session margin calculation details.

BuyingPower string

Maximum buying power available in the account during the session: 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.

Multiplier stringOptional

Margin multiplier for the session: 4 during intraday sessions (pre-market, regular, and after-hours) and 2 during the overnight session.

OvernightMarginExcess string

The difference between equity and the overnight margin requirement.

OvernightMarginRequirement string

The amount of equity required to hold current positions overnight.

TopContributors []MarginTopContributorOptional

Optional top margin contributors, returned only when explicitly requested.

InitialMarginRequirement string

Initial margin requirement attributable to this underlying.

MaintenanceMarginRequirement string

Maintenance margin requirement attributable to this underlying.

MarketValue string

Net market value attributable to this underlying.

OvernightMarginRequirement string

Overnight margin requirement attributable to this underlying.

UnderlyingInstrumentID string

UUID of the underlying security contributing to margin requirement.

formatuuid
Usage MarginDetailsUsageOptional

Current usage totals. When a null/undefined value is observed, it indicates that there is no available data.

Total string

The total margin available in the current model.

Used string

The amount of margin that is currently being utilized.

type MarginDetailsUsage struct{…}
Total string

The total margin available in the current model.

Used string

The amount of margin that is currently being utilized.

type MarginSession string

The margin session applied to an account’s balances.

One of the following:
const MarginSessionIntraday MarginSession = "intraday"
const MarginSessionOvernight MarginSession = "overnight"
type MarginSessionDetails struct{…}
BuyingPower string

Maximum buying power available in the account during the session: 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.

Multiplier stringOptional

Margin multiplier for the session: 4 during intraday sessions (pre-market, regular, and after-hours) and 2 during the overnight session.

type MarginTopContributor struct{…}
InitialMarginRequirement string

Initial margin requirement attributable to this underlying.

MaintenanceMarginRequirement string

Maintenance margin requirement attributable to this underlying.

MarketValue string

Net market value attributable to this underlying.

OvernightMarginRequirement string

Overnight margin requirement attributable to this underlying.

UnderlyingInstrumentID string

UUID of the underlying security contributing to margin requirement.

formatuuid
type MarginType string

An account’s margin type

One of the following:
const MarginTypeOther MarginType = "OTHER"
const MarginTypeNone MarginType = "NONE"
const MarginTypePortfolioMargin MarginType = "PORTFOLIO_MARGIN"
const MarginTypeRiskBasedHaircutBrokerDealer MarginType = "RISK_BASED_HAIRCUT_BROKER_DEALER"
const MarginTypeRegT MarginType = "REG_T"
const MarginTypeRiskBasedHaircutMarketMaker MarginType = "RISK_BASED_HAIRCUT_MARKET_MAKER"
const MarginTypeCiro MarginType = "CIRO"
const MarginTypeFuturesNlv MarginType = "FUTURES_NLV"
const MarginTypeFuturesTotEq MarginType = "FUTURES_TOT_EQ"
type NonTradeActivity struct{…}
ID string

ID for the activity, in UUID-v7 format.

formatuuid
AccountID string

Account ID

ActivitySubtype string

Subtype within its activity_type.

ActivityType ActivityType

Categorization for the activity.

One of the following:
const ActivityTypeMoneyMovement ActivityType = "money_movement"
const ActivityTypeInterest ActivityType = "interest"
const ActivityTypeFee ActivityType = "fee"
const ActivityTypeDividend ActivityType = "dividend"
const ActivityTypeOptionEvent ActivityType = "option_event"
const ActivityTypeTransfer ActivityType = "transfer"
const ActivityTypeCorporateAction ActivityType = "corporate_action"
const ActivityTypeTaxWithholding ActivityType = "tax_withholding"
const ActivityTypeAdjustment ActivityType = "adjustment"
const ActivityTypeOther ActivityType = "other"
Amount string

Cash amount change.

CreatedAt Time

The creation time at UTC, when this activity became part of the ledger

formatdate-time
Currency string

Currency of the cash amount. Always USD for now.

EffectiveDate Time

Effective date for the activity

formatdate
InstrumentType SecurityType

The security type.

One of the following:
const SecurityTypeCommonStock SecurityType = "COMMON_STOCK"
const SecurityTypeIndex SecurityType = "INDEX"
const SecurityTypeOption SecurityType = "OPTION"
const SecurityTypeCash SecurityType = "CASH"
Memo string

Memo

Qty string

Quantity change in the instrument.

State for this activity.

One of the following:
const ActivityStateSettled ActivityState = "settled"
const ActivityStateCancelled ActivityState = "cancelled"
CancelledReferenceID stringOptional

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.

InstrumentID stringOptional

Instrument identifier. Omitted when the activity has no single resolvable instrument.

formatuuid
ReferenceID stringOptional

Reference ID for the activity, in ULID format. Present only on records where activity state is ‘settled’. When a activity is cancelled, the cancelation record is pointing at this reference_id.

Symbol stringOptional

Symbol of the instrument. Omitted when the activity has no single resolvable instrument.

type NonTradeActivityList []NonTradeActivity
ID string

ID for the activity, in UUID-v7 format.

formatuuid
AccountID string

Account ID

ActivitySubtype string

Subtype within its activity_type.

ActivityType ActivityType

Categorization for the activity.

One of the following:
const ActivityTypeMoneyMovement ActivityType = "money_movement"
const ActivityTypeInterest ActivityType = "interest"
const ActivityTypeFee ActivityType = "fee"
const ActivityTypeDividend ActivityType = "dividend"
const ActivityTypeOptionEvent ActivityType = "option_event"
const ActivityTypeTransfer ActivityType = "transfer"
const ActivityTypeCorporateAction ActivityType = "corporate_action"
const ActivityTypeTaxWithholding ActivityType = "tax_withholding"
const ActivityTypeAdjustment ActivityType = "adjustment"
const ActivityTypeOther ActivityType = "other"
Amount string

Cash amount change.

CreatedAt Time

The creation time at UTC, when this activity became part of the ledger

formatdate-time
Currency string

Currency of the cash amount. Always USD for now.

EffectiveDate Time

Effective date for the activity

formatdate
InstrumentType SecurityType

The security type.

One of the following:
const SecurityTypeCommonStock SecurityType = "COMMON_STOCK"
const SecurityTypeIndex SecurityType = "INDEX"
const SecurityTypeOption SecurityType = "OPTION"
const SecurityTypeCash SecurityType = "CASH"
Memo string

Memo

Qty string

Quantity change in the instrument.

State for this activity.

One of the following:
const ActivityStateSettled ActivityState = "settled"
const ActivityStateCancelled ActivityState = "cancelled"
CancelledReferenceID stringOptional

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.

InstrumentID stringOptional

Instrument identifier. Omitted when the activity has no single resolvable instrument.

formatuuid
ReferenceID stringOptional

Reference ID for the activity, in ULID format. Present only on records where activity state is ‘settled’. When a activity is cancelled, the cancelation record is pointing at this reference_id.

Symbol stringOptional

Symbol of the instrument. Omitted when the activity has no single resolvable instrument.

type PortfolioHistoryResponse struct{…}
Date Time

The date for this segment

formatdate
EodEquity string

The equity at the end of the trading day.

RealizedPnl string

Sum of the profit and loss realized from position closing trading activity.

SodEquity string

The equity at the start of the trading day.

UnrealizedPnl string

Sum of the profit and loss from market changes.

BoughtNotional stringOptional

Amount bought MTM

DayPnl stringOptional

Sum of the profit and loss from intraday trading activities for the trading day.

NetPnl stringOptional

P&L after netting all realized and unrealized P&L, adjustments, dividends, change in accruals, income and expenses

PositionPnl stringOptional

P&L attributable to start-of-day (carried) positions from market movement during this trading day.

SoldNotional stringOptional

Amount sold MTM

type PortfolioHistorySegment struct{…}
Date Time

The date for this segment

formatdate
EodEquity string

The equity at the end of the trading day.

RealizedPnl string

Sum of the profit and loss realized from position closing trading activity.

SodEquity string

The equity at the start of the trading day.

UnrealizedPnl string

Sum of the profit and loss from market changes.

BoughtNotional stringOptional

Amount bought MTM

DayPnl stringOptional

Sum of the profit and loss from intraday trading activities for the trading day.

NetPnl stringOptional

P&L after netting all realized and unrealized P&L, adjustments, dividends, change in accruals, income and expenses

PositionPnl stringOptional

P&L attributable to start-of-day (carried) positions from market movement during this trading day.

SoldNotional stringOptional

Amount sold MTM

type RiskSettings struct{…}

Risk settings for an account

MaxNotional stringOptional

The maximum notional value available to the account. On update, a value must be 0 or greater, null clears the limit, and omitting the field leaves the limit unchanged. When a null/undefined value is observed, it indicates that there is no available data.