The migration guide
This guide helps you migrate Exchange API from v1 to v2 smoothly and efficiently. Exchange API v2 is a faster, safer, and more flexible version of our API.
info
Rates and limits from the Exchange API v2 estimation methods are compatible only with Exchange API v2. You can use them only to create a transaction with the Exchange API v2 methods, such as createTransaction and createFixTransaction.
How to migrate
To migrate Exchange API from v1 to v2, follow these steps:
- Generate private and public keys.
- Switch the API authentication schema.
- Update the endpoint URL to
https://api.criptointercambio.com/v2. - Update your application to account for several breaking changes made in v2.
Updated methods
The following methods has several important updates and new parameters. For details, check the API reference.
| Method | Changelog |
|---|---|
| createFixTransaction |
|
| createTransaction | |
| getExchangeAmount |
Retrieves limits only if the amountFrom value is within them. |
| getTransactions |
|
Deprecated methods
The following methods are not actual in Exchange API v2.
| Deprecated method | Alternative method |
|---|---|
| getPairsParams and getMinAmount | getFixRateForAmount and getExchangeAmount. Ensure the transaction amount is within limits. |
| getFixRate | getFixRateForAmount. Ensure the transaction amount is within limits. |