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}
Request
- Base URLhttps://api.tradecraft.fi/v1
- Authnone declared
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
Changes
No recorded changes to this operation across all 1 revision of this API.