-
Notifications
You must be signed in to change notification settings - Fork 55
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
[TradingMode] init health check #1006
Conversation
return created_orders | ||
|
||
async def single_exchange_process_optimize_initial_portfolio( | ||
self, sellable_assets, target_asset: str, tickers: dict | ||
) -> list: | ||
raise NotImplementedError("single_exchange_process_optimize_initial_portfolio is not implemented") | ||
|
||
@contextlib.asynccontextmanager | ||
async def _single_exchange_operation(self, operation_name): |
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.
👍
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.
Should we add a param to disable health check? It can be usefull for staggered / grid for example
For DCA, we can by setting the theshold to 100, do you think we need more than this ? agree for the grid part, i'll add it |
I'm not sure we should use an "indirect" value like a 100% threshold to disable healthcheck, it's not easy to understand in my opinion. We may have something like a checkbox (or equivalent) to allow users to enable / disable health check. |
fbcbdc5
to
751630b
Compare
@@ -354,6 +354,8 @@ async def trading_mode_trigger(self): | |||
except asyncio.TimeoutError as e: | |||
raise errors.InitializingError() from e | |||
self.logger.debug("Order initialized") | |||
if self.trading_mode.should_trigger_health_check() and not skip_health_check: |
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.
👍
751630b
to
f9d71cd
Compare
requires Drakkar-Software/OctoBot-Commons#412