Files
qlib/.env.example
T

29 lines
1.3 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ============================================================
# 复制本文件为项目根目录 .env 并填入真实值。
# .env 已被 .gitignore 忽略 —— 严禁把真实密钥提交进 Git。
# 各变量用途:被根目录 config.yaml 中对应 *_env 字段引用,
# 或由后端 app.core.config 直接读取。
# ============================================================
# ---- Tushare Pro token(首选数据源,Phase 1 数据管线使用)----
TUSHARE_TOKEN=
# ---- 数据库连接 ----
# 留空时使用默认 SQLite:<项目根>/data/quant.db(相对路径自动解析到项目根)
DATABASE_URL=
# SQLite 示例(显式指定):
# DATABASE_URL=sqlite:///./data/quant.db
# MySQL 示例(未来切换,仅需改此值,业务代码不变):
# DATABASE_URL=mysql+pymysql://user:password@127.0.0.1:3306/quant
# ---- AI Agent / LLM(Phase 5)----
# 只需填写 API Key;URL 与模型名已在 config.yaml 的 agent.llm 中配置
# (默认 dashscope 兼容端点 + qwen-plus)。如需覆盖 config.yaml 的值,
# 再取消注释下面两行。
LLM_API_KEY=
# LLM_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1
# LLM_MODEL=qwen-plus
# ---- API 应用密钥(必须修改为随机值)----
APP_SECRET_KEY=please-change-me