feat(PORT-002): add alert status and history
This commit is contained in:
@@ -154,6 +154,8 @@ class PortfolioConfig:
|
||||
raise ValueError("Margin threshold must be between 10% and 95%")
|
||||
if not 0.1 <= self.ltv_warning <= 0.95:
|
||||
raise ValueError("LTV warning level must be between 10% and 95%")
|
||||
if self.ltv_warning >= self.margin_threshold:
|
||||
raise ValueError("LTV warning level must be less than the margin threshold")
|
||||
if self.refresh_interval < 1:
|
||||
raise ValueError("Refresh interval must be at least 1 second")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user