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

feat: add abandoned_time_limit to PublisherStalledCheck #74

Merged
merged 3 commits into from
May 23, 2024

Conversation

cctdaniel
Copy link
Contributor

@cctdaniel cctdaniel commented May 22, 2024

No description provided.

@@ -221,7 +221,7 @@ def error_message(self) -> dict:
"symbol": self.__state.symbol,
"publisher_price": f"{self.__state.price} ± {self.__state.confidence_interval}",
"aggregate_price": f"{self.__state.price_aggregate} ± {self.__state.confidence_interval_aggregate}",
"deviation": deviation,
"deviation": f"{deviation:.2f}%",
Copy link
Contributor Author

@cctdaniel cctdaniel May 22, 2024

Choose a reason for hiding this comment

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

drive-by: format string here instead of event.py which is cleaner

@@ -46,7 +46,8 @@ checks:
max_aggregate_distance: 6
PublisherStalledCheck:
enable: true
Copy link
Contributor

@ali-bahjati ali-bahjati May 22, 2024

Choose a reason for hiding this comment

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

Setting enable to false wouldn't work?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

well the reason for this is to test it for a couple of symbols first (since the less liquid ones are noisy), if we set it to false then all will be disabled

Copy link
Contributor

@ali-bahjati ali-bahjati May 22, 2024

Choose a reason for hiding this comment

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

Hmmm i think this is because if this be false then other checks should override enable and sat enable: true. But that's clear now.

@cctdaniel cctdaniel merged commit 89fdfd3 into main May 23, 2024
3 checks passed
@cctdaniel cctdaniel deleted the stalled-check-offline branch May 23, 2024 02:56
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.

3 participants