/fetch/quote
GET/fetch/quote
Fetch quote for swap.
Parameters
Query Parameters
Algorand “mainnet” or “testnet”.
The asset id to swap from.
The asset id to swap into.
The amount in base units of either, the input asset to swap if FIXED_INPUT or the amount of the output asset to swap if FIXED_OUTPUT.
The swap type “FIXED_INPUT” or “FIXED_OUTPUT”.
The maximum group size for the swap group transaction inside the quote to contain.
The fee basis points to charge. Split between Folks Router and Referrer if specified.
The Algorand address to collect the referral fee.
Responses
200
OK.
object
The amount in base units of either, the output asset to receive if FIXED_INPUT or the amount of the input asset to receive if FIXED_OUTPUT.
The difference in price between the quote received and the current price excluding all fees.
The microalgo cost to execute the quote group transaction.
The encoded transaction payload returned by fetch/quote.
400
Request validation error.
object
Missing or malformed query params.
object
404
Request cannot be satisfied.