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

# Toggle market types

> Enable or disable market types in bulk.



## OpenAPI

````yaml /zh/mm-api/openapi.json patch /api/v1/client/market-allowlist
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/client/market-allowlist:
    patch:
      tags:
        - Configuration
      summary: Toggle market types
      description: Enable or disable market types in bulk.
      operationId: patch_market_allowlist_api_v1_client_market_allowlist_patch
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MarketAllowlistPatchBody'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: >-
                  Response Patch Market Allowlist Api V1 Client Market Allowlist
                  Patch
        '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:
    MarketAllowlistPatchBody:
      properties:
        sportId:
          type: integer
          title: Sportid
        updates:
          items:
            $ref: '#/components/schemas/MarketTypeUpdate'
          type: array
          title: Updates
      type: object
      required:
        - sportId
        - updates
      title: MarketAllowlistPatchBody
      description: Request body for PATCH /client/market-allowlist.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    MarketTypeUpdate:
      properties:
        marketType:
          type: string
          title: Markettype
          description: Market type, e.g. 'moneyline', 'totals'
        playerProp:
          type: boolean
          title: Playerprop
          description: True for player prop variants
          default: false
        enabled:
          type: boolean
          title: Enabled
          description: True to enable (default-on), False to disable
      type: object
      required:
        - marketType
        - enabled
      title: MarketTypeUpdate
      description: One toggle in a PATCH /client/market-allowlist body.
    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.

````