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.
  • Field Details

  • Constructor Details

    • LivePaperEquityCurve

      public LivePaperEquityCurve()
  • Method Details

    • meta

      public LivePaperEquityCurve meta(@Nonnull EquityCurveMeta meta)
    • getMeta

      @Nonnull public EquityCurveMeta getMeta()
      Get meta
      Returns:
      meta
    • setMeta

      public void setMeta(@Nonnull EquityCurveMeta meta)
    • points

      public LivePaperEquityCurve points(@Nullable List<EquityPoint> points)
    • addPointsItem

      public LivePaperEquityCurve addPointsItem(EquityPoint pointsItem)
    • getPoints

      @Nullable public List<EquityPoint> getPoints()
      Present when `meta.outMode` is `ARRAY` and the curve is inline (not a pointer).
      Returns:
      points
    • setPoints

      public void setPoints(@Nullable List<EquityPoint> points)
    • timestamps

      public LivePaperEquityCurve timestamps(@Nullable List<Long> timestamps)
    • addTimestampsItem

      public LivePaperEquityCurve addTimestampsItem(Long timestampsItem)
    • getTimestamps

      @Nullable public List<Long> getTimestamps()
      Present when `meta.outMode` is `SHORT` and the curve is inline (not a pointer).
      Returns:
      timestamps
    • setTimestamps

      public void setTimestamps(@Nullable List<Long> timestamps)
    • equities

      public LivePaperEquityCurve equities(@Nullable List<Double> equities)
    • addEquitiesItem

      public LivePaperEquityCurve addEquitiesItem(Double equitiesItem)
    • getEquities

      @Nullable public List<Double> 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

      public void setEquities(@Nullable List<Double> equities)
    • url

      public LivePaperEquityCurve url(@Nullable String url)
    • getUrl

      @Nullable public String 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

      public void setUrl(@Nullable String url)
    • currency

      public LivePaperEquityCurve currency(@Nullable String currency)
    • getCurrency

      @Nullable public String getCurrency()
      The account's quote currency. Absent only when the run has no account yet, which gives an empty curve.
      Returns:
      currency
    • setCurrency

      public void setCurrency(@Nullable String currency)
    • instrument

      public LivePaperEquityCurve instrument(@Nullable String instrument)
    • getInstrument

      @Nullable public String 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

      public void setInstrument(@Nullable String instrument)
    • measure

      public LivePaperEquityCurve measure(@Nonnull LivePaperEquityCurve.MeasureEnum measure)
    • getMeasure

      @Nonnull public LivePaperEquityCurve.MeasureEnum 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

      public void setMeasure(@Nonnull LivePaperEquityCurve.MeasureEnum measure)
    • gaps

      public LivePaperEquityCurve gaps(@Nonnull List<Long> gaps)
    • addGapsItem

      public LivePaperEquityCurve addGapsItem(Long gapsItem)
    • getGaps

      @Nonnull public List<Long> 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

      public void setGaps(@Nonnull List<Long> gaps)
    • links

      public LivePaperEquityCurve links(@Nullable LivePaperEquityCurveAllOfLinks links)
    • getLinks

      @Nullable public LivePaperEquityCurveAllOfLinks getLinks()
      Get links
      Returns:
      links
    • setLinks

      public void setLinks(@Nullable LivePaperEquityCurveAllOfLinks links)
    • equals

      public boolean equals(Object o)
      Return true if this LivePaperEquityCurve object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toUrlQueryString

      public String toUrlQueryString()
      Convert the instance into URL query string.
      Returns:
      URL query string
    • toUrlQueryString

      public String toUrlQueryString(String prefix)
      Convert the instance into URL query string.
      Parameters:
      prefix - prefix of the query string
      Returns:
      URL query string