-
Notifications
You must be signed in to change notification settings - Fork 64
add full requirements #1300
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
add full requirements #1300
Conversation
| """ | ||
| try: | ||
| await client.load_markets(reload=reload) | ||
| if constants.FETCH_MIN_EXCHANGE_MARKETS and market_filter: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why a constant and not a connector class attribute?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't always want to do this. this filter is very strict (it prevents CCXT from even considering certain markets, unlike regular market filters which allow ccxt to load all markets and then filters out unrequired ones in next created exchanges). It should only be used in specific contexts, it's not a "per exchange" thing.
That's why it's a constant bound to an env var: it can be enabled but only if the user explicitely asks for it (it uses ccxt common interface so it should work for all ccxt exchanges)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still don't understand why an environment variable vs a parameter that could be based on a env var value. I don't get why we should use an env var here. That's my point. If this value is based on an environment var somewhere else why not. I don't understand why we want to "lock" this value with an environment variable instead of a class param that could use the value of an environment variable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, it's up!
requires Drakkar-Software/OctoBot-Tentacles-Manager#186
requires Drakkar-Software/OctoBot-Backtesting#189