Enum Class Liquidity
- All Implemented Interfaces:
Serializable, Comparable<Liquidity>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringBacktest-internal signal property key carrying theLiquiditya resolved pending order fills with — set on the market-order fill copy the pending-order resolver builds (MAKER for a triggered limit, absent otherwise) and read byBacktestMarketBuyExecutor/BacktestMarketSellExecutor. -
Method Summary
Modifier and TypeMethodDescriptionstatic LiquidityResolves the liquidity hint from a signal property value, defaulting toTAKERwhen absent (byte-identical to the pre-P3 hardcoded routing) or of an unexpected type.static LiquidityReturns the enum constant of this class with the specified name.static Liquidity[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MAKER
-
TAKER
-
-
Field Details
-
SIGNAL_KEY
Backtest-internal signal property key carrying theLiquiditya resolved pending order fills with — set on the market-order fill copy the pending-order resolver builds (MAKER for a triggered limit, absent otherwise) and read byBacktestMarketBuyExecutor/BacktestMarketSellExecutor. Never set on a strategy-authored signal and never read by live code.- See Also:
-
-
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
-
resolve
Resolves the liquidity hint from a signal property value, defaulting toTAKERwhen absent (byte-identical to the pre-P3 hardcoded routing) or of an unexpected type.- Parameters:
hintValue- the raw value ofSIGNAL_KEYon the signal, ornull- Returns:
- the hinted liquidity, or
TAKERwhen unset
-