Unizen Product Documentation
Ask or search

⌃K
Comment on page

GET /trade/v1.0/{chainId}/quote/single

Find all available quotes for single-chain trade via Unizen DEX Aggregator
get
/trade/v1/{chainId}/quote/single
By passing in the params, you will receive all available quotes for the trade from our supported DEXes
Parameters
Path
chainId*
number
Chain id of the network
Query
fromTokenAddress*
string
The address of the token being traded. If native, use address zero.
toTokenAddress*
string
The address of the token to receive in exchange. If native, use address zero.
amount*
string
Amount of tokens being traded
slippage
number
The maximum slippage allowed for the quote, in decimal form. Defaults to 0.005, which means 0.5% slippage.
deadline
number
The timestamp of the transaction deadline.
isSplit
boolean
Whether split trade is enabled. Default is true.
isExactOut
boolean
Whether it is an exact out trade.
Header
X-Api-Key
string
Api key
Responses
200: OK
The best quote for the given trade parameters.