> ## 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 commodity forward points.

> Use this operation for a weekly forward series from the effective market date to approximately ten years.
A market date on or after the server's current date is replaced by the latest available market-data date;
weekend dates move forward to a weekday. This legacy action uses shared Derivitec commodity data, so inherited
provider selectors do not narrow the series. It is read-only and completes before returning.



## OpenAPI

````yaml /risk-and-pricing/atoti-risk-services/apis-endpoints/openapi/openapi.mintlify.json post /api/Commodity/GetForwards
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/Commodity/GetForwards:
    post:
      tags:
        - Commodity
      summary: Retrieve commodity forward points.
      description: >-
        Use this operation for a weekly forward series from the effective market
        date to approximately ten years.

        A market date on or after the server's current date is replaced by the
        latest available market-data date;

        weekend dates move forward to a weekday. This legacy action uses shared
        Derivitec commodity data, so inherited

        provider selectors do not narrow the series. It is read-only and
        completes before returning.
      operationId: GetForwards
      requestBody:
        description: >-
          A commodity name/exchange `Identifier` and date-only `MarketDate`;
          this action has no explicit expiration-date input.
        content:
          application/json-patch+json:
            schema:
              $ref: '#/components/schemas/ApiCommodityGetForwardsRequest'
          application/json:
            schema:
              $ref: '#/components/schemas/ApiCommodityGetForwardsRequest'
          text/json:
            schema:
              $ref: '#/components/schemas/ApiCommodityGetForwardsRequest'
          application/*+json:
            schema:
              $ref: '#/components/schemas/ApiCommodityGetForwardsRequest'
      responses:
        '200':
          description: >-
            Returns ordered forward dates, forwards, discount factors, and
            convenience factors, or unavailable-commodity or forward errors.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiCommodityGetForwardsResponse'
        '400':
          description: BadRequest
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
        - oauth2: []
        - apikey: []
components:
  schemas:
    ApiCommodityGetForwardsRequest:
      required:
        - $type
      type: object
      additionalProperties: false
      description: Selects a commodity and market-data date for an ordered forward curve.
      properties:
        identifier:
          $ref: '#/components/schemas/CommodityId'
        market_date:
          type: string
          description: Market date used by the derived request.
          format: date-time
        provider_id:
          type: string
          description: >-
            Opaque identifier of a single market-data provider to use instead of
            either environment-name option.
          nullable: true
        entity_access_type:
          enum:
            - view
            - edit
            - owner
            - blocked
          type: string
          description: >-
            Access classification associated with the selected market-data
            environment.
        market_data_environment_names:
          type: array
          items:
            type: string
          description: >-
            Names of the market-data environments to use. Do not combine this
            list with the single-name or provider-ID alternatives.
          nullable: true
        market_data_environment_name:
          type: string
          description: >-
            Single market-data environment name to use instead of
            `market_data_environment_names` or `provider_id`.
          nullable: true
          example: Example market data
        $type:
          type: string
          enum:
            - >-
              Derivitec.Web.Core.MarketData.ApiCommodityGetForwardsRequest,
              Derivitec.Web.Core
    ApiCommodityGetForwardsResponse:
      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
        commodity_forwards:
          type: array
          items:
            $ref: '#/components/schemas/CommodityForwardPoint'
          description: >-
            Commodity forward points ordered from the earliest date to the
            latest.
          nullable: true
        $type:
          type: string
          enum:
            - >-
              Derivitec.Web.Core.MarketData.ApiCommodityGetForwardsResponse,
              Derivitec.Web.Core
      additionalProperties: false
      description: Returns commodity forward points in ascending date order.
    CommodityId:
      required:
        - $type
      type: object
      properties:
        name:
          type: string
          description: Display name.
          nullable: true
        exchange:
          type: string
          description: Exchange component of the commodity key.
          nullable: true
        $type:
          type: string
          enum:
            - Derivitec.Web.Core.MarketData.CommodityId, Derivitec.Web.Core
      additionalProperties: false
      description: Commodity business key formed from name and exchange.
    CommodityForwardPoint:
      required:
        - $type
      type: object
      properties:
        convenience_factor:
          type: number
          description: Convenience-yield factor at the forward date.
          format: double
        date:
          type: string
          description: Observation date.
          format: date-time
        discount_factor:
          type: number
          description: Discount factor at the forward date.
          format: double
        forward:
          type: number
          description: Commodity forward value on Date.
          format: double
        $type:
          type: string
          enum:
            - >-
              Derivitec.Web.Core.MarketData.CommodityForwardPoint,
              Derivitec.Web.Core
      additionalProperties: false
      description: Dated commodity-forward point with its discount and convenience factors.
  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

````