nuatsbot icon indicating copy to clipboard operation
nuatsbot copied to clipboard

Max 1200 requests binance | Pre-check query size and split accordingly

Open crazydave1981 opened this issue 4 years ago • 5 comments

Dear team,

I'm having issues when using 1h, 4h, 12h,1d on the max 1200 req per minute. any method to make a sort of timeout between?

so i can pull more?

thanks and cheers.

crazydave1981 avatar Jan 13 '21 09:01 crazydave1981

As indicated in the README.md file, the sleep variable in the config.py takes care of this.Try incrementing the default value so that less requests are sent to the Binance server. Cheers.

b-fg avatar Jan 13 '21 10:01 b-fg

I know, but if i am doing scan on all pairs on 1, 4, 12h it still does more than 1200 requests a minute. could turn multithread of so it would take longer but in that way my reaction to buy would be later.

the sleep variable is the sleep between the full check. but the full check already is having 2800 checks needed?

crazydave1981 avatar Jan 13 '21 10:01 crazydave1981

Are you running it live? In any case, it might be worth including some function to assess the number of API requests before sending them to the server while adding the necessary breaks to not overload it. I might be able to look at it next week. Also feel free to contribute ;)

b-fg avatar Jan 13 '21 10:01 b-fg

Sure m8, will try some. thanks for your quick help.

will update thread if i found out something.

crazydave1981 avatar Jan 13 '21 10:01 crazydave1981

Any update on this?

MSTRBOT avatar Feb 04 '23 11:02 MSTRBOT