---
title: "Get DEX and CEX min/max amounts"
method: GET
path: "/minMax"
tags: ["MinMax"]
---

# Get DEX and CEX min/max amounts

`GET /minMax`

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)

## Query parameters

- `tokenIdFrom` string, required
- `tokenIdTo` string, required

## Response `200`

Success

- MinMaxResponse
  - `cex` object, nullable, required — CEX min/max values
    - `maxOut` number, double, required — Maximum receive amount when using amountType=receive (CEX, in to-token units)
    - `minOut` number, double, required — Minimum receive amount when using amountType=receive (CEX, in to-token units)
    - `max` number, double, required — Maximum swap amount for CEX
    - `min` number, double, required — Minimum swap amount for CEX
  - `dex` object, nullable, required — DEX min/max values
    - `maxOut` number, double — Maximum receive amount when using amountType=receive (DEX does not support exact-out — always undefined)
    - `minOut` number, double — Minimum receive amount when using amountType=receive (DEX does not support exact-out — always undefined)
    - `max` number, double, required — Maximum swap amount for DEX
    - `min` number, double, required — Minimum swap amount for DEX
  - `private` object, nullable, required — Private/anonymous CEX min/max values
    - `maxOut` number, double, required — Maximum receive amount when using amountType=receive (private swaps, in to-token units)
    - `minOut` number, double, required — Minimum receive amount when using amountType=receive (private swaps, in to-token units)
    - `max` number, double, required — Maximum swap amount for private/anonymous CEX swaps
    - `min` number, double, required — Minimum swap amount for private/anonymous CEX swaps

## Other responses

- `400` — Bad request - missing required parameters
- `422` — Validation Failed
- `503` — Service Unavailable

---

[API](https://skmtc.net/houdiniswap/apis/houdiniswap-backend.md) · [All operations](https://skmtc.net/houdiniswap/apis/houdiniswap-backend/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/houdiniswap/houdiniswap-backend/revisions/2063dbc88d59/schema)
