API Reference

Exchange

Creating exchange via API

  1. Create an exchange by using the method POST | Create exchange;
  2. Get exchange details and state by using the method POST | Get exchange;

Scheme of information process interaction

Below is an example of creating a exchange from a client’s site or application.

Names of requests on the scheme indicate certain payment API methods.



Exchange statuses:

StatusDescription
IN_PROGRESSThe exchange order has been created and is awaiting execution.
COMPLETEDThe funds have been successfully exchanged on the account.
FAILEDAn error occurred during the exchange. There may be many reasons for the error. You can follow the steps below to fix it:

1. Wait for a while and create a new exchange.
2. Contact our technical support.

Exchange statuses

Diagram indicate exchange statuses, arrows indicate processes a successful completion of which transfers an exchange from one status to another.



Create an exchange via API with additional functions (optional requests)

  1. If you want to make sure that your account has enough assets for exchange and get available asset balances on the account, then use this function:
    • Check account balance and ensure enough assets for exchange are available by using the method POST | Get the account;
  2. If you want to get a list of available currency pairs for exchanges, use this function:
  3. If you want to know the maximum and minimum available limits for currency exchange, use this function:
  4. If you want to get a preliminary calculation of the exchange, then use this function:
  5. Create an exchange by using the method POST | Create exchange;
  6. Get exchange details and state by using the method POST | Get exchange;

Scheme of information process interaction

Below is an example of creating a exchange from a client’s site or application.

Names of requests on the scheme indicate certain payment API methods.