Package com.qtsurfer.api.client.model
Class EquityCurveResult
java.lang.Object
com.qtsurfer.api.client.model.EquityCurveResult
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.14.0")
public class EquityCurveResult
extends Object
An equity curve, shaped per `meta.outMode`: `points` when `ARRAY`, `timestamps` + `equities` (parallel arrays) when `SHORT`. Used identically wherever a curve is returned — a plain backtest's inline `equityCurve` and a sweep row's `equityCurve` are the same type. `url` is present *instead of* any points when the curve is served by pointer rather than inline (a sweep row's top-N winners only): `GET` it separately to fetch this exact same shape with the points populated.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddEquitiesItem(Double equitiesItem) addPointsItem(EquityPoint pointsItem) addTimestampsItem(Long timestampsItem) booleanReturn true if this EquityCurveResult object is equal to o.Present when `meta.outMode` is `SHORT` and the curve is inline (not a pointer), parallel to `timestamps` (same index, same point).getMeta()Get metaPresent when `meta.outMode` is `ARRAY` and the curve is inline (not a pointer).Present when `meta.outMode` is `SHORT` and the curve is inline (not a pointer).getUrl()Present only for a sweep row's pointer curve.inthashCode()meta(EquityCurveMeta meta) points(List<EquityPoint> points) voidsetEquities(List<Double> equities) voidsetMeta(EquityCurveMeta meta) voidsetPoints(List<EquityPoint> points) voidsetTimestamps(List<Long> timestamps) voidtimestamps(List<Long> timestamps) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_META
- See Also:
-
JSON_PROPERTY_POINTS
- See Also:
-
JSON_PROPERTY_TIMESTAMPS
- See Also:
-
JSON_PROPERTY_EQUITIES
- See Also:
-
JSON_PROPERTY_URL
- See Also:
-
-
Constructor Details
-
EquityCurveResult
public EquityCurveResult()
-
-
Method Details
-
meta
-
getMeta
Get meta- Returns:
- meta
-
setMeta
-
points
-
addPointsItem
-
getPoints
Present when `meta.outMode` is `ARRAY` and the curve is inline (not a pointer).- Returns:
- points
-
setPoints
-
timestamps
-
addTimestampsItem
-
getTimestamps
Present when `meta.outMode` is `SHORT` and the curve is inline (not a pointer).- Returns:
- timestamps
-
setTimestamps
-
equities
-
addEquitiesItem
-
getEquities
Present when `meta.outMode` is `SHORT` and the curve is inline (not a pointer), parallel to `timestamps` (same index, same point).- Returns:
- equities
-
setEquities
-
url
-
getUrl
Present only for a sweep row's pointer curve. `GET` this to fetch the curve itself, in this exact `{points|timestamps+equities, meta}` shape — `meta` there is the real, possibly size-guarded outcome; this outer `meta` is a raw, untransformed preview from the moment the sweep selected this trial's curve, and the two can legitimately differ.- Returns:
- url
-
setUrl
-
equals
Return true if this EquityCurveResult object is equal to o. -
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix- prefix of the query string- Returns:
- URL query string
-