Exchanges
While on‐the‐fly exchanges for deposits and withdrawals are possible and mostly oriented towards end users, there is a way to perform any conversion of funds (crypto to fiat, fiat to crypto or crypto to crypto) with the existing merchant’s balances. The only requirement for this is that the exchange pair is supported by our processing. This feature is available via the API as well as in the back‐office. The latter option is most suitable in the case when the on‐the‐fly exchange was not used initially.
For exchanges between the USDT tokens or between the USDC tokens, the exchange rate is always 1:1 — for example, 1 USDT in TRC‐20 is always equivalent to 1 USDT in ERC‐20.
Exchange using the API
There are three API methods associated with the exchanges:
/exchange/calculate— a request that does not perform the exchange by itself, but allows you to obtain the actual ratio for the subsequent exchange. It can be used to get general information about the actual exchange rate for the selected pair of currencies as well as to receive and fix the exchange ratio for the/exchange/fixedAPI method. The obtained ratio is valid for one minute, after which the request should be repeated./exchange/fixed— performs an exchange with the ratio obtained from the request above./exchange/now— performs an exchange without specifying the ratio beforehand. This method uses the latest ratio from the trading platform at the time of sending this request to our API.
Note
The exchange feature available through the back‐office is implemented via the /exchange/fixed method. The exchange ratio changes every minute and is automatically displayed within the exchange dialog.
Limits
The minimum exchange amount is equivalent to 30 USD. This limitation does not apply to on‐the‐fly ex‐ changes for deposits and withdrawals. For up‐to‐date information about the on‐the‐fly exchanges, please refer to the Confirmations and limits section.
More detailed information on the min limits of exchange operations for specific currencies should be obtained via the /currencies/pairs API endpoint, because they may vary dynamically.