Skip to main content

BalanceInfo

Package: velox.api.layer1.data

Type: Class

Inheritance: java.lang.Object รขโ€ โ€™ BalanceInfo

All Implemented Interfaces: MultiAccountAware

Descriptionโ€‹

Information about account balance in each currency

Nested Classesโ€‹

BalanceInfo.BalanceInCurrencyโ€‹

Information about account balance in specific currency

Fieldsโ€‹

accountNameโ€‹

@Deprecated
public final String accountName

Deprecated: because displayed name and account id should be set with AccountInfo. Use accountId instead.

Short name of an account, if known (displayed name)

accountIdโ€‹

public final String accountId

Account id to identify which account this balance info belongs to. Null if there is no multi-account support (only single account is supported by the data provider). Should not mix nulls and specific account infos in the same data provider.

balancesInCurrencyโ€‹

public final List<BalanceInfo.BalanceInCurrency> balancesInCurrency

List of balances (in each currency)

Constructorsโ€‹

BalanceInfoโ€‹

@Deprecated
public BalanceInfo(String accountName, List<BalanceInfo.BalanceInCurrency> balancesInCurrency)

Deprecated: because AccountInfo should be used instead of accountName. Use BalanceInfo(List, String) instead.

Avoid using it directly, use BalanceInfoBuilder instead

BalanceInfoโ€‹

public BalanceInfo(List<BalanceInfo.BalanceInCurrency> balancesInCurrency)

Avoid using it directly, use BalanceInfoBuilder instead

Methodsโ€‹

getTradingAccountIdโ€‹

public String getTradingAccountId()

Specified by: getTradingAccountId in interface MultiAccountAware

toStringโ€‹

public String toString()

Overrides: toString in class Object


Methods inherited from class java.lang.Object: clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait