1. Log in to your account on Web Portal and click []-[API Management].
2. Fill in the API Key information, including notes, IP address and authorization, click [Submit].
a. Each account can only create a maximum of 20 API Keys.
b. "Bind IP address" is optional.
- For security reasons, it is recommended to bind an IP address to the API Key.
- Each API Key can bind up to 20 IP addresses. You can directly enter a single IP address, or enter multiple IP addresses separated by commas.
- We also support IPv4 subnet mask and IPv6 Address.
For example: 192.168.1.1,192.168.1.2,192.168.1.1/24,4843:97bc:1768:8967:d1d6:bdcf:6a10:c448
3. After successful creation, you can view the record in the "My API Key" list.
- To disable your API Key, simply click [Close]. You can re-enable it again anytime.
- Click [Delete] to remove the API Key, which cannot be recovered.
4. For querying and trading via the API Key, please refer to the API Documentation.
Notes:
- API Keys can only be used in the production environment.
- Primary and sub-accounts support independent creation of API Keys. The Admin and Manager roles of the primary account have the authority to view and manage API Keys for sub-accounts.
- Differences between WebSocket & Rest API:
Rest API is applicable for CNF trading or asset withdrawal.
WebSocket API works better with obtaining market and depth information. Once the connection is established, WebSocket API can instantly capture real-time price changes in the server.