API keys allow third-party programs to access your Binance account for automated trading. Before using the API, you need to register on Binance and complete KYC verification.
What Is an API Key
An API key is a set of credentials consisting of a Key and a Secret, which third-party trading software uses to execute trading operations on your behalf. For example, quantitative trading bots, copy trading software, and data analysis tools all require API keys.
Creation Steps
- Log in to the Binance web version
- Go to the "API Management" page
- Give your API a name
- Complete security verification
- The system generates an API Key and Secret Key
- Save the Secret Key immediately (it's only shown once)
Permission Settings
When creating an API, you can set different permissions:
- Read Only: Can only view account information and market data, cannot trade
- Spot Trading: Allows spot buying and selling
- Futures Trading: Allows futures operations
- Withdrawal: Allows withdrawals via API (strongly not recommended)
It's recommended to only enable the minimum permissions needed. If you only need market data and spot trading, don't enable withdrawal permissions.
IP Whitelist
After creating the API, be sure to set up an IP whitelist so only specified IP addresses can use this API. This way, even if the API key is leaked, others cannot use it from a different IP.
Security Notes
- The Secret Key is only displayed once at creation -- it must be saved securely
- Never share your API key with anyone
- Rotate your API keys regularly
- Delete unused APIs promptly
Download the Binance APP to manage your API keys as well.