Files
ProStock/config/.env.test
liaozhaorun ec08a2578c refactor: 清理代码日志、重构速率限制器、切换存储方案
- 移除 client.py 和 daily.py 中的调试日志
- 重构 rate_limiter 支持无限超时和更精确的令牌获取
- 变更 stock_basic 存储方案 HDF5 → CSV
- 更新项目规则:强制使用 uv、禁止读取 config/ 目录
- 新增数据同步模块 sync.py 和测试
- .gitignore 添加 !data/ 允许跟踪数据文件
2026-02-01 02:29:54 +08:00

44 lines
981 B
Plaintext
Raw Permalink 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.
# ===========================================
# ProStock 本地环境配置
# 此文件不会被提交到版本控制
# ===========================================
# 数据库配置
DATABASE_HOST=localhost
DATABASE_PORT=5432
DATABASE_NAME=prostock
DATABASE_USER=postgres
DATABASE_PASSWORD=your_password
# API密钥配置重要不要泄露
API_KEY=your_api_key_here
SECRET_KEY=your_secret_key_here
# Redis配置可选
REDIS_HOST=localhost
REDIS_PORT=6379
# 应用配置
APP_ENV=development
APP_DEBUG=true
APP_PORT=8000
# ===========================================
# Tushare数据采集配置
# ===========================================
# Tushare Pro API Token重要去 https://tushare.pro 注册获取)
TUSHARE_TOKEN=3a0741c702ee7e5e5f2bf1f0846bafaafe4e320833240b2a7e4a685f
# 数据存储路径
DATA_PATH=./data
# 限流配置每分钟请求数默认100
RATE_LIMIT=200
# 线程数默认2
THREADS=2
ROOT_PATH=D:/PyProject/ProStock