Class StrategySummary

java.lang.Object
com.qtsurfer.api.client.model.StrategySummary

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.14.0") public class StrategySummary extends Object
One entry from `GET /strategies` — the same provenance a full `StrategyState` carries (`compiledAt`, `requiredSources`), without its validation state, so listing stays cheap regardless of how many strategies you have registered. Check a specific strategy's validation with `GET /strategy/{strategyId}`.
  • Field Details

  • Constructor Details

    • StrategySummary

      public StrategySummary()
  • Method Details

    • strategyId

      public StrategySummary strategyId(@Nonnull String strategyId)
    • getStrategyId

      @Nonnull public String getStrategyId()
      Unique identifier for a compiled strategy, derived from the source itself: the same code always yields the same id, for every caller. How much formatting the id ignores depends on the language — see `POST /strategy` for exactly which rewrites preserve it and which do not.
      Returns:
      strategyId
    • setStrategyId

      public void setStrategyId(@Nonnull String strategyId)
    • compiledAt

      public StrategySummary compiledAt(@Nullable OffsetDateTime compiledAt)
    • getCompiledAt

      @Nullable public OffsetDateTime getCompiledAt()
      When the live compilation was produced.
      Returns:
      compiledAt
    • setCompiledAt

      public void setCompiledAt(@Nullable OffsetDateTime compiledAt)
    • requiredSources

      public StrategySummary requiredSources(@Nullable List<String> requiredSources)
    • addRequiredSourcesItem

      public StrategySummary addRequiredSourcesItem(String requiredSourcesItem)
    • getRequiredSources

      @Nullable public List<String> getRequiredSources()
      The market data this strategy needs. Absent, not empty, when it could not be established without constructing the strategy.
      Returns:
      requiredSources
    • setRequiredSources

      public void setRequiredSources(@Nullable List<String> requiredSources)
    • equals

      public boolean equals(Object o)
      Return true if this StrategySummary object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object
    • toUrlQueryString

      public String toUrlQueryString()
      Convert the instance into URL query string.
      Returns:
      URL query string
    • toUrlQueryString

      public String toUrlQueryString(String prefix)
      Convert the instance into URL query string.
      Parameters:
      prefix - prefix of the query string
      Returns:
      URL query string