feat(data): 添加个股资金流向接口并重构速率限制配置

- 新增 moneyflow 资金流向数据同步模块
- 实现接口级速率限制配置(sync_config.py)
- 更新流动性相关因子定义
- 添加非对称量化损失函数
This commit is contained in:
2026-04-03 23:57:47 +08:00
parent c143815443
commit 9e7d4241c6
18 changed files with 1473 additions and 334 deletions

View File

@@ -29,12 +29,6 @@ class Settings(BaseSettings):
root_path: str = "" # 项目根路径,默认自动检测
data_path: str = "data" # 数据存储路径,相对于 root_path
# API 速率限制(每分钟请求数)
rate_limit: int = 300
# 同步工作线程数
threads: int = 10
# 数据库配置(可选,用于未来扩展)
database_host: str = "localhost"
database_port: int = 5432