- CLAUDE.md 新增安全规范章节(禁止提交 / 必须提供 .env.example) - finance/config/settings.py 硬编码密码移除 - djapi/api/video/audioRead.py API Key 替换为占位符 - 新增 finance/.env.example 示例配置 - .gitignore 解除 .env.example 排除 Co-Authored-By: Simon <simon@doorcome.cn>
28 lines
1.4 KiB
Bash
28 lines
1.4 KiB
Bash
# ── Qwen API 配置(DashScope) ─────────────────────────────
|
|
# API Key 获取:https://dashscope.console.aliyun.com/apiKey
|
|
QWEN_API_KEY=sk-your-key-here
|
|
QWEN_MODEL=qwen-turbo
|
|
|
|
# ── 本地 Qwen 部署(可选,优先级高于 API) ──────────────────
|
|
# QWEN_LOCAL_BASE_URL=http://localhost:11434/v1
|
|
# QWEN_LOCAL_MODEL=qwen2.5:7b
|
|
|
|
# ── Tushare 数据源 ─────────────────────────────────────────
|
|
# Token 获取:https://tushare.pro 注册后在 "个人主页→接口TOKEN" 复制
|
|
TUSHARE_TOKEN=your_token_here
|
|
|
|
# ── 数据库 ──────────────────────────────────────────────────
|
|
MAC_DB_HOST=127.0.0.1
|
|
MAC_DB_PORT=13306
|
|
MAC_DB_USER=myquant
|
|
MAC_DB_PASSWORD=your_password_here
|
|
MAC_DB_NAME=myquant
|
|
|
|
# ── 情绪分析范围 ────────────────────────────────────────────
|
|
SENTIMENT_SCOPE_TYPE=index
|
|
SENTIMENT_SCOPE_INDEXES=000300,000905
|
|
SENTIMENT_MAX_NEWS_PER_STOCK=30
|
|
|
|
# ── MCP 新闻服务(可选) ────────────────────────────────────
|
|
# NEWS_MCP_URL=http://192.168.1.160:3333/mcp
|