AccountSummary

Message from server to client, containing information about used funds in margin trading mode and wallets in spots trading.

AccountSummary message fields, Tag 35=UASR

Tag

Field Name

Required

Type

Comments

<Standard Header>

1

Account

Y

String

Related client identificator.

10101

SubAccountID

Y

Int

Sub-account identificator*

10102

AccountEnable

Y

Boolean

Flag indicating if Account / SubAccountID pair is enabled for trading.

10103

AccountModel

Y

String

"Margin" : model with single currency deposit, leverage and margin calls (e.g. for trading Futures).

"Wallet" : model with multiple wallets (e.g. for trading Spots).

10105

FundsOwned

Y (Margin)

Double

Account deposit used to open positions, apply profit and loss on positions close, and deduct commissions from.

10104

FundsFree

Y

(Margin)

Double

Amount of funds available to open new positions and increase opened amount.

10107

FundsInOrders

Y

(Margin)

Double

Amount of funds reserved by pending orders.

10106

FundsCurrency

Y

(Margin)

String

Currency of deposited funds (e.g. USD)

702

NoPositions

Y

(Margin)

Int

Number of opened positions.

>55

Symbol

Y

(Margin)

String

Position instrument name (e.g. BTC/USDT)

>1500

MDStreamID

Y

(Margin)

String

Feed / liquidity pool identificator. Positions of similar instruments are separate per pool.

>48

SecurityID

Y

(Margin)

Int

Internal identificator of instrument.

>708

PosAmt

Y

(Margin)

Double

Opened amount. Positive for BUY (long) positions and negative for SELL (short) positions.

>6

AvgPx

Y

(Margin)

Double

Average open price.

>10108

FloatingPnL

Y

(Margin)

Double

Floating profit/loss nominated in deposit currency.

>10109

ReservedFunds

Y

(Margin)

Double

Funds locked by opened position.

>10110

MarginCall

Y

(Margin)

Boolean

Flag indicating active margin call**

>10111

MarginCallTime

Y

(Margin)

String

Timetamp when margin call occured

78

NoAllocs

Y

(Margin)

Int

Number of currencies in wallet.

>15

Currency

Y

(Margin)

String

Currency name (e.g. BTC, ETH, USD, EUR, ...)

>53

Quantity

Y

(Margin)

Double

Currency amount. Negative value most likely indicating commissions are being deducted from currency not related to traded instrument.

On the SellSides platform, it is technically possible to arrange separate setups for credit limits and wallets, acting independently from each other (they just should have different symbols sets). SubAccountID is equal to internal "strategy" identificator on the SellSides platform, so different client accounts could have similar SubAccountID values in reports.

One Account could have SubAccountID of both modes: Margin and Spot Wallet.

For each instrument, platform owner may define MarginCallPercent (could be read by client from SecurityList message). When relative loss is more than defined value, position will be closed by system automatically. MarginCall flag is active (=1) only during closing phase, and once position is closed, this flag is back to "0". MarginCall formula for position is following:

100 * FloatingPnL / ReservedFunds <= -1 * MarginCallPercent

Last updated