You can log into your account via:https://pro.whalefin.com/userCenter/apiSetting to create an API Key.
Step 1) Log into https://pro.whalefin.com/login
Step 2) Click the “Account” icon and select "API Management" from the dropdown menu
Step 3) Each user can only create a maximum of 20 API Keys. For security reasons, it is recommended to bind an IP address to the API Keys. Each API Key can bind up to 20 IP addresses. Input a single IP address or enter multiple IP addresses separated by commas like so: 192.168.1.1,192.168.1.2.
- "Remark" - Compulsory
- "Bind IP Address" - Optional (Bind up to 20 IP addresses per API Key)
- “Authority” - Required (Can choose multiple)
- Click “Submit” to create an API Key
Please visit https://pro.whalefin.com/apidoc for API documentation.
Step 4) After successfully binding an IP address, you can access the API Key under “My API Keys” list. Click under “API Secret” and you will be prompted to fill in an email verification code and a Google verification code (if enabled). Upon verification, you can check your API Key.
Note: You will need to verify your API Key every time you access the API Key.
Step 5) To disable your API Key, simply click “Close”. Re-enable whenever needed. You may also “Delete” the API Key anytime.
Note:
API Key can only be used in the production environment
Sub-accounts cannot use API Key.
Differences between Rest API & WebSocket:
Rest API is applicable for Swap trading and asset withdrawal, whereas WebSocket API works better with obtaining market and depth information. Once the connection is established, WebSocket API can instantly capture real-time changes in the server, which suits HFT well.