A Binance API Key allows you to manage your account and execute trades through third-party tools, such as quantitative trading bots and market analysis software. If you don't have a Binance account yet, register on Binance first. You can also perform API-related operations after you download the Binance APP.
What Is an API Key?
An API Key is like a "key" that allows external programs to operate your Binance account on your behalf. It consists of two parts:
- API Key: Acts as your username, used to identify your identity
- Secret Key: Acts as your password, used to verify permissions
Both must be used together to allow third-party software to access your account.
How to Create an API Key
Creating on Web
- Log in to Binance on the web
- Click the profile icon in the upper right → "API Management"
- Name your API Key, such as "Trading Bot"
- Complete security verification (email code + Google Authenticator code)
- After creation, the page will display your API Key and Secret Key
Creating on the APP
- Open the Binance APP and go to your profile
- Find "API Management"
- Follow the prompts
Important reminder: The Secret Key is only shown once! Make sure to copy and save it in a secure location immediately after creation. If you forget it, you'll have to delete and create a new one.
Permission Settings
When creating an API Key, you need to set permissions:
Read Permission
Can only view account information and market data — no actions can be taken. If you're only using it to view market data or gather statistics, this permission is sufficient.
Spot Trading Permission
Allows placing and canceling orders via API. Quantitative trading bots typically require this permission.
Withdrawal Permission
Allows initiating withdrawals via API. It is strongly recommended NOT to enable this permission unless you fully understand what you're doing. If an API Key with withdrawal permission is compromised, your assets could be transferred out.
Security Settings
IP Whitelist
This is the most important security measure. Once an IP whitelist is set, only specified IP addresses can use this API Key.
- On the API Management page, find "Restrict access to trusted IPs only"
- Enter your server or computer's IP address
- Save settings
Other Security Recommendations
- Don't share your API Key with anyone
- Don't use your API Key on untrusted third-party platforms
- Regularly check your API Key usage
- Delete API Keys that are no longer needed
- Create a separate API Key for each use case for easier management
Common Use Cases
- Quantitative trading: Automatically execute trading strategies through programs
- Market monitoring: Retrieve real-time price data
- Portfolio tracking: Aggregate holdings across multiple accounts
- Tax reporting: Export transaction data for tax filing
FAQ
Q: Is there a limit on the number of API Keys? A: Yes, each Binance account can create up to 30 API Keys.
Q: Do API Keys expire? A: They don't expire automatically, but may be disabled by the system if unused for 90 days.
Q: Are there fee discounts for API trading? A: API trading fees are the same as manual trading fees, calculated based on your VIP level.