Package velox.api.layer1.data
Class AccountInfo
java.lang.Object
velox.api.layer1.data.AccountInfo
Information about account
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal StringUnique identifier for the account.final booleanIf true used as a default account, when the strategy is not aware of multi-account data providers.final StringProgrammatic name (unique internal provider identifier) of the provider this account belongs to.final StringSummary string, containing account name. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
id
Unique identifier for the account. Must uniquely identify the account among all the providers (so provider should form the id to contain provider-specific prefix or suffix). -
summary
Summary string, containing account name. Is used as a display name for the account. -
providerProgrammaticName
Programmatic name (unique internal provider identifier) of the provider this account belongs to. Unique among all the providers. UseProviderTypeHelperto get to short name or user name by provider programmatic name (e.g. EXT:velox.api.layer0.adapters.BinanceProvider -> "Binance"/"BN")
Note for the provider developer: this field is set by the Bookmap itself, and should not be set by the provider. (if it is set by the provider, it will be overwritten by the Bookmap anyway) -
isPrimary
public final boolean isPrimaryIf true used as a default account, when the strategy is not aware of multi-account data providers. At least one account should be marked as primary, to be able to retrieve any data from the data provider. Data for non-primary accounts is send to the strategy only if it hasLayer1MultiAccountTradingSupportedannotation, or if such data has no account specified (i.e. AccountInfo is null). Usually primary account is the account selected withSelectAccountMessage- decided by data provider for strategies that not aware of multi-accounts.
-
-
Constructor Details
-
AccountInfo
Deprecated.useAccountInfo(String, String, String, boolean)instead. Deprecated because id is supposed to be unique and should not be used as a summary (displayed name).- Parameters:
id- account id (unique identifier for the account). Used both for id and summary.
-
-
Method Details
AccountInfo(String, String, String, boolean)instead.