Frequently Asked Questions on API | Binance (2024)

API DocumentationAPI Open Source Libraries and Examples

What are the limits?

Overview

There are three different types of limits, all of which are subject to change at any time:

  1. Hard-limits
  2. ML (Machine Learning) Limits
  3. WAF (Web Application Firewall) Limits

Hard-Limits

  • 6,000 request weight per minute (keep in mind that this is not necessarily the same as 6,000 requests)
  • 50 orders per 10 seconds
  • 160,000 orders per 24 hours

Our hard-limits are listed on the [/api/v3/exchangeInfo] endpoint.

Machine Learning Limits

Trading behavior is evaluated against the average user. If you deviate too far, you'll be banned for a determined amount of time, ranging from 5 minutes to 3 days.

Assume that you have a trading abuse score. Your score will increase if:

  • You repeatedly "one-up" or "front-run" the best Bid/Ask on the order book.
  • Your spam order creation and cancellation very quick without executing trades.
  • Your "conversion rate" is low. "Conversion rate" is defined as your number of trades divided by the total order creations and cancellations over a 24-hour period (Number of Trades / (Orders + Cancellations)).
  • Your "weight" is low. "Weight" is defined as your total traded quantity divided by the total order creations and cancellations over a 24-hour period (Total Traded Qty / (Orders + Cancellations)).
  • When trading pairs that have BNB as the base or quote asset, your abuse score will be amplified.

More specific information than the above will not be provided. Please use trial and error to achieve your ideal trading pattern, or discuss optimal behavior with other API users.

Web Application Firewall Limits

While we do not provide exact details on our WAF rules, if you receive an HTTP 403 error, you have broken a rule. Most likely, it will be a result of excessive requests within a duration of 5 minutes. However, if you are sending a request that could be perceived as malicious, it could also result in a ban of a longer duration.

If I exceed the limits, will I be restricted by account, API Key, or IP address?

For the hard-limits, exceeding the total request weight per minute limit (currently 6,000) will result in an IP ban. The order limits (currently it is 50 times/10 seconds and 160,000 times/24 hours) will be dependent on the account. If the order limit has been exceeded, you will also be restricted from creating new orders on the website (or our other applications).

For Machine Learning limits, restrictions will be applied to accounts. If you have been restricted by the ML system, you may check the reason and the duration by using the [/sapi/v1/account/status] endpoint (noted in our API documentation).

Web Application Firewall limitations will only be applied by IP. Usually, a WAF ban will have a duration of 5 minutes. However, if the server has interpreted a user's request as malicious, it may be extended.

I was restricted for exceeding limits, but I fixed my code. Will you unban me early?

No. You must wait until the ban is over.

Why did I receive an HTTP 403 error when using the API?

You have violated the WAF (Web Application Firewall) rules, most likely by violating a rate limit or sending a malicious request (as outlined in the limits section of this document). Typically, these bans last a period of 5 minutes.

Why are my WebSocket connections being dropped/disconnected?

Every 3 minutes, active WebSocket connections will receive a ping. If you do not respond with a properly framed ping, your connection will be terminated.

For user data streams, if a keep-alive is not received at least once every 60 minutes, the listen key will expire. This is also detailed in our API documentation.

I'm using a third-party service/wrapper, and it is not working. Can you help?

Unfortunately, we do not support third-party services or tools. Please reach out to the service and/or developers for further assistance.

In addition, it is a security risk to enter your Binance API Key(s) and/or Secret Key(s) into any third-party platform. Please use these services at your own discretion.

Keep in mind that we also avoid providing general programming assistance.

Despite making no changes, I'm suddenly receiving errors. What happened?

Unfortunately, we are unable to provide support for issues with your personal implementation. If you are using a third-party wrapper/tool, please contact their support/development team for assistance.

I need to access my Secret Key, but it displays "***". How do I retrieve this?

For security reasons, by design, Secret Keys are only visible at the time the API Key is created. Any time after that point, it will be masked. If you have lost it, or you did not record it, you will need to create a new API Key and use it with a new Secret Key.

Can I increase my limits or dedicated stream/bandwidth?

Unfortunately, this is not currently offered.. It should be possible to work with the limitations provided.

My API Key has disappeared.

There are only two likely explanations for an API Key to "disappear":

  • If you haven't been active recently and you were using the API before March 7, 2018, it's possible that your API Key(s) were purged to ensure the security of your account.
  • If you've disabled your account, this would result in the deletion of any and all active API Keys.

You should be able to create a new API Key(s) with no issues.

I'm receiving "Error -1021 (Message: Timestamp for this request is outside of the recvWindow)". How can I resolve this?

Typically, this error only occurs if the server time and your system time don’t sync. You may need to sync your system clock. However, this process varies depending on the operating system.

For Windows, at your own discretion, you may use a tool like "Atomic Clock". Linux and Mac users can try syncing with "ntpdate" via the command line.

If the problem persists, it may be latency-related (a network issue). Please try adjusting your recvWindow.

Can I request new API functionalities?

If you do not see the functionality you are requesting in our documentation, you should assume that we do not provide it. If you would like to make a feature suggestion, you may open a support ticket, and it will be reviewed.

I believe there is an issue with the API. How should I report it?

If you feel there is an issue with the system and not with your implementation, please provide evidence to support your claim by contacting us in our developer forum, and we will investigate. Please note that we do not accept vague messages as legitimate complaints.

Last updated on October 24, 2023

Frequently Asked Questions on API | Binance (2024)

FAQs

What is the margin special API key? ›

What is a Margin Special API Key? The Margin Special API Key offers low-latency connectivity for margin trading. It allows traders to access the same latency as spot trading while maximizing asset utilization on Binance Margin.

What is Binance API used for? ›

Binance API is a powerful set of tools and features provided by the Binance cryptocurrency exchange that allows developers to programmatically interact with the exchange. The API offers a wide range of endpoints that enable developers to access trading, market data, and account management functionality.

What is the rate limit for Binance spot API? ›

In order to improve the trading experience of Spot API users, Binance Spot API will optimize the rules on order rate limit used by a single account. Effective from 2023-11-21 11:00 (UTC), the order rate limit for a single account will be increased from 50/10s and 160,000/24h to 100/10s and 200,000/24h.

What is the limit of Binance futures API request? ›

The default rate limit per IP is 2,400/min, and the default order limit per account/sub-account is 1,200/min. *For order limit, there is an additional 10-second limit, default at 300/10s. Any adjusted order limit will be ⅓ of the minute limit.

How do you handle API key? ›

TL;DR
  1. Store keys away from code, preferably in environmental variables.
  2. Use secure storage solutions with encryption.
  3. Rotate keys regularly and delete obsolete ones.
  4. Monitor key usage and set access limits.
  5. Train teams on API key security.
  6. Avoid exposing keys in public channels or repositories.
Oct 17, 2023

Why is an API key needed? ›

API keys provide project authorization

By identifying the calling project, you can use API keys to associate usage information with that project. API keys allow the Extensible Service Proxy (ESP) to reject calls from projects that haven't been granted access or enabled in the API.

What is Binance API secret? ›

In this example, the Binance API is generated by the exchange and you then pass it on to another application. The application will then import your data based on the permissions you allow for. An API Secret, also referred to as API Private Key is simply a password used in combination with the API Key.

What is API used for in crypto? ›

An API, or Application Programming Interface, is a set of rules and protocols that allow different software applications to communicate with each other. In the context of cryptocurrencies and blockchain technology, APIs are pivotal for enabling various types of interactions between applications and blockchain networks.

What is the Blockchain API? ›

A blockchain API is an application programming interface that allows developers to interact with a blockchain. By using a blockchain API, developers can access the data and functionality of a blockchain without having to build their own blockchain platform.

What is the max weight for Binance API? ›

Starting from 2023-08-25 00:00 (UTC), the request weight limit per IP address will be raised to 6,000 per minute. - The request weight limit per IP address shared by all endpoints will be increased from 1,200 per minute to 6,000 per minute.

How do you rate limit an API? ›

Setting up an API-Level global rate limit
  1. Navigate to the API you want to set the global rate limit on.
  2. In the Core Settings tab, navigate to the Rate Limiting and Quotas section.
  3. Ensure that Disable rate limiting is unchecked.
  4. Enter in your request per second threshold.
  5. Save/Update your changes.
Feb 3, 2023

What is error code 403 on Binance? ›

While we do not provide exact details on our WAF rules, if you receive an HTTP 403 error, you have broken a rule. Most likely, it will be a result of excessive requests within a duration of 5 minutes.

What is the maximum order size for Binance Futures? ›

Binance Futures will launch a new minimum order notional limit rule for all USDⓈ-M futures contracts at 2021-01-25 7:00:00 (UTC). The minimum notional value of each order must be no less than the threshold $1 USD. If the order notional value is less than the set threshold ($1 USD), the order will be rejected.

What is the minimum trade on Binance? ›

Trade Limits
PairMinimum Trade AmountMin Price Movement
BTC/USDT0.00001 BTC0.01 USDT
ETH/USDT0.0001 ETH0.01 USDT
XRP/USDT1 XRP0.0001 USDT
BCH/USDT0.001 BCH0.1 USDT
77 more rows

What is the maximum order size in Binance? ›

What are the minimum and maximum order sizes? The minimum size for Algo Orders is USD $100 or equivalent. The maximum size varies from 1,000,000 to 5,000,000 USD. For smaller trade sizes, you may get a live quote on Binance Convert or trade via the Convert OTC API with no minimum size.

How do I find my API secret key? ›

The API secret key is used to identify your account. You will be asked to provide one to connect to some of our services like the Google Sheets Add-on and the API functionalities. You can find your API secret key in the API page on your dashboard. You can also create new API keys in the same section if necessary.

What should my API key be? ›

Since the API key itself is an identity by which to identify the application or the user, it needs to be unique, random and non-guessable. API keys that are generated must also use Alphanumeric and special characters. An example of such an API key is zaCELgL. 0imfnc8mVLWwsAawjYr4Rx-Af50DDqtlx .

How much is an API key? ›

API Keys is free of charge. If you use Cloud Endpoints to manage your API, you might incur charges at high traffic volumes. For more information, see Endpoints pricing.

Top Articles
What is a mortgage? | Consumer Financial Protection Bureau
How to Archive Emails & Why You Should | Spike
It may surround a charged particle Crossword Clue
Mackenzie Rosman Leaked
Voorraad - Foodtrailers
Hotels Near 500 W Sunshine St Springfield Mo 65807
P2P4U Net Soccer
Notary Ups Hours
Buckaroo Blog
Swimgs Yung Wong Travels Sophie Koch Hits 3 Tabs Winnie The Pooh Halloween Bob The Builder Christmas Springs Cow Dog Pig Hollywood Studios Beach House Flying Fun Hot Air Balloons, Riding Lessons And Bikes Pack Both Up Away The Alpha Baa Baa Twinkle
Things To Do In Atlanta Tomorrow Night
How to find cash from balance sheet?
Google Doodle Baseball 76
Wsop Hunters Club
Lakers Game Summary
Quest: Broken Home | Sal's Realm of RuneScape
Scream Queens Parents Guide
3 2Nd Ave
How Taraswrld Leaks Exposed the Dark Side of TikTok Fame
Student Portal Stvt
Bolly2Tolly Maari 2
Shauna's Art Studio Laurel Mississippi
Rubmaps H
October 19 Sunset
6143 N Fresno St
Texas Baseball Officially Releases 2023 Schedule
Panchitos Harlingen Tx
Ippa 番号
Kgirls Seattle
Vivek Flowers Chantilly
Dadeclerk
Rhode Island High School Sports News & Headlines| Providence Journal
Sdn Fertitta 2024
Mbfs Com Login
Peace Sign Drawing Reference
Lawrence E. Moon Funeral Home | Flint, Michigan
Theater X Orange Heights Florida
Hello – Cornerstone Chapel
60 Days From August 16
Erica Mena Net Worth Forbes
Craigslist Marshfield Mo
Freightliner Cascadia Clutch Replacement Cost
Jimmy John's Near Me Open
2487872771
Craigslist Cars And Trucks For Sale By Owner Indianapolis
Zom 100 Mbti
Ark Silica Pearls Gfi
Laurel Hubbard’s Olympic dream dies under the world’s gaze
Ihop Deliver
Itsleaa
Obituaries in Westchester, NY | The Journal News
E. 81 St. Deli Menu
Latest Posts
Article information

Author: Msgr. Benton Quitzon

Last Updated:

Views: 6431

Rating: 4.2 / 5 (63 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Msgr. Benton Quitzon

Birthday: 2001-08-13

Address: 96487 Kris Cliff, Teresiafurt, WI 95201

Phone: +9418513585781

Job: Senior Designer

Hobby: Calligraphy, Rowing, Vacation, Geocaching, Web surfing, Electronics, Electronics

Introduction: My name is Msgr. Benton Quitzon, I am a comfortable, charming, thankful, happy, adventurous, handsome, precious person who loves writing and wants to share my knowledge and understanding with you.