Package com.qtsurfer.api.client.model
Class LivePaperEquityCurve
java.lang.Object
com.qtsurfer.api.client.model.LivePaperEquityCurve
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.24.0")
public class LivePaperEquityCurve
extends Object
One paper account's equity curve: the API's one equity curve (`EquityCurveResult`, `{points|timestamps+equities, meta}`) with the account's `currency` and the `gaps` alongside.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWhat the values of the curve are: the account's `equity`, an instrument's cumulative `realisedPnl` from 0, or its `totalPnl` (the realised PnL plus the unrealised value of its open position). -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddEquitiesItem(Double equitiesItem) addGapsItem(Long gapsItem) addPointsItem(EquityPoint pointsItem) addTimestampsItem(Long timestampsItem) booleanReturn true if this LivePaperEquityCurve object is equal to o.The account's quote currency.Present when `meta.outMode` is `SHORT` and the curve is inline (not a pointer), parallel to `timestamps` (same index, same point).getGaps()Market times (epoch ms, oldest first) at which open positions were lost because the run was restarted with them open.Present when the curve is one instrument's (`measure` is `realisedPnl` or `totalPnl`) and, in a run started with `accounts: instrument`, when it is the curve of the account that instrument is (`measure` is `equity`).getLinks()Get linksWhat the values of the curve are: the account's `equity`, an instrument's cumulative `realisedPnl` from 0, or its `totalPnl` (the realised PnL plus the unrealised value of its open position).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()instrument(String instrument) measure(LivePaperEquityCurve.MeasureEnum measure) meta(EquityCurveMeta meta) points(List<EquityPoint> points) voidsetCurrency(String currency) voidsetEquities(List<Double> equities) voidvoidsetInstrument(String instrument) voidvoidvoidsetMeta(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:
-
JSON_PROPERTY_CURRENCY
- See Also:
-
JSON_PROPERTY_INSTRUMENT
- See Also:
-
JSON_PROPERTY_MEASURE
- See Also:
-
JSON_PROPERTY_GAPS
- See Also:
-
JSON_PROPERTY_LINKS
- See Also:
-
-
Constructor Details
-
LivePaperEquityCurve
public LivePaperEquityCurve()
-
-
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
-
currency
-
getCurrency
The account's quote currency. Absent only when the run has no account yet, which gives an empty curve.- Returns:
- currency
-
setCurrency
-
instrument
-
getInstrument
Present when the curve is one instrument's (`measure` is `realisedPnl` or `totalPnl`) and, in a run started with `accounts: instrument`, when it is the curve of the account that instrument is (`measure` is `equity`).- Returns:
- instrument
-
setInstrument
-
measure
-
getMeasure
What the values of the curve are: the account's `equity`, an instrument's cumulative `realisedPnl` from 0, or its `totalPnl` (the realised PnL plus the unrealised value of its open position). The shape names its values `equity` in every case.- Returns:
- measure
-
setMeasure
-
gaps
-
addGapsItem
-
getGaps
Market times (epoch ms, oldest first) at which open positions were lost because the run was restarted with them open. A gap is not a point of the curve and is not counted in `meta`.- Returns:
- gaps
-
setGaps
-
links
-
getLinks
Get links- Returns:
- links
-
setLinks
-
equals
Return true if this LivePaperEquityCurve 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
-