-
Notifications
You must be signed in to change notification settings - Fork 7
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
Conversation
91f3b69
to
1ce4960
Compare
@@ -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}%", |
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.
drive-by: format string here instead of event.py
which is cleaner
sample.config.yaml
Outdated
@@ -46,7 +46,8 @@ checks: | |||
max_aggregate_distance: 6 | |||
PublisherStalledCheck: | |||
enable: true |
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.
Setting enable
to false wouldn't work?
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.
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
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.
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.
No description provided.