Exchanges

Contains exchanges description and provides closer look at its features

Exchanges

While on-the-fly deposits and withdrawals are possible and mostly oriented towards end users, there is a way perform conversion of funds (either crypto to fiat, fiat to crypto or crypto-crypto) with existing merchant balances as long as the exchange pair is supported by the processing. The exchange feature is available via API as well as backoffice, the latter option suits Business Wallet integration type the most in case on-the-fly exchange wasn't used initially.

For exchanges between the USDC tokens, the exchange rate is always 1:1 — this means that 1 USDC in ERC-20 is always equivalent to 1 USDC in SOL.

There are 3 API methods that are associated with exchanges: v2/exchange/calculate - a request that doesn't perform an exchange by itself, but allows to obtain an actual ratio for the subsequent exchange. It can be used both as for obtaining general information about the actual rates for a crypto exchange as well as receiving and fixating exchange ratio for fixed exchange API method. The obtained ratio is viable for one minute, after that another request for an actual ratio calculation should be sent; v2/exchange/fixed - allows to perform an exchange with fixed ratio obtained from the request above. Note - the required parameter "price" can be obtained from the method above. v2/exchange/now - allows to perform an exchange without specifying the ratio beforehand, this method uses an actual ratio from a trading platform at the moment of sending this request to our API.

Last updated

Was this helpful?