본문 바로가기

bitcoin automated trading

[Bitcoin Automated Trading] Learn About Binance API Query Limits

------------------------------------------------------------------------------------------------------------------

https://accounts.binance.com/register?ref=21391362 <- Get Discount on Binance Futures Fees With Referral Code

Referral Code : 21391362

------------------------------------------------------------------------------------------------------------------

 

As you deal with all the coins on Binance, the query volume increases. Since the amount of queries provided by Binance is limited, you need to check how much they provide per hour.

 

rateLimit
Type
REQUEST_WEIGHT
Each query has its own weight. If the query return value is large, the weight is high, so if called repeatedly, the limit will quickly be exceeded.
ORDERS
This is the limit for buy/sell orders.
RAW_REQUESTS
Pure query quantity.
interval
The limits are seconds, minutes, and days.
intervalNum
Indicates the limit for seconds, minutes, and days.
ex) If the interval value is minutes and interNum is 5, it means 5 minutes.
limit
There is a limit.

 

  1. Know your limits

You can check the query volume provided by Binance through get_exchange_info, and each property is as follows.

 

※ Query volume has been adjusted as of 2023-08-25 UTC 00:00. The REQUEST_WEIGHT value has increased significantly from 1,200 to 6,000.

https://developers.binance.com/docs/binance-trading-api/spot#api-key-restrictions

 

 

2. Check query volume

Binance does not provide the API query volume as a header value after the query. There is an inconvenience in having to call and confirm separately from the client. Pay attention to WEIGHT_QUERY because the quantity of WEIGHT_QUERY is smaller than RAW_QUERY and the limit is used up quickly.

 

The code to check the order limit is as follows.

 

 

------------------------------------------------------------------------------------------------------------------

https://accounts.binance.com/register?ref=21391362 <- Get Discount on Binance Futures Fees With Referral Code

Referral Code : 21391362

------------------------------------------------------------------------------------------------------------------