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

# Get DEX and CEX min/max amounts

> Get combined CEX and DEX min/max swap amounts for a token pair and return exchange limits.

Supports both ObjectId and CEX token ID formats for tokenIdFrom/tokenIdTo:
- ObjectId format: "6689b73ec90e45f3b3e51566" (for DEX operations)
- CEX token ID format: "ETH", "BNB", "USDT" (for CEX operations)



## OpenAPI

````yaml https://api-partner.houdiniswap.com/v2/openapi.json get /minMax
openapi: 3.0.0
info:
  title: houdiniswap-backend
  version: 2.1.1
  description: Houdiniswap Backend
  license:
    name: ISC
  contact: {}
servers:
  - url: https://api-partner.houdiniswap.com/v2
security: []
paths:
  /minMax:
    get:
      tags:
        - MinMax
      summary: Get DEX and CEX min/max amounts
      description: >-
        Get combined CEX and DEX min/max swap amounts for a token pair and
        return exchange limits.


        Supports both ObjectId and CEX token ID formats for
        tokenIdFrom/tokenIdTo:

        - ObjectId format: "6689b73ec90e45f3b3e51566" (for DEX operations)

        - CEX token ID format: "ETH", "BNB", "USDT" (for CEX operations)
      operationId: GetMinMax
      parameters:
        - description: Source token identifier (ObjectId or CEX token ID like "ETH")
          in: query
          name: tokenIdFrom
          required: true
          schema:
            type: string
        - description: Destination token identifier (ObjectId or CEX token ID like "BNB")
          in: query
          name: tokenIdTo
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MinMaxResponse'
        '400':
          description: Bad request - missing required parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation Failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
        '503':
          description: Service Unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - apiKey: []
components:
  schemas:
    MinMaxResponse:
      properties:
        cex:
          properties:
            max:
              type: number
              format: double
              description: Maximum swap amount for CEX
              example: 16.914175
            min:
              type: number
              format: double
              description: Minimum swap amount for CEX
              example: 0.0253712625
          required:
            - max
            - min
          type: object
          description: CEX min/max values
        dex:
          properties:
            max:
              type: number
              format: double
              description: Maximum swap amount for DEX
              example: 50
            min:
              type: number
              format: double
              description: Minimum swap amount for DEX
              example: 0.005
          required:
            - max
            - min
          type: object
          description: DEX min/max values
        private:
          properties:
            max:
              type: number
              format: double
              description: Maximum swap amount for private/anonymous CEX swaps
              example: 16.914175
            min:
              type: number
              format: double
              description: Minimum swap amount for private/anonymous CEX swaps
              example: 0.0845708751
          required:
            - max
            - min
          type: object
          description: Private/anonymous CEX min/max values
      required:
        - cex
        - dex
        - private
      type: object
      additionalProperties: false
    ErrorResponse:
      properties:
        message:
          type: string
        code:
          type: string
        requestId:
          type: string
      required:
        - message
        - code
      type: object
      additionalProperties: false
    ValidationError:
      properties:
        message:
          type: string
        code:
          type: string
        requestId:
          type: string
        fields:
          $ref: '#/components/schemas/FieldErrors'
      required:
        - message
        - code
        - fields
      type: object
      additionalProperties: false
    FieldErrors:
      properties: {}
      type: object
      additionalProperties:
        properties:
          value: {}
          message:
            type: string
        required:
          - message
        type: object
  securitySchemes:
    apiKey:
      type: apiKey
      name: Authorization
      in: header

````