question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PoloniexApiError: Please do not make more than 6 API calls per second.

See original GitHub issue

I’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:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rnevetcommented, Jan 26, 2017

@Evanito should we close this one as well?

0reactions
Evanitocommented, Jan 14, 2017

Discussion for addition of a coach in #188 This issue is about error handling.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found