feat: Introduce new modules for technical analysis, Polymarket API, and statistical models, while enhancing bot resilience and refining market data processing with advanced filtering.

This commit is contained in:
2569718930@qq.com
2026-02-06 22:47:16 +08:00
parent 7d733a7ae8
commit e0d759819c
5 changed files with 110 additions and 60 deletions
+2 -2
View File
@@ -21,7 +21,7 @@ class TechnicalIndicators:
float: RSI值 (0-100)
"""
if len(prices) < period + 1:
logger.warning("Insufficient data for RSI calculation")
logger.debug("Insufficient data for RSI calculation")
return 50.0 # 返回中性值
prices = np.array(prices)
@@ -55,7 +55,7 @@ class TechnicalIndicators:
dict: 包含上轨、中轨、下轨
"""
if len(prices) < period:
logger.warning("Insufficient data for Bollinger Bands")
logger.debug("Insufficient data for Bollinger Bands")
return {"upper": None, "middle": None, "lower": None}
prices = np.array(prices[-period:])