Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slow down polling on API rate limit errors #510

Open
scionaltera opened this issue Jun 28, 2022 · 0 comments
Open

Slow down polling on API rate limit errors #510

scionaltera opened this issue Jun 28, 2022 · 0 comments
Labels
enhancement New feature or request help wanted Good candidate for contributions

Comments

@scionaltera
Copy link
Member

All exchanges have some kind of rate limit on how frequently you can call their APIs. They all start to throw some kind of exception if you exceed that limit, and some will blacklist your IP temporarily (or permanently if you don't stop). Right now these errors can create a lot of noise in the logs and we don't do anything to stop it from happening.

It would be smart if Arbitrader detected these rate limiting errors and slowed down polling for that exchange to try to avoid triggering them continuously. Best would be if it slowed down a little bit at first, but retained some sort of counter so it could manage the delay and find the fastest rate to poll without triggering the errors.

@scionaltera scionaltera added enhancement New feature or request help wanted Good candidate for contributions labels Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Good candidate for contributions
Projects
None yet
Development

No branches or pull requests

1 participant