PoloniexApiError: Please do not make more than 6 API calls per second.
See original GitHub issueI’m getting this error quite a lot at the minute, I’ve two different backtraces for it
Traceback (most recent call last):
File "/home/dog/poloniexlendingbot_new/lendingbot.py", line 91, in <module>
Lending.lend_all()
File "/home/dog/poloniexlendingbot_new/modules/Lending.py", line 126, in lend_all
lending_balances = api.return_available_account_balances("lending")['lending']
File "/home/dog/poloniexlendingbot_new/modules/Poloniex.py", line 105, in return_available_account_balances
balances = self.api_query('returnAvailableAccountBalances', {"account": account})
File "/home/dog/poloniexlendingbot_new/modules/Poloniex.py", line 79, in api_query
json_ret = _read_response(ret)
File "/home/dog/poloniexlendingbot_new/modules/Poloniex.py", line 46, in _read_response
raise PoloniexApiError(data['error'])
PoloniexApiError: Please do not make more than 6 API calls per second.
File "/home/dog/poloniexlendingbot_new/lendingbot.py", line 91, in <module>
Lending.lend_all()
File "/home/dog/poloniexlendingbot_new/modules/Lending.py", line 125, in lend_all
total_lended = Data.get_total_lended()[0]
File "/home/dog/poloniexlendingbot_new/modules/Data.py", line 41, in get_total_lended
crypto_lended = api.return_active_loans()
File "/home/dog/poloniexlendingbot_new/modules/Poloniex.py", line 129, in return_active_loans
return self.api_query('returnActiveLoans')
File "/home/dog/poloniexlendingbot_new/modules/Poloniex.py", line 79, in api_query
json_ret = _read_response(ret)
File "/home/dog/poloniexlendingbot_new/modules/Poloniex.py", line 46, in _read_response
raise PoloniexApiError(data['error'])
PoloniexApiError: Please do not make more than 6 API calls per second.
I’ve recently started lending across a total of 4 currencies. I’m not sure if that’s significant, but I don’t think anything else has changed.
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Limits and Quotas on API Requests | Analytics Management API
This document describes the limits and quotas of requesting the Management APIs and Reporting APIs. Google Analytics is used by millions of ...
Read more >How to handle API rate limits: Do your integrations work at ...
Typically, rate-limit algorithms track the number of requests over a short period of time, such as one second or one minute. If requests...
Read more >Is there a usage limit for the number of API calls per second?
Please note that the API is throttled, currently 200 requests per minute, per account. Please read Rate Limit section in the Docs.
Read more >Implementing 429 retries and throttling for API rate-limits - Anvil
For example if an API allowed 6 requests over 3 seconds, the API will allow a request every 500ms and not fail (...
Read more >Everything You Need To Know About API Rate Limiting
How To Limit API Requests And The Importance Of Rate Limiting. Let's start by taking a look at what rate limiting is. Then...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Evanito should we close this one as well?
Discussion for addition of a coach in #188 This issue is about error handling.