---
title: "OpenPositionsInputJsonApiType"
url: "https://apiportal-qa.np.six-group.com/apis/simulator-ch-qa-v1/versions/c729661a-062a-4141-9704-f637226fa5f0/schemas/OpenPositionsInputJsonApiType"
---

> Full API specification: https://apiportal-qa.np.six-group.com/apis/simulator-ch-qa-v1/versions/c729661a-062a-4141-9704-f637226fa5f0.md

# OpenPositionsInputJsonApiType

## OpenAPI definition

```yaml
openapi: 3.0.2
info:
  title: DCleaR - Risk Simulator API - v1
  version: 1.0.0
servers:
  - url: https://api-qa.np.six-group.com/clearing/risk/simulator/dev/v1
  - url: https://api-qa.np.p2p.six-group.com/clearing/risk/simulator/dev/v1
  - url: https://api-qa.np.fip.six-group.com/clearing/risk/simulator/dev/v1
components:
  schemas:
    OpenPositionType:
      type: object
      description: Data structure for all operations.
      allOf:
        - type: object
          properties:
            attributes:
              $ref: "#/components/schemas/OpenPositionAttributesType"
        - $ref: "#/components/schemas/BasicResourceType"
    OpenPositionAttributesType:
      type: object
      properties:
        date:
          type: string
          description: Creation date of the calculation
          format: date
          example: 2022-01-02
        riskGroupId:
          $ref: "#/components/schemas/RiskGroupIdType"
        compensationMemberId:
          pattern: ^[A-Z0-9]{2,3}$
          type: string
          description: Reference to compensation member
          example: A2
        guaranteeAccount:
          pattern: ^[A-Z0-9]{10}$
          type: string
          description: Guarantee account reference
          example: G00001A23S
        contract:
          pattern: ^[A-Z0-9]{10}$
          type: string
          description: Contract reference
          example: CLE93211A2
        buyVolume:
          type: number
          description: Buy Volume in traded currency defined in the account
          format: double
          example: 190003.0434
        sellVolume:
          type: number
          description: Buy Volume in traded currency defined in the account
          format: double
          example: 73882.1234
        price:
          type: number
          description: Contract price at date
          format: double
          example: 1.234543
      description: Basic attributes of the object.
    BasicResourceType:
      required:
        - type
      type: object
      properties:
        id:
          $ref: "#/components/schemas/UUIDType"
        type:
          type: string
          description: Type of the resource attributes being represented
          example: simulation
          enum:
            - simulation
            - calculation
            - result
            - open-position
            - import-open-positions
            - result-detail
            - report
    RiskGroupIdType:
      pattern: ^[A-Z0-9]{2}$
      type: string
      description: Risk Group ID Identification in DClear system.
      example: C1
    UUIDType:
      pattern: ^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$
      type: string
      description: UUID type implementing the [RFC
        4122](https://www.ietf.org/rfc/rfc4122.txt).
      format: string
      example: 95b1b467-bd69-4436-8181-96c16408c230
    OpenPositionsInputJsonApiType:
      required:
        - data
      type: object
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/OpenPositionType"
```
