Content of this article:
What is API trading and can I use it?
How to Create an API for Sub-Accounts?
* API Trading requires you to have a certain level of financial and technical background. For API documentations, please refer to: https://doc.xt.com/
* Creating an API key allows third-party websites or applications to access XT platform market or conduct real-time trading. To control risks, please complete KYC before creating an API.
*How to complete KYC? Please check the article here: How to Complete Identity Verification (KYC)?
What is API Trading and can I use it?
API trading (short for application programming interface) lets you connect to two applications – for example, your XT account and your custom-built platform based on our API documentation.
Trading with APIs lets you access our system directly – giving you faster order execution using your own trading strategy.
Trading with our APIs is an easy way to get live market data, historical prices and execute trades from the public trades or any of your XT accounts, allowing you to get the information delivered directly to you, ensuring speed and efficiency.
Using API Trading would require you to have a certain level of financial and technical background, For API documentation, please refer to: https://doc.xt.com/
How to apply for API trading?
- Visit https://www.xt.com/ and login to your account. From User Center, click 'API Management'.
- Click on 'Create API' and 'Submit for review' to submit application for API trading.
Note: API licensing requires further reviews for risk control. Please ensure a fund greater than 50,000 USDT in your account for faster approval. - Please wait patiently as the application will be reviewed in 3-5 business days. Once it is approved, you may proceed with API key creation.
How to create an API key?
* To protect your assets, there is NO way to find your Secret Key if you forget it. You are suggested to delete the API and generate a new one instead.
- Visit https://www.xt.com/ and login to your account. From User Center, click 'API Management'.
Note: Each user can create up to 10 API keys. API keys are closely related to account security. Please do not disclose your API keys to avoid asset loss. For security reasons, it is recommended to bind the IP to the API key. Fill in a single IP address or IP segment directly, and separate multiple IP addresses or IP segments with commas, such as: 192.168.1.1, 192.168.1.2, 192.168.1.3). - Input the 'Alias Name' (required) and 'Whitelist IP' (optional).
- Enter the Google verification code as required on the page, and then click 'Create API'.
Note: The API provides query permissions by default. The services of trading and withdrawal are available after the functions of trading and withdrawal are authorized. - Upon key generation, the Public Key and Private Key of the API will be displayed and only be displayed ONCE. Make sure you copy and store both keys and do NOT share this page for the safety reasons.
Note: Please be advised that for safety purposes, there is NO way to find your Secret Key if you forget it. You can delete the API and generate a new one. - You have successfully created an API key. You may click 'Modify' to edit your alias name, authorities, and IP address. You may also delete your API key by clicking 'Delete'.
How to Create an API for Sub-Accounts?
- Visit https://www.xt.com/ and log in to your account. Click on 'Sub-account' in the user center.
- On the current page, click on 'API Management', select the sub-account for which you want to create an API, and click 'Create API'.
- Follow the on-screen prompts to fill in the necessary information for creating the API account. After confirming the accuracy of the information, submit the security verification and click 'Create.'
- In the 'API Management' interface, you can view the details of all sub-accounts' APIs. You can click 'Modify' to edit your remarks, authorization, and IP address, or click 'Delete' to remove your API key.