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

[TradingMode] init health check #1006

Merged
merged 3 commits into from
Dec 9, 2023
Merged

[TradingMode] init health check #1006

merged 3 commits into from
Dec 9, 2023

Conversation

GuillaumeDSM
Copy link
Member

@GuillaumeDSM GuillaumeDSM commented Dec 8, 2023

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):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Member

@Herklos Herklos left a 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

@GuillaumeDSM
Copy link
Member Author

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

@Herklos
Copy link
Member

Herklos commented Dec 8, 2023

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.

@@ -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:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@GuillaumeDSM GuillaumeDSM merged commit 95a8b1e into master Dec 9, 2023
7 checks passed
@GuillaumeDSM GuillaumeDSM deleted the health_check branch December 9, 2023 11:04
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

Successfully merging this pull request may close these issues.

2 participants