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

# Deactivate tournament

> Stop trading a tournament. Cancels its open orders.



## OpenAPI

````yaml /zh/mm-api/openapi.json post /api/v1/tournaments/{tournament_id}/deactivate
openapi: 3.1.0
info:
  title: MM-V2 Trading API
  description: >

    ## MM API


    The MM engine places orders, hedges positions, and tracks P&L automatically.

    This API lets you monitor trading activity, control your engine, and
    configure

    which market types and tournaments to trade.


    ### Authentication

    All endpoints require the `X-API-Key` header with your client UUID.


    ### Rate limits

    - REST API: 2,000 requests/minute per client

    - WebSocket: 5 concurrent connections per API key
  version: 1.0.0
servers: []
security: []
tags:
  - name: Trading Controls
    description: Pause, resume, stop, and start your trading engine.
  - name: Orders & Bets
    description: Inspect and cancel exchange orders, view hedge bets placed on bookmakers.
  - name: Performance
    description: Hedged positions, P&L and turnover, exchange account balances.
  - name: Configuration
    description: Choose which market types and tournaments your engine trades.
paths:
  /api/v1/tournaments/{tournament_id}/deactivate:
    post:
      tags:
        - Configuration
      summary: Deactivate tournament
      description: Stop trading a tournament. Cancels its open orders.
      operationId: deactivate_tournament_api_v1_tournaments__tournament_id__deactivate_post
      parameters:
        - name: tournament_id
          in: path
          required: true
          schema:
            type: integer
            title: Tournament Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: >-
                  Response Deactivate Tournament Api V1 Tournaments  Tournament
                  Id  Deactivate Post
        '401':
          description: Invalid or missing API key
        '404':
          description: Resource not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Client API key (UUID format). Get your key from the admin dashboard.

````