"""
实时风控系统 - 导出接口
============

使用示例：

```python
from realtime_system import RealtimeRiskPanel

# 创建保守风格风控面板
panel = RealtimeRiskPanel(risk_style="conservative")

# 更新净值
panel.update_net_value(datetime.now(), 1000000)

# 更新持仓
panel.update_position("600519", 100, 1800)

# 定期风控检查
result = panel.update(datetime.now(), total_capital, cash)

# 检查是否允许开仓
if result['can_open_position']:
    # 允许开仓
    pass
```
"""

from risk_calculator import RealTimeRiskCalculator, RiskMetrics
from risk_monitor import (
    RealTimeRiskMonitor, 
    ThresholdConfig, 
    RiskAlert, 
    AlertLevel
)
from emergency_handler import (
    EmergencyHandler, 
    EmergencyConfig, 
    EmergencyAction, 
    EmergencyLevel
)
from realtime_risk_panel import RealtimeRiskPanel

__all__ = [
    # 风险计算
    'RealTimeRiskCalculator',
    'RiskMetrics',
    # 风险监控
    'RealTimeRiskMonitor',
    'ThresholdConfig',
    'RiskAlert',
    'AlertLevel',
    # 紧急处理
    'EmergencyHandler',
    'EmergencyConfig',
    'EmergencyAction',
    'EmergencyLevel',
    # 主面板
    'RealtimeRiskPanel',
]
