Get Quote
Returns feasible routes and best quotations
This API returns the best quotes from DEXs on the Aggregator of XY Finance.
get
endpoint
/quote
Get the best quote for bridging tokens
$ curl https://open-api.xy.finance/v1/quote?srcChainId=1&fromTokenAddress=0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee&amount=500000000000000000&destChainId=56&toTokenAddress=0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
This request is asking a quote of 0.5 ETH on Ethereum to BNB on BSC.
IMPORTANT:
Note that the amount parameter should be padded with zeroes. For example, pass
100000000
instead of
100
if the decimals of the token is 6.
Last modified 1mo ago