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

# Merge Contracts

> The operation burns matching YES/NO contract pairs (X YES and X NO), permanently removing them from the user's position without affecting the order book or market price.



## OpenAPI

````yaml /swagger.json post /trade/merge
openapi: 3.0.1
info:
  contact: {}
  title: VoxFi API
  version: 0.0.1
servers:
  - url: https://data-api-dev.voxfi.com.br/v1
security: []
paths:
  /trade/merge:
    post:
      tags:
        - trade
      summary: Merge Contracts
      description: >-
        The operation burns matching YES/NO contract pairs (X YES and X NO),
        permanently removing them from the user's position without affecting the
        order book or market price.
      parameters:
        - name: x-api-key
          in: header
          description: API Key
          required: true
          schema:
            type: string
      requestBody:
        description: Merge Contracts Input
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/models.MergeContractsRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/models.MergeContractsResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                type: object
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                type: object
        '429':
          description: Too many requests
          content:
            application/json:
              schema:
                type: object
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
components:
  schemas:
    models.MergeContractsRequest:
      type: object
      required:
        - market_id
        - quantity
      properties:
        market_id:
          type: string
        quantity:
          type: integer
    models.MergeContractsResponse:
      type: object
      properties:
        message:
          type: string
        success:
          type: boolean

````