"""System Health and Performance Status Schemas."""
from __future__ import annotations

from dataclasses import dataclass
from typing import Any, Optional


@dataclass
class HealthStatus:
    status: str  # healthy, degraded, halted
    timestamp: str
    trading_mode: str
    kill_switch_active: bool
    live_trading_enabled: bool
    db_connected: bool
    market_feed_connected: bool
    open_positions: int
    daily_pnl_pct: float
    drawdown_pct: float
    active_model_version: str
