In short: The BingX API key is created on the website, into account, API management, and requires two-factor authentication with Google Authenticator. Check only the permissions that use requires: reading for tax tools and monitoring, spot trading or robot futures. Activate the restriction for trusted IPs, never release loot and save the secret key at the time of creation, because it appears only once.
An API key allows a program to speak to your BingX account without your password: a robot that sends orders, a spreadsheet that reads balances, or a tax system that matters the history. It's practical and, if misconfigured, dangerous: whoever has the key does everything that their permissions allow. This guide is the practical step by step on BingX. The technical part, with HMAC signature, CCXT library and examples in Python, is in our guide to Crypto brokerage API.
API Key Golden Rules
Do you really need an API?
Before generating the key, check if it is needed. On BingX, multiple automations work without API:
- Grid and Martingale robots They run inside the brokerage, without a key. Vide grid bot e BingX trading robots.
- TradingView Alerts They can turn orders through Signal Trading, which uses webhook and does not need to program. The step by step is in Signal Trading with TradingView.
- Copy trading It also doesn't need a key for those who copy it. Vide copy trading at BingX.
The API makes sense when you run a robot of its own (in Python, for example), connects an external automation platform, or uses a system that imports the history to calculate tax. If this is your case, go ahead. To start programming, see How to create a trading robot e Python for trading.
Before creating: Prepare the account
- Authenticator activated. The HASH7 tutorial for BingX informs you that you can only create keys with the Google Authenticator enabled, and the Cryptohopper guide shows that BingX asks for email code and Google Authenticator at creation.
- Linked account protections. Anti-phishing code, whitelist of looting addresses and Passkey reduce the damage if someone tries to use the account. BingX explains the resources in Anti-phishing code and whitelist and in the Passkey's Guide.
- Use the computer. The HASH7 tutorial recommends doing it for the web version.
- Consider a sub-account. The Cryptohopper guide cites the option to manage sub-accounts: leave the robot in a sub-account with a limited balance isolates the risk from the rest of the assets.
Step by step to create the key
The path below was assembled from the connection guides of the Cryptohopper, from Altrady and of HASH7 for BingX. Button names may vary with the website version and language.
- Open API ManagementOn the website, click the account icon in the upper right corner and choose API Management (API Management).
- Create the keyClick Create API, choose the account (main or sub-account) and give it a name that identifies the usage, such as “Robo-Spot-VPS”.
- Confirm the identityEnter the e-mail code and the Google Authenticator code.
- Copy the API Key and Secret KeyThe Secret Key appears only now. Save in a password manager. If you close the window without copying, you will have to create another key.
- Set the permissionsUnder Edit, check only what is necessary: reading, spot trading or futures trading. Never mark loot.
- Restrict by IPEnable the option to restrict access to trusted IPs and paste the fixed IP of the server or platform that will use the key.
- Save and confirm againClick Save and confirm with email and authenticator. Only then paste the key into the tool.
Which permission to mark for each use
| Use | Permission | IP restriction |
|---|---|---|
| Worksheet or panel that only reads balance | Reading | Recommended |
| Tax or Accounting System | Reading (Cryptact only asks for “read”) | Recommended, if the service informs IPs |
| Spot robot | Spot reading and negotiation | Mandatory in practice |
| Futures robot | Reading and negotiation of futures | Mandatory in practice |
| Any use | Loot: never | Not applicable |
Altrady's guide is straightforward: the platform only needs permission to trade and see balance, and “you never need to grant)” withdrawal permission. It goes for any tool. A robot does not need to withdraw to operate. If a service asks for loot, be suspicious.
IP restriction: the most important lock
With the restriction for trusted IPs on, the key only works from the addresses you registered. If it leaks, whoever copied it can't use it from somewhere else. In practice:
- Own Robot: Rotate on a server with a fixed IP (one VPS, for example) and register that IP. Residential internet usually has an IP that changes, which knocks the connection.
- Third party platform: Use the IPs that it publishes. Cryptohopper, for example, shows the addresses in the configuration itself.
- Changed server? Update the IP list before migrating, or the robot stops sending orders.
One key per tool, and separate SPOT from futures
Create a key for each tool, with a clear name. If one of them has a problem, you just revoke that one. Altrady also suggests separate keys for spot and futures in heavy use, to avoid BingX's requisition limit errors. Another useful detail: the perpetual position mode (one-way or hedge) also applies to the API and third party platforms, according to the BingX Guide. If you change the mode in the app, the robot starts operating in the new mode, which can break the closing logic. Understand the impact on How to close position on BingX.
How to safely store and rotate the key
- Save API Key and Secret Key in a password manager or server environment variables, never in the code posted on GitHub.
- Do not use the same key on the personal computer and server.
- Activate logs on the robot to know what orders it sent and when.
- Test before with minimum value. BingX has a virtual demo mode with VST balance to train future strategies, as we explained in the BingX app.
- Set risk limits in the code itself: Maximum order size and maximum daily loss. Vide Risk Management in Trading.
Reading API for tax
Many people create key just to import the history into a tax calculation system. In that case, reading is enough. Stay tuned for a limit: Cryptact informs you that you cannot import BingX's spot history through the API because the broker provides only 7 days of this data, and that the futures history covers only the last 3 months. So, download extracts frequently and save. The path of declaration is in BingX and Income Tax.
Common errors when connecting the key
Not every connection failure is a key problem. The Cryptohopper guide lists frequent causes, even with the correct API Key and Secret:
- Balance on the wrong account. The money is in the funds account, not in the spot or futures account that the robot uses.
- Account no balance for the connection test.
- Incomplete Identity Verification (KYC).
- IP not registered. The tool tries to access from an address that is not in the list of trusted IPs.
- Missing permission. The key is read-only, and the robot tries to send orders.
If the tool shows request limit error, Altrady's suggestion is to use separate keys for spot and futures. In any case, resist the temptation to “release everything” to see if it works: correct the specific cause.
When to delete or change the key
- Stopped using the tool.
- Suspected that the key was leaked or that the server was hacked.
- He saw orders he doesn't recognize in the history.
- Changed server or platform.
- The tool went on to ask for larger permissions without explanation.
Delete the key in API Management, create a new one with the right permissions, and update the tool. If there is suspected intrusion, also change password and authenticator. a known case of key leakage on a robot platform is in our guide to Crypto brokerage API.
Safely automateIt has an authenticator, key without loot and restricted IP: this is the minimum.Open BingX accountBingX is not registered with the CVM or a public request for authorization from the Central Bank, according to a survey of 10/10/2026 of the BitNews.
Transparency: The Boletim Bitcoin can receive commission for registrations made through BingX's links, at no extra cost for you. That doesn't change what we write about risks and costs.
Frequently asked questions
Where do i create the API key on BingX?
On the website, click the account icon and choose API Management (API Management). Then click Create API, name it, confirm with E-mail and Google Authenticator and copy the API Key and Secret Key.
What permissions should I give the key?
Just the necessary ones. Reading for panels and tax systems; Read more spot trading or futures for robots. Never release loot: no robot needs to withdraw to operate.
What is IP restriction used for?
It makes the key work only from the registered addresses. If the key leaks, those who copied it cannot use it from another computer. For robots, use a server with a fixed IP.
I lost the secret key. And now?
The Secret Key is displayed only once, in creation. If you haven't saved it, delete the key in API Management and create a new one.
Do I need API to use robots on BingX?
Not for native robots like Grid and Martingale, nor for Signal Trading with TradingView, which uses Webhook. The API is required for own robots and external platforms.
References
- Cryptohopper: How to connect BingX with API keys
- Altrady: Connect to BingX
- HASH7: BingX API Binding Tutorial
- Cryptact: How to get a BingX API key
- BingX: One-way mode and effect on the API
- BingX: anti-phishing code, withdrawal whitelist and account blocking
- BingX: Passkey feature guide (16/07/2026)
- BitNotícias: Central Bank crypto license, who asked and who is leaving (10/10/2026)
This content is informative and is not an investment recommendation. found an error? Write to contato@boletimbitcoin.com.