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

Extend options to decrease requests #7

Open
wimurk opened this issue Aug 12, 2021 · 0 comments
Open

Extend options to decrease requests #7

wimurk opened this issue Aug 12, 2021 · 0 comments

Comments

@wimurk
Copy link

wimurk commented Aug 12, 2021

Currently the API has a rate limit of 1000 per API or IP. This is acceptable when it comes to the API Key limit, but the IP rate limit is killing my App.

Currently i have 24 users using the API. All of them have at least 30+ coins. The App calls the API everyminute to update the coins, orders, balances etc.

Everyminute the App makes 396 requests per minute. This can be dropped down to only 6 requests per minute per API key.

Currently it is only possible to get the orders by passing a coin market. For example:

$bitvavo->getOrders("BTC-EUR", [])

When syncing 30 coins+ there will be 30 requests only for retrieving the orders.

Adding an option like retrieving all the account orders will decrease the requests to only 1 for retrieiving orders.

$bitvavo->getAllOrders([]); // returns all the orders by account
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

No branches or pull requests

1 participant