feat(PORT-002): add alert status and history

This commit is contained in:
Bu5hm4nn
2026-03-24 11:04:32 +01:00
parent 7c6b8ef2c6
commit d0b1304b71
9 changed files with 525 additions and 59 deletions

View File

@@ -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")