dutu / poloLender

Free, open source, high performance bot for lending funds on Poloniex exchange
https://github.com/dutu/poloLender
Other
160 stars 47 forks source link

Excessive API polling? #110

Closed kevinlekiller closed 7 years ago

kevinlekiller commented 7 years ago

Hello, looking at the log, I see hundreds of 429 errors per day.

poloLender is the only program I use on this IP address (and poloniex account) which accesses the poloniex API.

Here is a section of the log:

2017-07-30 19:08:29: notice: returnAvailableAccountBalances: Poloniex error 429: Too Many Requests. Please do not make more than 8 API calls per second.
2017-07-30 19:08:29: notice: returnAvailableAccountBalances: Poloniex error 429: Too Many Requests. Please do not make more than 8 API calls per second.
2017-07-30 19:08:30: notice: returnActiveLoans: Poloniex error 429: Too Many Requests. Please do not make more than 8 API calls per second.
2017-07-30 19:08:30: notice: returnActiveLoans: Poloniex error 429: Too Many Requests. Please do not make more than 8 API calls per second.
2017-07-30 19:08:30: notice: returnActiveLoans: Poloniex error 429: Too Many Requests. Please do not make more than 8 API calls per second.
2017-07-30 19:08:34: notice: returnActiveLoans: Poloniex error 429: Too Many Requests. Please do not make more than 8 API calls per second.
2017-07-30 19:08:34: notice: returnActiveLoans: Poloniex error 429: Too Many Requests. Please do not make more than 8 API calls per second.
2017-07-30 19:08:34: notice: returnActiveLoans: Poloniex error 429: Too Many Requests. Please do not make more than 8 API calls per second.
2017-07-30 19:08:34: notice: returnActiveLoans: Poloniex error 429: Too Many Requests. Please do not make more than 8 API calls per second.
2017-07-30 19:08:54: notice: returnActiveLoans: Poloniex error 429: Too Many Requests. Please do not make more than 8 API calls per second.

Thanks.

dutu commented 7 years ago

@kevinlekiller, it looks like Poloniex is fiddling again with their API call limits. poloLender is trying to adhere strictly to the 8 API calls per second limits, but it shows Poloniex is not adhering to own rules. (On the positive note we have also seen that Poloniex API response times have been reduced drastically since a couple of days).

You can ignore the notice, as the app is handeling the "notice" correctly, or to slow down the bot you can change the maxApiCallsPerDuration in your config to 7 (note the setting is not available through web gui)

kevinlekiller commented 7 years ago

Thanks, will set it to 7.

benharbit commented 7 years ago

poloniex isn't adhering to the it's 8 API calls per second limit. It is very annoying and unethical.