---
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}`

## Request

- Base URL: `https://api.tradecraft.fi/v1`
- URL: `https://api.tradecraft.fi/v1/quoteForFixedInput/{tokenA}/{tokenB}`
- Auth: none declared

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.dev/tradecraft/apis/tradecraft-amm-http-api.md) - [All operations](https://skmtc.dev/tradecraft/apis/tradecraft-amm-http-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tradecraft/apis/tradecraft-amm-http-api/revisions/d640e54c230b?raw)
