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

# Update market configuration or status (admin)

> Requires the `orderbook_market:manage` permission.



## OpenAPI

````yaml /xentfi-pro/openapi.json patch /v1/orderbook/markets/{marketSymbol}
openapi: 3.0.3
info:
  title: XentFi Pro API
  version: 1.0.0
  description: >-
    API documentation for XentFi Pro — programmatic liquidity and trading on
    XentFi's hybrid off-chain matching / on-chain settlement order book.
    Requires a Pro account and an API key with the Trade scope. See the XentFi
    Pro Overview and Authentication guides in this tab before making requests.
  contact:
    name: XentFi Pro Support
    email: support@xentfi.com
servers:
  - url: https://api.pro.xentfi.com
    description: XentFi Pro production server
security: []
tags:
  - name: OrderBook
    description: Place, list, cancel, and inspect orders and their fills.
  - name: OrderBook Markets
    description: Market configuration, order book depth, trades, ticker, and candles.
  - name: OrderBook Settlement
    description: Inspect on-chain settlement batches produced from matched trades.
  - name: OrderBook Ops
    description: Engine health/status and realtime (websocket) channel authorization.
paths:
  /v1/orderbook/markets/{marketSymbol}:
    patch:
      tags:
        - OrderBook Markets
      summary: Update market configuration or status (admin)
      description: Requires the `orderbook_market:manage` permission.
      operationId: updateMarket
      parameters:
        - name: marketSymbol
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateMarketRequest'
      responses:
        '200':
          description: Market updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Market'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Missing orderbook_market:manage permission
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Market not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - ApiKeyAuth: []
          OrgIdAuth: []
components:
  schemas:
    UpdateMarketRequest:
      type: object
      properties:
        makerFeeBps:
          type: integer
        takerFeeBps:
          type: integer
        batchAuctionIntervalMs:
          type: integer
        maxDeviationFromMidBps:
          type: integer
        maxOrderSize:
          type: string
        status:
          $ref: '#/components/schemas/MarketStatus'
        pauseReason:
          type: string
    Market:
      type: object
      properties:
        id:
          type: string
        symbol:
          type: string
        baseAssetId:
          type: string
        quoteAssetId:
          type: string
        settlementBlockchainId:
          type: string
          description: >-
            FK to Blockchain.id (uuid) — the numeric EVM chain ID is resolved
            from this at settlement time.
        settlementMasterWalletId:
          type: string
        tickSize:
          type: string
        lotSize:
          type: string
        minOrderSize:
          type: string
        maxOrderSize:
          type: string
          nullable: true
        makerFeeBps:
          type: integer
        takerFeeBps:
          type: integer
        batchAuctionIntervalMs:
          type: integer
        maxDeviationFromMidBps:
          type: integer
        status:
          $ref: '#/components/schemas/MarketStatus'
        pauseReason:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: NOT_FOUND
            message:
              type: string
              example: Wallet not found
            timestamp:
              type: string
              format: date-time
            requestId:
              type: string
    MarketStatus:
      type: string
      enum:
        - ACTIVE
        - PAUSED
        - HALTED
        - AUCTION_ONLY
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: apiKey
    OrgIdAuth:
      type: apiKey
      in: header
      name: orgId

````