Package com.qtsurfer.api.client.model
Enum Class LivePaperConfig.AccountsEnum
java.lang.Object
java.lang.Enum<LivePaperConfig.AccountsEnum>
com.qtsurfer.api.client.model.LivePaperConfig.AccountsEnum
- All Implemented Interfaces:
Serializable,Comparable<LivePaperConfig.AccountsEnum>,Constable
- Enclosing class:
- LivePaperConfig
How the run's accounts are split, fixed when it starts. `currency` (the default) is one shared account per quote currency: every instrument of a currency draws on the same balance, as on a venue with one wallet per asset. `instrument` is one isolated account per instrument, each a simulation of that instrument alone with its own `initialFunding`, which is what makes it comparable with a backtest of the instrument but less realistic, since a venue has one wallet per asset and not one per pair. It needs the instruments of the run named: a wildcard is refused, on every plan.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic LivePaperConfig.AccountsEnumgetValue()toString()static LivePaperConfig.AccountsEnumReturns the enum constant of this class with the specified name.static LivePaperConfig.AccountsEnum[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CURRENCY
-
INSTRUMENT
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
-
toString
- Overrides:
toStringin classEnum<LivePaperConfig.AccountsEnum>
-
fromValue
-