Package com.qtsurfer.api.sdk
Enum Class SweepObjective
- All Implemented Interfaces:
Serializable,Comparable<SweepObjective>,Constable
The metric a sweep optimizes, and the one its leaderboard and its
sensitivity surfaces are read against.
One vocabulary throughout: the objective a SweepRequest is
submitted with is the objective the leaderboard is ranked by, and the one
Sweep.sensitivity() aggregates unless a different one is asked for.
-
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 SweepObjectiveReturns the enum constant of this class with the specified name.static SweepObjective[]values()Returns an array containing the constants of this enum class, in the order they are declared.wire()Internal: the value sent on the wire.
-
Enum Constant Details
-
SHARPE
Risk-adjusted return; the platform default when a request names none. -
SORTINO
Downside-risk-adjusted return. -
PNL
Absolute net profit and loss. -
MAXDD
Maximum drawdown.
-
-
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
-
wire
Internal: the value sent on the wire. Exposed so the SDK's own helpers can pass it through without re-encoding.- Returns:
- the wire token for this objective
-