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 Details

    • TwapStrategy

      public TwapStrategy()
    • TwapStrategy

      public TwapStrategy(String maxDuration, String minSliceDuration)
      Constructor with only required parameters
  • Method Details

    • enabled

      public TwapStrategy enabled(Boolean enabled)
    • getEnabled

      public Boolean getEnabled()
      Whether the user can trade this strategy
      Returns:
      enabled
    • setEnabled

      public void setEnabled(Boolean enabled)
    • maxDuration

      public TwapStrategy maxDuration(String maxDuration)
    • getMaxDuration

      @NotNull public @NotNull String getMaxDuration()
      The maximum duration that a strategy can run.
      Returns:
      maxDuration
    • setMaxDuration

      public void setMaxDuration(String maxDuration)
    • minSliceDuration

      public TwapStrategy minSliceDuration(String minSliceDuration)
    • getMinSliceDuration

      @NotNull public @NotNull String 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

      public void setMinSliceDuration(String minSliceDuration)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object