Class TwapStrategy
java.lang.Object
com.caplin.motif.fx.config.definitions.client.TwapStrategy
@Generated(value="org.openapitools.codegen.languages.SpringCodegen",
comments="Generator version: 7.4.0")
public class TwapStrategy
extends Object
TwapStrategy
-
Constructor Summary
ConstructorsConstructorDescriptionTwapStrategy(String maxDuration, String minSliceDuration) Constructor with only required parameters -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether the user can trade this strategy@NotNull StringThe maximum duration that a strategy can run.@NotNull StringThe minimum duration that the slices can be active for.inthashCode()maxDuration(String maxDuration) minSliceDuration(String minSliceDuration) voidsetEnabled(Boolean enabled) voidsetMaxDuration(String maxDuration) voidsetMinSliceDuration(String minSliceDuration) toString()
-
Constructor Details
-
TwapStrategy
public TwapStrategy() -
TwapStrategy
Constructor with only required parameters
-
-
Method Details
-
enabled
-
getEnabled
Whether the user can trade this strategy- Returns:
- enabled
-
setEnabled
-
maxDuration
-
getMaxDuration
The maximum duration that a strategy can run.- Returns:
- maxDuration
-
setMaxDuration
-
minSliceDuration
-
getMinSliceDuration
The minimum duration that the slices can be active for. The maximum number of slices can be calculated by maxDuration/minSliceDuration, rounded down.- Returns:
- minSliceDuration
-
setMinSliceDuration
-
equals
-
hashCode
public int hashCode() -
toString
-