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

[Exchanges][CPU Overload] ccxt throttle related CPU overload #445

Open
GuillaumeDSM opened this issue Dec 24, 2020 · 0 comments
Open

[Exchanges][CPU Overload] ccxt throttle related CPU overload #445

GuillaumeDSM opened this issue Dec 24, 2020 · 0 comments
Assignees

Comments

@GuillaumeDSM
Copy link
Member

GuillaumeDSM commented Dec 24, 2020

Due to ccxt bucket algorithm default refresh rate (1ms), when multiple pairs are activated on many exchanges, CPU can get overloaded.
This seams to happen much more often on Windows (starting from 10 pairs with kline activated on 2 exchanges).

For now we investigate to figure out if it happens more often than this specific Windows case.

possible fix:
in exchanges/connectors/ccxt_exchange.py, before instantiating the ccxt exchange:

ccxt.Exchange.tokenBucket = {
    "delay": 0.016
}
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

2 participants