Quote Response Detail
Quote response detail
Status (Result Type)
Using resultType
field, you could decide if the quote response is valid or need to show a proper message to the user. Possible values for this field are OK
, HIGH_IMPACT
, INPUT_LIMIT_ISSUE
and NO_ROUTE
.
Limits (Amount Restrictions)
The amountRestriction
field indicates the minimum and maximum possible input amount for this quote. EXCLUSIVE
field means that min<input<max
and INCLUSIVE
means min<=input<=max
.
Fee (Expense Types)
These are two possible types of fees (expenseType
field in the fee
array).
And this is a sample fee object you get through the quote/swap
endpoint. You could show the user feeUsd
amount as the total fee he/she should pay for this route.
Last updated