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

Kraken API rate limit exceeded #31

Open
emze9 opened this issue Jul 30, 2022 · 5 comments
Open

Kraken API rate limit exceeded #31

emze9 opened this issue Jul 30, 2022 · 5 comments
Assignees

Comments

@emze9
Copy link

emze9 commented Jul 30, 2022

Hi,
Thanks for your script, works very well !

I'm using your docker image and my config.yaml is composed of 11 pairs, at the eighth pair the script show me this error:

Kraken API rate limit exceeded. Waiting 10sc...

Then next time the script start again by the first pair and failed at the eight. So, my last pairs are never processed.

What do you think about adding a sleep() between each pairs ?

@emze9
Copy link
Author

emze9 commented Jul 30, 2022

I've placed sleep() like this:

def handle_dca_logic(self) -> None:
        """
        Handle DCA logic.
        :return: None
        """
        # Check current system time.
        current_date = self.get_system_time()
        # Check Kraken account balance.
        self.check_account_balance()
        # Check if didn't already DCA today
        if self.count_pair_daily_orders() != 0:
            print(
                f"No DCA for {self.pair.name}: Already placed an order "
                f"today."
            )
            sleep(5)
            return
        print("Didn't DCA already today.")
        sleep(5)

I know that it's possible to implement rate limiting, it's just a workaround. Do you wan that I open a Pull Request with this or do you rather prefer to work on this on your own ?

@adocquin
Copy link
Owner

Hello @emze9

Sorry for the late reply, I take a look at it and came back to you as soon as possible.

@adocquin adocquin self-assigned this Aug 17, 2022
@adocquin
Copy link
Owner

Hello @emze9

Can you provide me an anonymized version of your logs and/or orders so I can better understand the error, please?

@emze9
Copy link
Author

emze9 commented Oct 3, 2022

Hello @adocquin , I'll try to do this asap.

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

When branches are created from issues, their pull requests are automatically linked.

3 participants
@adocquin @emze9 and others