The Binance API (Application Programming Interface) is a tool provided by Binance for developers and advanced traders that allows you to access various Binance features through code. With the API, you can automate trading, retrieve market data in bulk, manage your account, and more — without manually clicking through the app or website. Sign up on Binance to apply for your API keys.

What Can the API Do?
Automated Trading
This is the primary use case for the API. You can write trading programs (commonly called "trading bots") that automatically buy and sell based on preset strategies. For example:
- Automatically buy when BTC drops below a certain price
- Automatically sell when your position reaches a target profit
- Execute arbitrage trades across multiple trading pairs
- Place orders automatically based on technical indicator signals
Retrieve Market Data
The API lets you batch-retrieve:
- Real-time price data
- Historical candlestick (K-line) data
- Order book depth data
- Recent trade records
- Top gainers and losers
This data is invaluable for quantitative analysis and developing trading strategies.
Account Management
Through the API, you can:
- Query account balances
- View position details
- Access trade history
- Manage orders (place, cancel, modify)
Third-Party Tool Integration
Many third-party trading tools and platforms need the API to connect to your Binance account, including quantitative trading platforms, portfolio management tools, and tax calculation software.
Steps to Apply for API Keys
Prerequisites
- KYC identity verification must be completed
- Two-factor authentication (2FA) must be enabled
- Understand the basics of API usage and its risks
Applying on the App
Step 1: Open the Binance App > Tap the profile icon in the top left
Step 2: Find "API Management"
Step 3: Tap "Create API"
Step 4: Select the API key type:
- System Generated: Binance auto-generates the API Key and Secret Key
- Self-Generated: Use an RSA or Ed25519 key pair (for users with higher security requirements)
Step 5: Name your API (e.g., "My Trading Bot")
Step 6: Enter security verification codes (2FA code + email verification code)
Step 7: The system generates your API Key and Secret Key
Important: The Secret Key is displayed only once at creation — it cannot be viewed again afterward. Save it securely immediately.
Applying on the Web
- Log in to the Binance website
- Click the profile icon in the top right > API Management
- Follow the on-screen prompts to create your API
Download the Binance App to manage your API keys in the Security Center.
API Permission Settings
After creating your API keys, you need to configure permissions. Different permissions determine what operations the API can perform:
Read Permission
Allows the API to query account information and retrieve market data. This is the most basic permission.
Trade Permission
Allows the API to execute buy and sell orders. If you only need data retrieval, don't enable this permission.
Withdrawal Permission
Allows the API to initiate withdrawals. This is the most dangerous permission — don't enable it unless absolutely necessary.
IP Whitelist
You can restrict API access to specific IP addresses. Setting up an IP whitelist is strongly recommended — even if the API key leaks, other IPs won't be able to use it.
Permission Recommendations
- Only enable the minimum permissions you need
- Enable trade permission cautiously
- Strongly advised against enabling withdrawal permission
- Always set up an IP whitelist

API Key Security Management
Protecting the Secret Key
Your Secret Key is essentially your trading password. If it leaks, someone else can use your API for operations.
- Never hardcode the Secret Key in your source code
- Use environment variables or encrypted configuration files for storage
- Never commit code containing the Secret Key to public repositories (e.g., GitHub)
- Don't take screenshots or send the Secret Key through messaging apps
Regular Rotation
Regenerate new API keys and delete old ones periodically (e.g., every 3 months).
Monitor API Usage
Regularly review API call logs to ensure there's no unusual activity. If you detect suspicious behavior, immediately delete the API key and change your account password.
Common API Access Methods
REST API
The most commonly used API method. It works through HTTP requests and supports all programming languages. Suitable for most use cases.
WebSocket API
Used for receiving real-time market data feeds. No need to send frequent requests — the server pushes data to you when it changes. Ideal for trading programs that need live price data.
API Rate Limits
Binance API has call frequency limits:
- Maximum 1,200 requests per minute (weight-based)
- Maximum 100 order requests per 10 seconds
- Maximum 200,000 order requests per 24 hours
Exceeding limits results in a temporary ban. Be sure to manage call frequency in your programs.
Using the API Without Coding Skills
If you're not a programmer but want automated trading, third-party tools can help:
- 3Commas: Offers visual trading bot configuration
- Pionex: Has built-in trading bot strategies
- TradingView: Supports triggering API trades via Webhooks
These tools connect to your Binance account through your API keys — no coding required.
Sign up on Binance to get your API keys and start your automated trading journey.
FAQ
Are there fees for API trading?
Yes, the same fees as regular trading apply at the same rates. Using BNB for fee discounts works the same way.
How many API keys can I create?
Binance allows multiple API keys per account. Using different keys for different purposes is recommended for easier management.
Is API trading better than manual trading?
API trading advantages include faster execution, 24/7 operation, and elimination of emotional bias. However, this only works if your trading strategy is effective.
Does deleting an API key affect existing orders?
No. Existing orders remain active, but once the key is deleted, your program can no longer place new orders or cancel old ones. Download the Binance App to manage your API keys and permissions anytime.
Safety Tips
- Treat API keys like account passwords — keep them secure
- Don't enable unnecessary permissions, especially withdrawal permission
- Always set up an IP whitelist
- Never expose your Secret Key in public spaces or code repositories
- If your API key may have been compromised, delete it immediately and create a new one
- Regularly review API call logs and address any anomalies promptly