Record Class BacktestRequest

java.lang.Object
java.lang.Record
com.qtsurfer.api.sdk.BacktestRequest
Record Components:
strategy - strategy source code (Java)
exchangeId - exchange identifier, e.g. "binance"
instrument - instrument symbol, e.g. "BTC/USDT"
from - range start (ISO-8601, ISO DATE, or BASIC ISO DATE)
to - range end (same formats as from; must be > from)
storeSignals - when Boolean.TRUE, the worker uploads emitted signals to object storage and the result includes signalsUrl / signalsId; null keeps the server default

public record BacktestRequest(String strategy, String exchangeId, String instrument, String from, String to, Boolean storeSignals) extends Record
A single-instrument backtest request.
  • Constructor Details

    • BacktestRequest

      public BacktestRequest(String strategy, String exchangeId, String instrument, String from, String to, Boolean storeSignals)
      Creates an instance of a BacktestRequest record class.
      Parameters:
      strategy - the value for the strategy record component
      exchangeId - the value for the exchangeId record component
      instrument - the value for the instrument record component
      from - the value for the from record component
      to - the value for the to record component
      storeSignals - the value for the storeSignals record component
  • Method Details

    • builder

      public static BacktestRequest.Builder builder()
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • strategy

      public String strategy()
      Returns the value of the strategy record component.
      Returns:
      the value of the strategy record component
    • exchangeId

      public String exchangeId()
      Returns the value of the exchangeId record component.
      Returns:
      the value of the exchangeId record component
    • instrument

      public String instrument()
      Returns the value of the instrument record component.
      Returns:
      the value of the instrument record component
    • from

      public String from()
      Returns the value of the from record component.
      Returns:
      the value of the from record component
    • to

      public String to()
      Returns the value of the to record component.
      Returns:
      the value of the to record component
    • storeSignals

      public Boolean storeSignals()
      Returns the value of the storeSignals record component.
      Returns:
      the value of the storeSignals record component