Chartbreaker
    Preparing search index...

    Type Alias PortfolioValueHistoryResponse

    type PortfolioValueHistoryResponse = {
        currency: string;
        data: PortfolioValueHistoryPoint[];
        realizedFeesKnown: boolean;
        type: "data";
        warningStatus: TradeSummaryWarningStatus;
    }
    Index
    currency: string

    The currency all data values are expressed in (= the portfolio currency).

    Note that - unlike in most other places of this library - the values are not Amounts: a value history can span many years of weekdays, so the currency is provided once for the whole series instead.

    The end-of-day value and buy value of the open positions per weekday (positions only, no cash) plus the profit/loss realized on that weekday, ascending by date.

    realizedFeesKnown: boolean

    Whether at least one of this portfolio's completed trades has a known fee total, i.e. whether the broker reports fees at all.

    This is what decides whether the realizedPnlAfterFees of the points say anything: where it is false they equal the gross figures on every day, and a client should state that the fees are unknown instead of presenting the two as gross and net.

    It describes the whole portfolio rather than a single day, deliberately: individual trades without fee data are counted gross, so that one of them cannot put this series at odds with the trade tracker over the very same trades.

    type: "data"