Message: Balance

File: WebAPI/trading_account_2.proto

Description

Balance record for one of the accounts and one of the currencies (id is used as a key for updates). Values like OTE, UPL and MVO are from statements and won’t be updated in real time but after each next statement. Money related values are in the specified currency.

Note: Not all values for a balance record are provided by all statements, it is up to Brokerage to include such values and only currency and ending cash balance are required to be valid.

Used in

LastStatementBalancesReport

Fields

id

Type: sint32

Description: Surrogate id as a key for updates.

account_id

Type: sint32

Description: Account of this balance record.

statement_date

Type: sint64

Description: Statement date this balance is related.

currency

Type: string

Description: Currency code.

balance

Type: double

Description: Ending Cash Balance.

total_value

Type: double

Description: Total Account Value.

ote

Type: double

Description: Open Trade Equity for Futures and Futures-style Options.

upl

Type: double

Description: Unrealized Profit and Loss for premium-style Options and Fixed Income.

mvo

Type: double

Description: Market Value of premium-style Options and Fixed Income.

cash_excess

Type: double

Description: Cash Excess.

collateral

Type: double

Description: Collateral on Deposit.

initial_margin

Type: double

Description: Initial Margin Requirements.

deleted

Type: bool

Description: If true the balance should be removed from the balances snapshot.