Token Swap
Retrieve a swap rate
Changed onGet the current market rate for swapping an amount of sourceCurrency into destinationCurrency. Currently only supported between usdc and usdt.
get/v2/wallets/swaps/rate
Request
- Base URLhttps://production.hifibridge.com
- URLhttps://production.hifibridge.com/v2/wallets/swaps/rate
- AuthHTTP bearer
Query parameters
sourceCurrency'usdc' | 'usdt' required
Currency being swapped from.
destinationCurrency'usdc' | 'usdt' required
Currency being swapped to.
amountstring required
Amount of sourceCurrency to swap.
Response
Success
Example response
{
"sourceCurrency": "usdc",
"destinationCurrency": "usdt",
"sourceAmount": "100.00",
"destinationAmount": "99.98",
"conversionRate": "0.99980"
}Changes
- info
endpoint added
- info