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

# Get flattened Contracts from tradable ids

> This operation ignores provider_id and market_data_environment_name in the request body. Results use the organization's default market-data environment.



## OpenAPI

````yaml /risk-and-pricing/atoti-risk-services/apis-endpoints/openapi/openapi.mintlify.json post /api/Tradable/GetFlattenedContractsFromTradableIds
openapi: 3.0.1
info:
  title: Derivitec Api 1.0
  version: '1.0'
servers:
  - description: Derivitec Server
    url: https://api.riskportal.activeviam.com
security:
  - oauth2: []
  - apikey: []
paths:
  /api/Tradable/GetFlattenedContractsFromTradableIds:
    post:
      tags:
        - Tradable
      summary: Get flattened Contracts from tradable ids
      description: >-
        This operation ignores provider_id and market_data_environment_name in
        the request body. Results use the organization's default market-data
        environment.
      operationId: GetFlattenedContractsFromTradableIds
      requestBody:
        content:
          application/json-patch+json:
            schema:
              $ref: '#/components/schemas/ApiGetContractsFromTradableIdsRequest'
          application/json:
            schema:
              $ref: '#/components/schemas/ApiGetContractsFromTradableIdsRequest'
          text/json:
            schema:
              $ref: '#/components/schemas/ApiGetContractsFromTradableIdsRequest'
          application/*+json:
            schema:
              $ref: '#/components/schemas/ApiGetContractsFromTradableIdsRequest'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/ApiGetFlattenedContractsFromTradableIdsResponse
          description: Success
        '400':
          description: BadRequest
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
        - oauth2: []
        - apikey: []
components:
  schemas:
    ApiGetContractsFromTradableIdsRequest:
      description: >-
        For contract lookups, omitting both provider selectors uses the
        organization's market-data provider. Access to the selected provider is
        required. GetFlattenedContractsFromTradableIds ignores these selectors
        and always uses the organization's market-data provider.
      example:
        tradable_ids:
          - tradable_ids
          - tradable_ids
      properties:
        market_data_environment_name:
          description: >-
            Name of the market-data environment. Supply this name or
            provider_id, not both.
          nullable: true
          type: string
        provider_id:
          description: >-
            Opaque market-data provider identifier. Supply this identifier or
            market_data_environment_name, not both.
          nullable: true
          type: string
        tradable_ids:
          items:
            type: string
          nullable: true
          type: array
        $type:
          type: string
          enum:
            - >-
              Derivitec.Web.Core.Tradables.ApiGetContractsFromTradableIdsRequest,
              Derivitec.Web.Core
      required:
        - $type
      type: object
    ApiGetFlattenedContractsFromTradableIdsResponse:
      example:
        contracts: ''
      properties:
        is_success:
          type: boolean
        error_messages:
          items:
            type: string
          nullable: true
          type: array
        contracts:
          nullable: true
          type: object
          additionalProperties:
            type: array
            items:
              type: object
              additionalProperties: true
        $type:
          type: string
          enum:
            - >-
              Derivitec.Web.Core.Tradables.ApiGetFlattenedContractsFromTradableIdsResponse,
              Derivitec.Web.Core
      required:
        - $type
      type: object
  securitySchemes:
    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: {}
      type: oauth2
    apikey:
      description: API-Key requested via the site and provided as a header
      in: header
      name: x-api-key
      type: apiKey

````