V2.2.1: Membership & Billing, USDT TRC20 payment, VIP free indicators, AI Trading Radar, simplified strategy creation, system settings simplification, bug fixes and UI improvements

This commit is contained in:
TIANHE
2026-02-27 01:57:04 +08:00
parent ae82cc0d4e
commit ffdd2ffbae
71 changed files with 4067 additions and 6073 deletions
@@ -161,13 +161,6 @@ class CircuitBreaker:
# 全局熔断器实例
# ============================================
# A股数据源熔断器(标准策略)
_ashare_circuit_breaker = CircuitBreaker(
failure_threshold=3, # 连续失败3次熔断
cooldown_seconds=300.0, # 冷却5分钟
half_open_max_calls=1
)
# 实时行情熔断器(更严格的策略)
_realtime_circuit_breaker = CircuitBreaker(
failure_threshold=2, # 连续失败2次熔断
@@ -176,11 +169,6 @@ _realtime_circuit_breaker = CircuitBreaker(
)
def get_ashare_circuit_breaker() -> CircuitBreaker:
"""获取A股数据源熔断器"""
return _ashare_circuit_breaker
def get_realtime_circuit_breaker() -> CircuitBreaker:
"""获取实时行情熔断器"""
return _realtime_circuit_breaker