---
title: "Get trade quote for fixed input"
method: GET
path: "/quoteForFixedInput/{tokenA}/{tokenB}"
tags: ["Quotes"]
---

# Get trade quote for fixed input

`GET /quoteForFixedInput/{tokenA}/{tokenB}`

Calculate how much of token B the user will receive when providing a fixed amount of token A.
Uses the constant product formula with double-sided fees.
 Note that token A and token B do not always correlate to the first and second tokens in the pool name.

## Path parameters

- `tokenA` 'CC' | 'USDCx' | 'CBTC' | 'cETH' | 'HANDL' | 'EDELx' | 'SBC', required
- `tokenB` 'CC' | 'USDCx' | 'CBTC' | 'cETH' | 'HANDL' | 'EDELx' | 'SBC', required

## Query parameters

- `givingAmount` number, double, required

## Response `200`

Trade quote

- QuoteTradeFixedInputResponse
  - `user_gets` number, double, required — The amount of output token the user will receive.

## Other responses

- `400` — Invalid parameters or AMM not found

---

[API](https://skmtc.net/tradecraft/apis/tradecraft-amm-http-api.md) · [All operations](https://skmtc.net/tradecraft/apis/tradecraft-amm-http-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tradecraft/tradecraft-amm-http-api/revisions/d640e54c230b/schema)
