What is API?
An API (Application Programming Interface) is a software interface used to define how different system components interact with each other. Simply put, an API is a powerful and efficient development tool that allows users to quickly integrate CoinEx's trading functions or data into their own applications or systems.
What can I use it for?
After registering an account on the CoinEx official website, developers can create APIs with different permissions based on their specific needs and securely access exchange features through these APIs. With the help of APIs, users can not only automate cryptocurrency trading but also obtain real-time market data, view order book depth, set scheduled purchases, or place limit orders, significantly improving trading efficiency and strategy execution capabilities.
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 select [API Management] from the dropdown menu under the [Avatar] icon in the top-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 (SMS/TOTP/Passkey), and then click [Create] after confirming.
Notes:
(1) When entering the bound IP address, please provide the public IP address of the device using the API (IPv4 and IPv6 are supported).
(2) If multiple IP addresses are required, enter them in a format where each IP address is on a separate line, with a maximum of 50 entries allowed.
(3) If a fixed IP is not bound, the API will expire after 90 days, and renewal will be required at that time.
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?
1. 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.
2. 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 (SMS/TOTP/Passkey).
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] again.
6. The whitelist address is added successfully. Click [View Details] or refresh the [API Management] page to check.
Notes:
(1) CoinEx provides powerful API functionalities, allowing users to access services such as market data queries, trading, deposits, and withdrawals via the API.
(2) Each user can create up to 50 key pairs, with each key supporting a maximum of 50 bound IP addresses.
(3) API key pairs are equivalent to account credentials (username and password). Please keep them secure. For enhanced security, it is recommended to bind the API key to specific IP addresses.
(4) Once created, the API will take effect within 10-15 minutes.
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] again.
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. For example, when adding the CET token, the corresponding blockchain type for the address is CSC Smart Chain.
You can call the assets/deposit - withdraw - config API to retrieve the corresponding information, where ccy corresponds to coin and chain corresponds to network.
| coin | network | address | memo |
| CET | CSC | XXXX |