Package com.qtsurfer.api.sdk
Record Class LivePaperEquityQuery
java.lang.Object
java.lang.Record
com.qtsurfer.api.sdk.LivePaperEquityQuery
public record LivePaperEquityQuery(String currency, String instrument, com.qtsurfer.api.client.model.LivePaperEquityCurve.MeasureEnum measure, Long sinceMs, com.qtsurfer.api.client.model.EquityCurveOutMode outMode, Integer resample, Boolean differential, String cursor, Integer limit)
extends Record
Options for reading a paper account or instrument equity curve.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionLivePaperEquityQuery(String currency, Long sinceMs, String cursor, Integer limit) Preserve the original account, time-range, and cursor query constructor.LivePaperEquityQuery(String currency, String instrument, com.qtsurfer.api.client.model.LivePaperEquityCurve.MeasureEnum measure, Long sinceMs, com.qtsurfer.api.client.model.EquityCurveOutMode outMode, Integer resample, Boolean differential, String cursor, Integer limit) Creates an instance of aLivePaperEquityQueryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic LivePaperEquityQuery.Builderbuilder()Create a builder for a paper-equity query.currency()Returns the value of thecurrencyrecord component.cursor()Returns the value of thecursorrecord component.Returns the value of thedifferentialrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinstrumentrecord component.limit()Returns the value of thelimitrecord component.com.qtsurfer.api.client.model.LivePaperEquityCurve.MeasureEnummeasure()Returns the value of themeasurerecord component.com.qtsurfer.api.client.model.EquityCurveOutModeoutMode()Returns the value of theoutModerecord component.resample()Returns the value of theresamplerecord component.sinceMs()Returns the value of thesinceMsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LivePaperEquityQuery
Preserve the original account, time-range, and cursor query constructor. -
LivePaperEquityQuery
public LivePaperEquityQuery(String currency, String instrument, com.qtsurfer.api.client.model.LivePaperEquityCurve.MeasureEnum measure, Long sinceMs, com.qtsurfer.api.client.model.EquityCurveOutMode outMode, Integer resample, Boolean differential, String cursor, Integer limit) Creates an instance of aLivePaperEquityQueryrecord class.- Parameters:
currency- the value for thecurrencyrecord componentinstrument- the value for theinstrumentrecord componentmeasure- the value for themeasurerecord componentsinceMs- the value for thesinceMsrecord componentoutMode- the value for theoutModerecord componentresample- the value for theresamplerecord componentdifferential- the value for thedifferentialrecord componentcursor- the value for thecursorrecord componentlimit- the value for thelimitrecord component
-
-
Method Details
-
builder
Create a builder for a paper-equity query. -
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). -
currency
Returns the value of thecurrencyrecord component.- Returns:
- the value of the
currencyrecord component
-
instrument
Returns the value of theinstrumentrecord component.- Returns:
- the value of the
instrumentrecord component
-
measure
public com.qtsurfer.api.client.model.LivePaperEquityCurve.MeasureEnum measure()Returns the value of themeasurerecord component.- Returns:
- the value of the
measurerecord component
-
sinceMs
Returns the value of thesinceMsrecord component.- Returns:
- the value of the
sinceMsrecord component
-
outMode
public com.qtsurfer.api.client.model.EquityCurveOutMode outMode()Returns the value of theoutModerecord component.- Returns:
- the value of the
outModerecord component
-
resample
Returns the value of theresamplerecord component.- Returns:
- the value of the
resamplerecord component
-
differential
Returns the value of thedifferentialrecord component.- Returns:
- the value of the
differentialrecord component
-
cursor
Returns the value of thecursorrecord component.- Returns:
- the value of the
cursorrecord component
-
limit
Returns the value of thelimitrecord component.- Returns:
- the value of the
limitrecord component
-