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

Distributes Spot API requests among clusters #53

Merged

Conversation

fabiob
Copy link
Contributor

@fabiob fabiob commented Apr 14, 2021

According to https://binance-docs.github.io/apidocs/spot/en/#general-api-information, there are 4 different clusters available for the Spot API. This patch will distribute requests among the 4 available clusters randomly.

In my spreadsheets, this change increased the performance and reduced the number of errors.

@federico-galli
Copy link

I am using this PR with success. Works well. Thanks

@fabiob fabiob mentioned this pull request Apr 30, 2021
Copy link
Owner

@diegomanuel diegomanuel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @fabiob great one, many thanks!
Will be included in the next release 🍻

@diegomanuel diegomanuel merged commit 13b1135 into diegomanuel:master May 6, 2021
@fabiob fabiob deleted the distribute-spot-api-requests branch May 6, 2021 04:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants