What are the API rate limits?
Machine Learning Restrictions
The system evaluates trading behavior against typical user patterns. If your trading activity significantly deviates from normal patterns, your account may face trading restrictions ranging from 5 minutes to 3 days.
A penalty system for trading abuse is in place. The following actions may increase your penalty score:
- Frequently raising quotes or engaging in front-running to occupy the best bid/ask positions on the order book.
- Repeatedly placing and canceling orders without executing trades.
- Having an excessively low Fill Rate – calculated as the ratio of executed orders to the total placed and canceled orders over the past 24 hours: Fill Rate = Number of Trades / (Number of Orders Placed + Number of Orders Canceled)
- Having an excessively low Fill Weight – calculated as the ratio of executed trade volume to the total placed and canceled order volume over the past 24 hours: Fill Weight = Trade Volume / (Order Volume Placed + Order Volume Canceled)
Web Application Firewall (WAF) Restrictions
We do not disclose specific WAF rules. If you receive an HTTP 403 error, it means your request violated a WAF rule. This is often due to excessive request frequency, resulting in a 5-minute restriction. However, if your requests are deemed malicious, the ban may be extended.
Will my account, API key, or IP be restricted if limits are exceeded?
- Hard limits: Exceeding the total request weight per minute will result in an IP ban.
- Order limits are applied per account. If exceeded, you cannot create orders on our platform or apps.
- Machine learning restrictions are applied per account. If restricted by the ML system, you can check the reason via the endpoint.
- WAF restrictions apply to IP addresses. Bans typically last 5 minutes but may be extended for malicious activity.
Can DeepTradeX lift restrictions early if I fix my code?
lift restrictions early if I fix my code?
No. You must wait until the restriction period ends.
Why did I receive an HTTP 403 error while using the API?
You violated a WAF rule, likely due to rate limiting or sending malicious requests (see "Restrictions" above). Bans typically last 5 minutes.
Why did my WebSocket connection drop or disconnect?
Active WebSocket connections receive a Ping frame every 3 minutes. If not responded to correctly, the connection is terminated.
For user data streams, listen keys expire after 60 minutes of inactivity. Refer to the API documentation for details.
I use a third-party server/wrapper, and it’s not working. Can you help?
We do not support third-party services or tools. Please contact the respective service or development team.
Note: Entering your Binance API keys or encryption keys on third-party platforms carries security risks. Use them at your own discretion.
We do not provide general programming support.
I made no changes but received an error. What happened?
We cannot provide specific implementation support. If you use a third-party wrapper/tool, contact its support or development team.
How can I view my encrypted key if it shows "**"?
For security reasons, encryption keys are only visible when creating an API key and are masked afterward. If lost, you must create a new API key and use it with a new encryption key.
Can I request higher limits or dedicated bandwidth?
No, such services are currently unavailable. However, existing limits should suffice for most use cases.
My API key disappeared.
This may occur due to:
- Inactivity: API keys may be purged for security reasons if recently unused.
- Account deactivation: All active API keys are deleted if you disable your account. You can create a new API key without issues.
How to resolve error 1021: "Timestamp for this request is outside the recvWindow of the matching engine"?
This error usually occurs when your system time is not synchronized with the server. Sync your system clock:
- On Windows, use tools like "Atomic Clock".
- On Linux/macOS, use the
ntpdatecommand via terminal. If the issue persists, it may be due to network latency. Try adjusting therecvWindowparameter.
Can I request new API features?
If a feature is not listed in the documentation, it is not currently available. Submit a support ticket to suggest new features for review.
How to provide feedback if I believe there’s an API issue?
If the issue is system-related (not your implementation), contact us via the Developer Forum and provide evidence supporting your claim. Vague reports will not be considered valid feedback.