> ## Documentation Index
> Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Retrieve time-series data for a completed VaR report run.

> Returns the time-series view associated with the identified completed run. Only `ReportId` affects this
action; exposed row-filter and table-query fields do not alter the result.



## OpenAPI

````yaml /risk-and-pricing/atoti-risk-services/apis-endpoints/openapi/openapi.mintlify.json post /api/VarReport/GetReportTimeSeriesDataById
openapi: 3.0.4
info:
  title: Derivitec Api 1.0
  version: '1.0'
servers:
  - url: https://api.riskportal.activeviam.com
security:
  - oauth2: []
  - apikey: []
tags:
  - name: AdminUser
  - name: AtotiReport
  - name: AtotiSession
  - name: BloombergOAuth
  - name: Bond
  - name: BondYieldCurvePage
  - name: BookAccess
  - name: Books
  - name: Commodity
  - name: Counterparties
  - name: Currencies
  - name: Equity
  - name: EquityDividend
  - name: EquityPage
  - name: FeatureFlag
  - name: Fx
  - name: FxPage
  - name: GroupAccess
  - name: Home
  - name: LegacyPosition
  - name: MarketData
  - name: MarketDataProvider
  - name: MarketDataProviderAccess
  - name: Meta
  - name: Notification
  - name: Organisation
  - name: PnLReport
  - name: PortfolioAccess
  - name: Portfolios
  - name: Position
  - name: PositionFilter
  - name: PricingEnvironment
  - name: PricingEnvironmentAccess
  - name: RateAsset
  - name: RateAssetPage
  - name: Report
  - name: ReportDefinition
  - name: ReportHistoryLauncherQuery
  - name: ReportLauncher
  - name: ReportQuery
  - name: ReportQueryViewUser
  - name: ReportRestriction
  - name: ReportView
  - name: RiskReport
  - name: Tradable
  - name: TradeBooking
  - name: User
  - name: VarReport
  - name: VarReportQuery
  - name: YieldCurvePage
paths:
  /api/VarReport/GetReportTimeSeriesDataById:
    post:
      tags:
        - VarReport
      summary: Retrieve time-series data for a completed VaR report run.
      description: >-
        Returns the time-series view associated with the identified completed
        run. Only `ReportId` affects this

        action; exposed row-filter and table-query fields do not alter the
        result.
      operationId: GetReportTimeSeriesDataById
      requestBody:
        description: >-
          The body containing the opaque `ReportId` for the completed VaR report
          run.
        content:
          application/json-patch+json:
            schema:
              $ref: '#/components/schemas/ApiGetReportDataByIdRequest'
          application/json:
            schema:
              $ref: '#/components/schemas/ApiGetReportDataByIdRequest'
          text/json:
            schema:
              $ref: '#/components/schemas/ApiGetReportDataByIdRequest'
          application/*+json:
            schema:
              $ref: '#/components/schemas/ApiGetReportDataByIdRequest'
      responses:
        '200':
          description: >-
            Returns the time-series data associated with the identified
            completed VaR report run.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiVarReportTimeSeriesDataResponse'
        '400':
          description: BadRequest
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
        - oauth2: []
        - apikey: []
components:
  schemas:
    ApiGetReportDataByIdRequest:
      required:
        - $type
      type: object
      properties:
        report_id:
          type: string
          description: >-
            Opaque identifier of the report run to retrieve or query. The value
            must not be null or empty.
          nullable: true
        portfolio_type:
          enum:
            - derivitec
            - enfusion
            - orchestrade
            - liquidity_book
            - maia
            - fund_studio
            - not_set
          type: string
          description: >-
            Portfolio category used to resolve the requested portfolio. It may
            be omitted when the portfolio name resolves unambiguously.
          nullable: true
        data_table_query:
          $ref: '#/components/schemas/DataTableQuery'
        $type:
          type: string
          enum:
            - >-
              Derivitec.Web.Core.Reports.ApiGetReportDataByIdRequest,
              Derivitec.Web.Core
      additionalProperties: false
      description: Selectors and optional formatting query for retrieving one report run.
    ApiVarReportTimeSeriesDataResponse:
      required:
        - $type
      type: object
      properties:
        is_success:
          type: boolean
          description: >-
            Whether the operation completed successfully. The default is `true`;
            error outcomes set it to `false`.
          example: true
        error_messages:
          type: array
          items:
            type: string
          description: >-
            Messages explaining operation-level failures. The collection is
            empty by default.
          nullable: true
        confidence_level:
          type: number
          description: >-
            Confidence level associated with the VaR report; no scale is
            established here.
          format: double
        mkt_data_date:
          type: string
          description: Market-data date used or recorded for the report run.
          format: date-time
        observation_dates:
          type: array
          items:
            type: string
            format: date-time
          description: >-
            Historical observation dates supplied with the returned VaR
            time-series values.
          nullable: true
        portfolio_name:
          type: string
          description: >-
            Portfolio name associated with the report run or saved launcher
            item.
          nullable: true
        pricing_date:
          type: string
          description: >-
            Date used to price positions for the report; no time-zone convention
            is established by this contract.
          format: date-time
        report_id:
          type: string
          description: Opaque identifier of the report run.
          nullable: true
        reporting_currency:
          type: string
          description: >-
            Currency used to express monetary report values; the code format is
            not constrained here.
          nullable: true
        time_stamp:
          type: string
          description: >-
            Timestamp recorded for the report run; no time-zone convention is
            established by this contract.
          format: date-time
        group_labels_by_group_id:
          type: object
          additionalProperties:
            type: string
            nullable: true
          description: >-
            Display labels keyed by the opaque group identifiers used in the
            accompanying time series.
          nullable: true
        time_series_by_group_id:
          type: object
          additionalProperties:
            type: array
            items:
              type: number
              format: double
            nullable: true
          description: >-
            Time-series values keyed by the same opaque group identifiers used
            by GroupLabelsByGroupId.
          nullable: true
        var_horizon:
          type: integer
          description: Horizon recorded for the VaR report; no unit is established here.
          format: int32
        $type:
          type: string
          enum:
            - >-
              Derivitec.Web.Core.Reports.ApiVarReportTimeSeriesDataResponse,
              Derivitec.Web.Core
      additionalProperties: false
      description: >-
        Grouped VaR time-series values and the report context used to produce
        them.
    DataTableQuery:
      required:
        - $type
      type: object
      properties:
        filter:
          $ref: '#/components/schemas/FilterBase'
        columns:
          type: array
          items:
            type: string
          description: >-
            Columns selected for formatted report data or defined in a report
            view.
          nullable: true
        $type:
          type: string
          enum:
            - Derivitec.Web.Core.Reports.DataTableQuery, Derivitec.Web.Core
      additionalProperties: false
      description: Optional filter and column selection for formatted report data.
    FilterBase:
      description: Base selection criterion for a named report-data field.
      discriminator:
        propertyName: $type
        mapping:
          Derivitec.Web.Core.Filters.Filter, Derivitec.Web.Core: '#/components/schemas/FilterMintlifyShape'
          Derivitec.Web.Core.Filters.FilterBase, Derivitec.Web.Core: '#/components/schemas/FilterBaseMintlifyShape'
          Derivitec.Web.Core.Filters.MultiFilter, Derivitec.Web.Core: '#/components/schemas/MultiFilter'
          Derivitec.Web.Core.Filters.StringFilter, Derivitec.Web.Core: '#/components/schemas/StringFilter'
      oneOf:
        - $ref: '#/components/schemas/FilterMintlifyShape'
        - $ref: '#/components/schemas/FilterBaseMintlifyShape'
        - $ref: '#/components/schemas/MultiFilter'
        - $ref: '#/components/schemas/StringFilter'
    FilterMintlifyShape:
      required:
        - $type
      type: object
      properties:
        field:
          type: string
          description: Name of the report-data field evaluated by this criterion.
          nullable: true
        type:
          type: string
          nullable: true
        $type:
          type: string
          enum:
            - Derivitec.Web.Core.Filters.Filter, Derivitec.Web.Core
      additionalProperties: false
    FilterBaseMintlifyShape:
      required:
        - $type
      type: object
      properties:
        field:
          type: string
          description: Name of the report-data field evaluated by this criterion.
          nullable: true
        $type:
          type: string
          enum:
            - Derivitec.Web.Core.Filters.FilterBase, Derivitec.Web.Core
      additionalProperties: false
      description: Base selection criterion for a named report-data field.
    MultiFilter:
      required:
        - $type
      type: object
      properties:
        field:
          type: string
          description: Name of the report-data field evaluated by this criterion.
          nullable: true
        operator:
          enum:
            - not_set
            - and
            - or
          type: string
          description: Logical rule used to combine the child criteria.
        conditions:
          type: array
          items:
            $ref: '#/components/schemas/FilterBase'
          description: >-
            Child criteria evaluated by the selected logical operator; nested
            groups are permitted.
          nullable: true
        $type:
          type: string
          enum:
            - Derivitec.Web.Core.Filters.MultiFilter, Derivitec.Web.Core
      additionalProperties: false
      description: >-
        Nested filter group that combines child criteria with a logical
        operator.
    StringFilter:
      required:
        - $type
      type: object
      properties:
        field:
          type: string
          description: Name of the report-data field evaluated by this criterion.
          nullable: true
        type:
          type: string
          nullable: true
        filter:
          type: string
          nullable: true
        $type:
          type: string
          enum:
            - Derivitec.Web.Core.Filters.StringFilter, Derivitec.Web.Core
      additionalProperties: false
  securitySchemes:
    oauth2:
      type: oauth2
      description: >-
        OAuth2 access-token requested from AWS Cognito and provided as a Auth
        Bearer header
      flows:
        implicit:
          authorizationUrl: https://auth.riskportal.derivitec.com/oauth2/authorize
          scopes: {}
    apikey:
      type: apiKey
      description: API-Key requested via the site and provided as a header
      name: x-api-key
      in: header

````