@qtsurfer/sdk
    Preparing search index...

    Type Alias LivePaperEquityCurve

    LivePaperEquityCurve: EquityCurveResult & {
        _links?: { next?: { href?: string } };
        currency?: string;
        gaps: number[];
        instrument?: string;
        measure: "equity" | "realisedPnl" | "totalPnl";
    }

    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.

    Type Declaration

    • Optional_links?: { next?: { href?: string } }

      Present on a page of the raw curve while there is a next one.

      • Optionalnext?: { href?: string }
        • Optionalhref?: string

          The next page; follow it as given, the cursor is opaque.

    • Optionalcurrency?: string

      The account's quote currency. Absent only when the run has no account yet, which gives an empty curve.

    • gaps: number[]

      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.

    • Optionalinstrument?: string

      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).

    • measure: "equity" | "realisedPnl" | "totalPnl"

      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.