What is API?
API (Application Programming Interface) is a set of functions and procedures allowing the creation of applications that access the features or data of an operating system, application, or other service. Simply saying, it is a simple and powerful development tool designed to help users quickly and efficiently integrate CoinEx trading functions into their applications.
What can I use it for?
After creating an account on the CoinEx website, developers can create API with different using permissions according to their own needs, and use the API to trade or withdraw automatically. Through the connection between API and exchange, it can realize the automatic trading of digital currency and other functions according to the designed procedure. Programming and quantification are not exactly the same. You can also implement some auxiliary functions, such as obtaining market depth information, buying at regular intervals or trading with setting prices, and so on.
CoinEx API Using Documents
https://docs.coinex.com/api/v2/changelog
How to create API?
1. Visit CoinEx official website (https://www.coinex.com), log in to your account and click [Account] - [API Management] in the upper right corner.
2. Click [Create API] after entering the “API Management” page.
3. Set [API Remark] (ie. API name) and [Applicable IP address] accordingly, tick [Withdraw] and/or [Trade] as needed, enter 2FA code, and then click [Create] after confirming.
Notes:
(1) When filling in the applicable IP address, please enter the IP address of "API device required".
(2) When entering multiple IP addresses, only one per line can be filled in, and a total of 50 can be filled in at most.
(3) Please update your API every 90 days if no applicable IP address is bound.
4. After creating the API successfully, please keep your [Access ID] and [Secret Key] safe and do not share this page with others.
How to Extend the API Validity Period?
An API not linked to an IP address has a validity period of 90 days.
To extend this, simply click [Renew] on the “API Management” page. After passing the 2FA verification, a pop-up will show that the renewal was successful.
How to add whitelist address?
1. Visit the “API Management” page, and click [Add Whitelist Address].
2. Select [Normal Withdrawal] or [Inter-User Transfer], [Address Type], [Coin] and [Public Chain], fill in [Address] and [Remark], click [Confirm] and fill in the 2FA code.
3. After 2FA is verified, you will receive a confirmation email. If you failed to receive it, please click [Resend Email] on the Address Details page.
4. Confirm the [Coin], [Public Chain] and [Address] in your email, and click [Reconfirm].
5. Click [Confirm].
6. The whitelist address is added successfully. Click [View Details] or refresh the [API Management] page to check.
Notes:
(1) With the strong APIs provided by CoinEx, you can use services like market inquiry, trading, deposit, and withdrawal.
(2) Each user can create 50 secret key pairs at MOST.
(3) An API secret key pair is equivalent to account/password pair. For your security, please keep it safe and bind an IP to it.
(4) Each private key can bind to 50 IP addresses at most.
(5) The API will be available 10-15 minutes later after being created successfully.
How to batch add the withdrawal whitelist addresses?
1. Visit the “API Management” page and click on [Batch Add].
2. Click [Download] and upload the corresponding data to the add page, including [Remark], [Coin], [Network], [Address], [Memo], click [Confirm] and fill in 2FA code, then complete the data import.
3. After 2FA is verified, you will receive a confirmation email. If you failed to receive it, please click [Resend Email] on the Address Details page.
4. Confirm the [Coin], [Public Chain] and [Address] in your email, and click [Reconfirm].
5. Click [Confirm].
6. The withdrawal whitelist addresses are batch added successfully. Click [View Details] or refresh the [API Management] page to check.
Notes:
(1) A maximum of 100 whitelist addresses can be added at a time.
(2) Only files in CSV format will be supported.
(3) The “Network” in the CSV file needs to be consistent with the Public Chain Type on the deposit page. Example: The public chain type of the deposit page is CSC, and the network in the file should also be CSC.
If the error code "Number of Fields Does not Match" is reported, please check whether the network, address or memo in the file match or not.
coin |
network |
address |
memo |
CET |
CSC |
XXXX |
|