v1

latestOpenAPI 3.0.32026-07-237108.5 KB
Quotes

Get trade quote for fixed input

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.

get/quoteForFixedInput/{tokenA}/{tokenB}

Path parameters

tokenA'CC' | 'USDCx' | 'CBTC' | 'cETH' | 'HANDL' | 'EDELx' | 'SBC' required

The name/symbol of the first token (URL encoded).

tokenB'CC' | 'USDCx' | 'CBTC' | 'cETH' | 'HANDL' | 'EDELx' | 'SBC' required

The name/symbol of the second token (URL encoded).

Query parameters

givingAmountnumber double required

The amount of token A the user is giving

Response

Trade quote

user_getsnumber double required

The amount of output token the user will receive.