chore(config): 添加环境变量示例及.gitignore更新

- 新增 .env.example,包含 Tushare API、钉钉机器人和PostgreSQL数据库配置模板
- 更新.gitignore,忽略本地配置文件如 .env.local 和 config_local.py
- 添加对报表文件命名规则的支持,保留示例文件不忽略
- 删除废弃的 chart.py 及相关图表模块代码
- 新增 config/settings.py,实现从环境变量读取配置的统一接口
- 设置数据目录及缓存目录,确保目录存在,提高配置管理规范性
This commit is contained in:
2026-03-18 23:33:40 +08:00
parent 7c93be4b41
commit 988c2335fb
39 changed files with 2983 additions and 1011 deletions

View File

@@ -0,0 +1,27 @@
# CCI技术指标筛选配置
# ==================== 数据源配置 ====================
# 数据来源: "postgresql" 或 "akshare"
data_source: "postgresql"
# ==================== 筛选参数 ====================
# CCI指标周期
day_period: 14
week_period: 14
# 筛选阈值(低于该值视为超卖信号)
threshold: -100
# 数据获取天数用于计算CCI
lookback_days: 100
# ==================== 标的池 ====================
# 指数代码列表文件路径CSV格式需包含"指数代码"和"指数名称"列)
index_fund_info_file: "index_fund_info.csv"
# ==================== 定时任务 ====================
# 运行时间24小时制
schedule_time: "19:00"
# 是否跳过周末
skip_weekend: true