Package com.qtsurfer.api.sdk
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 asfrom; must be> from)storeSignals- whenBoolean.TRUE, the worker uploads emitted signals to object storage and the result includessignalsUrl/signalsId;nullkeeps 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.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BacktestRequest.Builderbuilder()final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexchangeIdrecord component.from()Returns the value of thefromrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinstrumentrecord component.Returns the value of thestoreSignalsrecord component.strategy()Returns the value of thestrategyrecord component.to()Returns the value of thetorecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BacktestRequest
public BacktestRequest(String strategy, String exchangeId, String instrument, String from, String to, Boolean storeSignals) Creates an instance of aBacktestRequestrecord class.- Parameters:
strategy- the value for thestrategyrecord componentexchangeId- the value for theexchangeIdrecord componentinstrument- the value for theinstrumentrecord componentfrom- the value for thefromrecord componentto- the value for thetorecord componentstoreSignals- the value for thestoreSignalsrecord component
-
-
Method Details
-
builder
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
strategy
Returns the value of thestrategyrecord component.- Returns:
- the value of the
strategyrecord component
-
exchangeId
Returns the value of theexchangeIdrecord component.- Returns:
- the value of the
exchangeIdrecord component
-
instrument
Returns the value of theinstrumentrecord component.- Returns:
- the value of the
instrumentrecord component
-
from
Returns the value of thefromrecord component.- Returns:
- the value of the
fromrecord component
-
to
Returns the value of thetorecord component.- Returns:
- the value of the
torecord component
-
storeSignals
Returns the value of thestoreSignalsrecord component.- Returns:
- the value of the
storeSignalsrecord component
-