2 - Retrieve exchange rate
Endpoint to gather detailed information about a potential swap
This endpoint returns information about the expected result of the swap. It provides the expected output amount, as well gives information about the slippage, and fee involved for that specific swap.
Get exchange rate
GET
https://api-wallet.venly.io/api/swaps/rates
Query Parameters
Name | Type | Description |
---|---|---|
fromSecretType | string | Blockchain to use |
toSecretType | string | Blockchain to use |
fromToken | string | Token address of the source token |
toToken | string | Token address of the destination token |
amount | number | Amount to swap |
orderType | string | SELL |
Example
Request
Response
Last updated