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

# Post apipositionvalidatepositionimport



## OpenAPI

````yaml /risk-and-pricing/atoti-risk-services/apis-endpoints/openapi/openapi.mintlify.json post /api/Position/ValidatePositionImport
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/Position/ValidatePositionImport:
    post:
      tags:
        - Position
      operationId: ValidatePositionImport
      requestBody:
        content:
          application/json-patch+json:
            schema:
              $ref: '#/components/schemas/PositionUploadValidationRequest'
          application/json:
            schema:
              $ref: '#/components/schemas/PositionUploadValidationRequest'
          text/json:
            schema:
              $ref: '#/components/schemas/PositionUploadValidationRequest'
          application/*+json:
            schema:
              $ref: '#/components/schemas/PositionUploadValidationRequest'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PositionUploadValidationResponse'
          description: Success
        '400':
          description: BadRequest
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
        - oauth2: []
        - apikey: []
components:
  schemas:
    PositionUploadValidationRequest:
      example:
        file_name: file_name
        file_data: file_data
      properties:
        file_name:
          nullable: true
          type: string
        file_data:
          nullable: true
          type: string
        $type:
          type: string
          enum:
            - >-
              Derivitec.Core.Mediators.Upload.Positions.PositionUploadValidationRequest,
              Derivitec.Core.Mediators
      required:
        - $type
      type: object
    PositionUploadValidationResponse:
      example:
        parsed_file_data:
          deleted_position_effects:
            - tradable_type: tradable_type
              quantity: 2.3021358869347655
              position_effects_label_values:
                - field: field
                  position_effect_id: 5
                  value: value
                  label_id: 5
                - field: field
                  position_effect_id: 5
                  value: value
                  label_id: 5
              trade_action: trade_action
              book_id: 0
              book_name: book_name
              client_transaction_id: client_transaction_id
              display_name: display_name
              structure: structure
              leg: leg
              tool_tip: tool_tip
              deleted: true
              upload_tradable_id_to_enfusion: true
              counterparty: counterparty
              is_checked: true
              contract_size: 6.027456183070403
              id: 1
              tradable_identifier: tradable_identifier
            - tradable_type: tradable_type
              quantity: 2.3021358869347655
              position_effects_label_values:
                - field: field
                  position_effect_id: 5
                  value: value
                  label_id: 5
                - field: field
                  position_effect_id: 5
                  value: value
                  label_id: 5
              trade_action: trade_action
              book_id: 0
              book_name: book_name
              client_transaction_id: client_transaction_id
              display_name: display_name
              structure: structure
              leg: leg
              tool_tip: tool_tip
              deleted: true
              upload_tradable_id_to_enfusion: true
              counterparty: counterparty
              is_checked: true
              contract_size: 6.027456183070403
              id: 1
              tradable_identifier: tradable_identifier
          closed_position_effects:
            - tradable_type: tradable_type
              quantity: 2.3021358869347655
              position_effects_label_values:
                - field: field
                  position_effect_id: 5
                  value: value
                  label_id: 5
                - field: field
                  position_effect_id: 5
                  value: value
                  label_id: 5
              trade_action: trade_action
              book_id: 0
              book_name: book_name
              client_transaction_id: client_transaction_id
              display_name: display_name
              structure: structure
              leg: leg
              tool_tip: tool_tip
              deleted: true
              upload_tradable_id_to_enfusion: true
              counterparty: counterparty
              is_checked: true
              contract_size: 6.027456183070403
              id: 1
              tradable_identifier: tradable_identifier
            - tradable_type: tradable_type
              quantity: 2.3021358869347655
              position_effects_label_values:
                - field: field
                  position_effect_id: 5
                  value: value
                  label_id: 5
                - field: field
                  position_effect_id: 5
                  value: value
                  label_id: 5
              trade_action: trade_action
              book_id: 0
              book_name: book_name
              client_transaction_id: client_transaction_id
              display_name: display_name
              structure: structure
              leg: leg
              tool_tip: tool_tip
              deleted: true
              upload_tradable_id_to_enfusion: true
              counterparty: counterparty
              is_checked: true
              contract_size: 6.027456183070403
              id: 1
              tradable_identifier: tradable_identifier
          position_effects:
            - tradable_type: tradable_type
              quantity: 2.3021358869347655
              position_effects_label_values:
                - field: field
                  position_effect_id: 5
                  value: value
                  label_id: 5
                - field: field
                  position_effect_id: 5
                  value: value
                  label_id: 5
              trade_action: trade_action
              book_id: 0
              book_name: book_name
              client_transaction_id: client_transaction_id
              display_name: display_name
              structure: structure
              leg: leg
              tool_tip: tool_tip
              deleted: true
              upload_tradable_id_to_enfusion: true
              counterparty: counterparty
              is_checked: true
              contract_size: 6.027456183070403
              id: 1
              tradable_identifier: tradable_identifier
            - tradable_type: tradable_type
              quantity: 2.3021358869347655
              position_effects_label_values:
                - field: field
                  position_effect_id: 5
                  value: value
                  label_id: 5
                - field: field
                  position_effect_id: 5
                  value: value
                  label_id: 5
              trade_action: trade_action
              book_id: 0
              book_name: book_name
              client_transaction_id: client_transaction_id
              display_name: display_name
              structure: structure
              leg: leg
              tool_tip: tool_tip
              deleted: true
              upload_tradable_id_to_enfusion: true
              counterparty: counterparty
              is_checked: true
              contract_size: 6.027456183070403
              id: 1
              tradable_identifier: tradable_identifier
          custom_column_mappings:
            - value: value
              key: key
            - value: value
              key: key
          restored_position_effects:
            - tradable_type: tradable_type
              quantity: 2.3021358869347655
              position_effects_label_values:
                - field: field
                  position_effect_id: 5
                  value: value
                  label_id: 5
                - field: field
                  position_effect_id: 5
                  value: value
                  label_id: 5
              trade_action: trade_action
              book_id: 0
              book_name: book_name
              client_transaction_id: client_transaction_id
              display_name: display_name
              structure: structure
              leg: leg
              tool_tip: tool_tip
              deleted: true
              upload_tradable_id_to_enfusion: true
              counterparty: counterparty
              is_checked: true
              contract_size: 6.027456183070403
              id: 1
              tradable_identifier: tradable_identifier
            - tradable_type: tradable_type
              quantity: 2.3021358869347655
              position_effects_label_values:
                - field: field
                  position_effect_id: 5
                  value: value
                  label_id: 5
                - field: field
                  position_effect_id: 5
                  value: value
                  label_id: 5
              trade_action: trade_action
              book_id: 0
              book_name: book_name
              client_transaction_id: client_transaction_id
              display_name: display_name
              structure: structure
              leg: leg
              tool_tip: tool_tip
              deleted: true
              upload_tradable_id_to_enfusion: true
              counterparty: counterparty
              is_checked: true
              contract_size: 6.027456183070403
              id: 1
              tradable_identifier: tradable_identifier
          parse_file_data_context_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
          tradable_view_models:
            key:
              error_message: error_message
              contract_type: contract_type
              identifier: ''
              quantity: 3.616076749251911
              quantity_round_to_nearest: 2.027123023002322
              currency: currency
              id: 9
              display_name: display_name
              pricing_details_model:
                error_message: error_message
                data:
                  - error_message: error_message
                    format_string: format_string
                    currency: currency
                    value: ''
                    key: key
                    scales_by_qty: true
                  - error_message: error_message
                    format_string: format_string
                    currency: currency
                    value: ''
                    key: key
                    scales_by_qty: true
              tradable_risk_data:
                error_message: error_message
                unit_risks:
                  - error_message: error_message
                    format_string: format_string
                    currency: currency
                    value: ''
                    key: key
                    scales_by_qty: true
                  - error_message: error_message
                    format_string: format_string
                    currency: currency
                    value: ''
                    key: key
                    scales_by_qty: true
              market_date: '2000-01-23T04:56:07.000+00:00'
              results: ''
          amended_position_effects:
            - tradable_type: tradable_type
              quantity: 2.3021358869347655
              position_effects_label_values:
                - field: field
                  position_effect_id: 5
                  value: value
                  label_id: 5
                - field: field
                  position_effect_id: 5
                  value: value
                  label_id: 5
              trade_action: trade_action
              book_id: 0
              book_name: book_name
              client_transaction_id: client_transaction_id
              display_name: display_name
              structure: structure
              leg: leg
              tool_tip: tool_tip
              deleted: true
              upload_tradable_id_to_enfusion: true
              counterparty: counterparty
              is_checked: true
              contract_size: 6.027456183070403
              id: 1
              tradable_identifier: tradable_identifier
            - tradable_type: tradable_type
              quantity: 2.3021358869347655
              position_effects_label_values:
                - field: field
                  position_effect_id: 5
                  value: value
                  label_id: 5
                - field: field
                  position_effect_id: 5
                  value: value
                  label_id: 5
              trade_action: trade_action
              book_id: 0
              book_name: book_name
              client_transaction_id: client_transaction_id
              display_name: display_name
              structure: structure
              leg: leg
              tool_tip: tool_tip
              deleted: true
              upload_tradable_id_to_enfusion: true
              counterparty: counterparty
              is_checked: true
              contract_size: 6.027456183070403
              id: 1
              tradable_identifier: tradable_identifier
          books_to_be_created:
            - name: name
              description: description
              parent_portfolio_ids:
                - 7
                - 7
            - name: name
              description: description
              parent_portfolio_ids:
                - 7
                - 7
        is_success: true
        error_messages:
          - error_messages
          - error_messages
      properties:
        parsed_file_data:
          $ref: '#/components/schemas/PositionParsedFileData'
        is_success:
          type: boolean
        error_messages:
          items:
            type: string
          nullable: true
          type: array
        $type:
          type: string
          enum:
            - >-
              Derivitec.Core.Mediators.Upload.Positions.PositionUploadValidationResponse,
              Derivitec.Core.Mediators
      required:
        - $type
      type: object
    PositionParsedFileData:
      discriminator:
        mapping:
          Derivitec.Web.Models.PositionUpload.PositionParsedFileData, Derivitec.Web.Models: '#/components/schemas/PositionParsedFileDataMintlifyShape'
          Derivitec.Web.Models.PositionUpload.PositionParsedFileDataLite, Derivitec.Web.Models: '#/components/schemas/PositionParsedFileDataLite'
        propertyName: $type
      oneOf:
        - $ref: '#/components/schemas/PositionParsedFileDataMintlifyShape'
        - $ref: '#/components/schemas/PositionParsedFileDataLite'
    PositionParsedFileDataMintlifyShape:
      example:
        deleted_position_effects:
          - tradable_type: tradable_type
            quantity: 2.3021358869347655
            position_effects_label_values:
              - field: field
                position_effect_id: 5
                value: value
                label_id: 5
              - field: field
                position_effect_id: 5
                value: value
                label_id: 5
            trade_action: trade_action
            book_id: 0
            book_name: book_name
            client_transaction_id: client_transaction_id
            display_name: display_name
            structure: structure
            leg: leg
            tool_tip: tool_tip
            deleted: true
            upload_tradable_id_to_enfusion: true
            counterparty: counterparty
            is_checked: true
            contract_size: 6.027456183070403
            id: 1
            tradable_identifier: tradable_identifier
          - tradable_type: tradable_type
            quantity: 2.3021358869347655
            position_effects_label_values:
              - field: field
                position_effect_id: 5
                value: value
                label_id: 5
              - field: field
                position_effect_id: 5
                value: value
                label_id: 5
            trade_action: trade_action
            book_id: 0
            book_name: book_name
            client_transaction_id: client_transaction_id
            display_name: display_name
            structure: structure
            leg: leg
            tool_tip: tool_tip
            deleted: true
            upload_tradable_id_to_enfusion: true
            counterparty: counterparty
            is_checked: true
            contract_size: 6.027456183070403
            id: 1
            tradable_identifier: tradable_identifier
        closed_position_effects:
          - tradable_type: tradable_type
            quantity: 2.3021358869347655
            position_effects_label_values:
              - field: field
                position_effect_id: 5
                value: value
                label_id: 5
              - field: field
                position_effect_id: 5
                value: value
                label_id: 5
            trade_action: trade_action
            book_id: 0
            book_name: book_name
            client_transaction_id: client_transaction_id
            display_name: display_name
            structure: structure
            leg: leg
            tool_tip: tool_tip
            deleted: true
            upload_tradable_id_to_enfusion: true
            counterparty: counterparty
            is_checked: true
            contract_size: 6.027456183070403
            id: 1
            tradable_identifier: tradable_identifier
          - tradable_type: tradable_type
            quantity: 2.3021358869347655
            position_effects_label_values:
              - field: field
                position_effect_id: 5
                value: value
                label_id: 5
              - field: field
                position_effect_id: 5
                value: value
                label_id: 5
            trade_action: trade_action
            book_id: 0
            book_name: book_name
            client_transaction_id: client_transaction_id
            display_name: display_name
            structure: structure
            leg: leg
            tool_tip: tool_tip
            deleted: true
            upload_tradable_id_to_enfusion: true
            counterparty: counterparty
            is_checked: true
            contract_size: 6.027456183070403
            id: 1
            tradable_identifier: tradable_identifier
        position_effects:
          - tradable_type: tradable_type
            quantity: 2.3021358869347655
            position_effects_label_values:
              - field: field
                position_effect_id: 5
                value: value
                label_id: 5
              - field: field
                position_effect_id: 5
                value: value
                label_id: 5
            trade_action: trade_action
            book_id: 0
            book_name: book_name
            client_transaction_id: client_transaction_id
            display_name: display_name
            structure: structure
            leg: leg
            tool_tip: tool_tip
            deleted: true
            upload_tradable_id_to_enfusion: true
            counterparty: counterparty
            is_checked: true
            contract_size: 6.027456183070403
            id: 1
            tradable_identifier: tradable_identifier
          - tradable_type: tradable_type
            quantity: 2.3021358869347655
            position_effects_label_values:
              - field: field
                position_effect_id: 5
                value: value
                label_id: 5
              - field: field
                position_effect_id: 5
                value: value
                label_id: 5
            trade_action: trade_action
            book_id: 0
            book_name: book_name
            client_transaction_id: client_transaction_id
            display_name: display_name
            structure: structure
            leg: leg
            tool_tip: tool_tip
            deleted: true
            upload_tradable_id_to_enfusion: true
            counterparty: counterparty
            is_checked: true
            contract_size: 6.027456183070403
            id: 1
            tradable_identifier: tradable_identifier
        custom_column_mappings:
          - value: value
            key: key
          - value: value
            key: key
        restored_position_effects:
          - tradable_type: tradable_type
            quantity: 2.3021358869347655
            position_effects_label_values:
              - field: field
                position_effect_id: 5
                value: value
                label_id: 5
              - field: field
                position_effect_id: 5
                value: value
                label_id: 5
            trade_action: trade_action
            book_id: 0
            book_name: book_name
            client_transaction_id: client_transaction_id
            display_name: display_name
            structure: structure
            leg: leg
            tool_tip: tool_tip
            deleted: true
            upload_tradable_id_to_enfusion: true
            counterparty: counterparty
            is_checked: true
            contract_size: 6.027456183070403
            id: 1
            tradable_identifier: tradable_identifier
          - tradable_type: tradable_type
            quantity: 2.3021358869347655
            position_effects_label_values:
              - field: field
                position_effect_id: 5
                value: value
                label_id: 5
              - field: field
                position_effect_id: 5
                value: value
                label_id: 5
            trade_action: trade_action
            book_id: 0
            book_name: book_name
            client_transaction_id: client_transaction_id
            display_name: display_name
            structure: structure
            leg: leg
            tool_tip: tool_tip
            deleted: true
            upload_tradable_id_to_enfusion: true
            counterparty: counterparty
            is_checked: true
            contract_size: 6.027456183070403
            id: 1
            tradable_identifier: tradable_identifier
        parse_file_data_context_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
        tradable_view_models:
          key:
            error_message: error_message
            contract_type: contract_type
            identifier: ''
            quantity: 3.616076749251911
            quantity_round_to_nearest: 2.027123023002322
            currency: currency
            id: 9
            display_name: display_name
            pricing_details_model:
              error_message: error_message
              data:
                - error_message: error_message
                  format_string: format_string
                  currency: currency
                  value: ''
                  key: key
                  scales_by_qty: true
                - error_message: error_message
                  format_string: format_string
                  currency: currency
                  value: ''
                  key: key
                  scales_by_qty: true
            tradable_risk_data:
              error_message: error_message
              unit_risks:
                - error_message: error_message
                  format_string: format_string
                  currency: currency
                  value: ''
                  key: key
                  scales_by_qty: true
                - error_message: error_message
                  format_string: format_string
                  currency: currency
                  value: ''
                  key: key
                  scales_by_qty: true
            market_date: '2000-01-23T04:56:07.000+00:00'
            results: ''
        amended_position_effects:
          - tradable_type: tradable_type
            quantity: 2.3021358869347655
            position_effects_label_values:
              - field: field
                position_effect_id: 5
                value: value
                label_id: 5
              - field: field
                position_effect_id: 5
                value: value
                label_id: 5
            trade_action: trade_action
            book_id: 0
            book_name: book_name
            client_transaction_id: client_transaction_id
            display_name: display_name
            structure: structure
            leg: leg
            tool_tip: tool_tip
            deleted: true
            upload_tradable_id_to_enfusion: true
            counterparty: counterparty
            is_checked: true
            contract_size: 6.027456183070403
            id: 1
            tradable_identifier: tradable_identifier
          - tradable_type: tradable_type
            quantity: 2.3021358869347655
            position_effects_label_values:
              - field: field
                position_effect_id: 5
                value: value
                label_id: 5
              - field: field
                position_effect_id: 5
                value: value
                label_id: 5
            trade_action: trade_action
            book_id: 0
            book_name: book_name
            client_transaction_id: client_transaction_id
            display_name: display_name
            structure: structure
            leg: leg
            tool_tip: tool_tip
            deleted: true
            upload_tradable_id_to_enfusion: true
            counterparty: counterparty
            is_checked: true
            contract_size: 6.027456183070403
            id: 1
            tradable_identifier: tradable_identifier
        books_to_be_created:
          - name: name
            description: description
            parent_portfolio_ids:
              - 7
              - 7
          - name: name
            description: description
            parent_portfolio_ids:
              - 7
              - 7
      properties:
        file_name:
          nullable: true
          type: string
        id:
          nullable: true
          type: string
        message:
          nullable: true
          type: string
        parse_errors:
          items:
            $ref: '#/components/schemas/ParseError'
          nullable: true
          type: array
        parse_warnings:
          items:
            $ref: '#/components/schemas/ParseError'
          nullable: true
          type: array
        table_messages:
          additionalProperties:
            nullable: true
            type: string
          nullable: true
          type: object
        valid:
          type: boolean
        amended_position_effects:
          items:
            $ref: '#/components/schemas/PositionEffectViewModel'
          nullable: true
          type: array
        books_to_be_created:
          items:
            $ref: '#/components/schemas/BookCreateViewModel'
          nullable: true
          type: array
        closed_position_effects:
          items:
            $ref: '#/components/schemas/PositionEffectViewModel'
          nullable: true
          type: array
        deleted_position_effects:
          items:
            $ref: '#/components/schemas/PositionEffectViewModel'
          nullable: true
          type: array
        position_effects:
          items:
            $ref: '#/components/schemas/PositionEffectViewModel'
          nullable: true
          type: array
        restored_position_effects:
          items:
            $ref: '#/components/schemas/PositionEffectViewModel'
          nullable: true
          type: array
        tradable_view_models:
          additionalProperties:
            $ref: '#/components/schemas/TradableViewModel'
          nullable: true
          type: object
        custom_column_mappings:
          items:
            $ref: '#/components/schemas/StringStringKeyValuePair'
          nullable: true
          type: array
        parse_file_data_context_id:
          format: uuid
          type: string
        $type:
          type: string
          enum:
            - >-
              Derivitec.Web.Models.PositionUpload.PositionParsedFileData,
              Derivitec.Web.Models
      required:
        - $type
      type: object
    PositionParsedFileDataLite:
      properties:
        file_name:
          nullable: true
          type: string
        id:
          nullable: true
          type: string
        message:
          nullable: true
          type: string
        parse_errors:
          items:
            $ref: '#/components/schemas/ParseError'
          nullable: true
          type: array
        parse_warnings:
          items:
            $ref: '#/components/schemas/ParseError'
          nullable: true
          type: array
        table_messages:
          additionalProperties:
            nullable: true
            type: string
          nullable: true
          type: object
        valid:
          type: boolean
        amended_position_effects:
          items:
            $ref: '#/components/schemas/PositionEffectViewModel'
          nullable: true
          type: array
        books_to_be_created:
          items:
            $ref: '#/components/schemas/BookCreateViewModel'
          nullable: true
          type: array
        closed_position_effects:
          items:
            $ref: '#/components/schemas/PositionEffectViewModel'
          nullable: true
          type: array
        deleted_position_effects:
          items:
            $ref: '#/components/schemas/PositionEffectViewModel'
          nullable: true
          type: array
        position_effects:
          items:
            $ref: '#/components/schemas/PositionEffectViewModel'
          nullable: true
          type: array
        restored_position_effects:
          items:
            $ref: '#/components/schemas/PositionEffectViewModel'
          nullable: true
          type: array
        tradable_view_models:
          additionalProperties:
            $ref: '#/components/schemas/TradableViewModel'
          nullable: true
          type: object
        custom_column_mappings:
          items:
            $ref: '#/components/schemas/StringStringKeyValuePair'
          nullable: true
          type: array
        parse_file_data_context_id:
          format: uuid
          type: string
        parse_warnings_lite:
          items:
            $ref: '#/components/schemas/ParseErrorLite'
          nullable: true
          type: array
        parse_errors_lite:
          items:
            $ref: '#/components/schemas/ParseErrorLite'
          nullable: true
          type: array
        $type:
          type: string
          enum:
            - >-
              Derivitec.Web.Models.PositionUpload.PositionParsedFileDataLite,
              Derivitec.Web.Models
      required:
        - $type
      type: object
    ParseError:
      properties:
        error_column:
          nullable: true
          readOnly: true
          type: string
        error_columns:
          items:
            type: string
          nullable: true
          type: array
        message:
          nullable: true
          type: string
        row:
          $ref: '#/components/schemas/DataRow'
        tab:
          nullable: true
          type: string
        error_level:
          enum:
            - error
            - warning
          type: string
        $type:
          type: string
          enum:
            - Derivitec.Web.Core.ParseError, Derivitec.Web.Core
      required:
        - $type
      type: object
    PositionEffectViewModel:
      example:
        tradable_type: tradable_type
        quantity: 2.3021358869347655
        position_effects_label_values:
          - field: field
            position_effect_id: 5
            value: value
            label_id: 5
          - field: field
            position_effect_id: 5
            value: value
            label_id: 5
        trade_action: trade_action
        book_id: 0
        book_name: book_name
        client_transaction_id: client_transaction_id
        display_name: display_name
        structure: structure
        leg: leg
        tool_tip: tool_tip
        deleted: true
        upload_tradable_id_to_enfusion: true
        counterparty: counterparty
        is_checked: true
        contract_size: 6.027456183070403
        id: 1
        tradable_identifier: tradable_identifier
      properties:
        book_id:
          format: int32
          type: integer
        book_name:
          nullable: true
          type: string
        client_transaction_id:
          nullable: true
          type: string
        contract_size:
          format: double
          nullable: true
          type: number
        counterparty:
          nullable: true
          type: string
        deleted:
          type: boolean
        display_name:
          nullable: true
          type: string
        id:
          format: int32
          type: integer
        is_checked:
          type: boolean
        leg:
          nullable: true
          type: string
        position_effects_label_values:
          items:
            $ref: '#/components/schemas/PositionEffectsLabelValueViewModel'
          nullable: true
          type: array
        quantity:
          format: double
          type: number
        structure:
          nullable: true
          type: string
        tool_tip:
          nullable: true
          type: string
        tradable_identifier:
          nullable: true
          type: string
        tradable_type:
          nullable: true
          type: string
        trade_action:
          nullable: true
          type: string
        upload_tradable_id_to_enfusion:
          type: boolean
        $type:
          type: string
          enum:
            - >-
              Derivitec.Web.Core.Positions.PositionEffectViewModel,
              Derivitec.Web.Core
      required:
        - $type
      type: object
    BookCreateViewModel:
      example:
        name: name
        description: description
        parent_portfolio_ids:
          - 7
          - 7
      properties:
        description:
          maxLength: 100
          minLength: 2
          type: string
        name:
          maxLength: 100
          minLength: 2
          type: string
        parent_portfolio_ids:
          items:
            format: int32
            type: integer
          nullable: true
          type: array
        $type:
          type: string
          enum:
            - Derivitec.Web.Core.Book.BookCreateViewModel, Derivitec.Web.Core
      required:
        - $type
        - description
        - name
      type: object
    TradableViewModel:
      example:
        error_message: error_message
        contract_type: contract_type
        identifier: ''
        quantity: 3.616076749251911
        quantity_round_to_nearest: 2.027123023002322
        currency: currency
        id: 9
        display_name: display_name
        pricing_details_model:
          error_message: error_message
          data:
            - error_message: error_message
              format_string: format_string
              currency: currency
              value: ''
              key: key
              scales_by_qty: true
            - error_message: error_message
              format_string: format_string
              currency: currency
              value: ''
              key: key
              scales_by_qty: true
        tradable_risk_data:
          error_message: error_message
          unit_risks:
            - error_message: error_message
              format_string: format_string
              currency: currency
              value: ''
              key: key
              scales_by_qty: true
            - error_message: error_message
              format_string: format_string
              currency: currency
              value: ''
              key: key
              scales_by_qty: true
        market_date: '2000-01-23T04:56:07.000+00:00'
        results: ''
      properties:
        contract_type:
          nullable: true
          type: string
        currency:
          nullable: true
          type: string
        display_name:
          nullable: true
          type: string
        error_message:
          nullable: true
          type: string
        id:
          format: int32
          type: integer
        identifier:
          default: ''
          nullable: true
          type: string
        market_date:
          format: date-time
          type: string
        pricing_details_model:
          $ref: '#/components/schemas/PricingDetailsModel'
        quantity:
          format: double
          type: number
        quantity_round_to_nearest:
          format: double
          type: number
        results:
          nullable: true
          type: array
          items:
            type: object
            additionalProperties: true
        tradable_risk_data:
          $ref: '#/components/schemas/TradableRiskDataModel'
        $type:
          type: string
          enum:
            - Derivitec.Web.Core.Tradables.TradableViewModel, Derivitec.Web.Core
      required:
        - $type
      type: object
    StringStringKeyValuePair:
      example:
        value: value
        key: key
      properties:
        key:
          nullable: true
          type: string
        value:
          nullable: true
          type: string
      type: object
    ParseErrorLite:
      example:
        tab: tab
        item_array:
          - ''
          - ''
        table_headers:
          - table_headers
          - table_headers
        message: message
        error_column: error_column
      properties:
        item_array:
          items: {}
          nullable: true
          type: array
        message:
          nullable: true
          type: string
        error_column:
          nullable: true
          type: string
        tab:
          nullable: true
          type: string
        table_headers:
          items:
            type: string
          nullable: true
          type: array
        $type:
          type: string
          enum:
            - Derivitec.Web.Models.ParseErrorLite, Derivitec.Web.Models
      required:
        - $type
      type: object
    DataRow:
      properties:
        row_error:
          nullable: true
          type: string
        row_state:
          enum:
            - detached
            - unchanged
            - added
            - deleted
            - modified
          readOnly: true
          type: string
        table:
          nullable: true
          readOnly: true
        item_array:
          items: {}
          nullable: true
          type: array
        has_errors:
          readOnly: true
          type: boolean
      type: object
    PositionEffectsLabelValueViewModel:
      example:
        field: field
        position_effect_id: 5
        value: value
        label_id: 5
      properties:
        field:
          nullable: true
          readOnly: true
          type: string
        label_id:
          format: int32
          type: integer
        position_effect_id:
          format: int32
          type: integer
        value:
          nullable: true
          type: string
        $type:
          type: string
          enum:
            - >-
              Derivitec.Web.Core.Positions.PositionEffectsLabelValueViewModel,
              Derivitec.Web.Core
      required:
        - $type
      type: object
    PricingDetailsModel:
      example:
        error_message: error_message
        data:
          - error_message: error_message
            format_string: format_string
            currency: currency
            value: ''
            key: key
            scales_by_qty: true
          - error_message: error_message
            format_string: format_string
            currency: currency
            value: ''
            key: key
            scales_by_qty: true
      properties:
        data:
          items:
            $ref: '#/components/schemas/KeyValuePairViewModel'
          nullable: true
          type: array
        error_message:
          nullable: true
          type: string
        $type:
          type: string
          enum:
            - Derivitec.Web.Core.PricingDetailsModel, Derivitec.Web.Core
      required:
        - $type
      type: object
    TradableRiskDataModel:
      example:
        error_message: error_message
        unit_risks:
          - error_message: error_message
            format_string: format_string
            currency: currency
            value: ''
            key: key
            scales_by_qty: true
          - error_message: error_message
            format_string: format_string
            currency: currency
            value: ''
            key: key
            scales_by_qty: true
      properties:
        error_message:
          nullable: true
          type: string
        unit_risks:
          items:
            $ref: '#/components/schemas/KeyValuePairViewModel'
          nullable: true
          type: array
        $type:
          type: string
          enum:
            - >-
              Derivitec.Web.Core.Tradables.TradableRiskDataModel,
              Derivitec.Web.Core
      required:
        - $type
      type: object
    KeyValuePairViewModel:
      example:
        error_message: error_message
        format_string: format_string
        currency: currency
        value: ''
        key: key
        scales_by_qty: true
      properties:
        error_message:
          nullable: true
          type: string
        format_string:
          nullable: true
          type: string
        key:
          nullable: true
          type: string
        scales_by_qty:
          type: boolean
        value:
          oneOf:
            - nullable: true
              type: string
            - type: number
            - type: boolean
            - type: array
              items: {}
            - type: object
              additionalProperties: true
        currency:
          nullable: true
          type: string
        $type:
          type: string
          enum:
            - Derivitec.Web.Core.KeyValuePairViewModel, 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

````