Files
quanxiel/quantitative_data/.ipynb_checkpoints/config-checkpoint.py
T

19 lines
485 B
Python

"""
量化数据库配置文件
"""
# PostgreSQL Docker 连接配置
DB_CONFIG = {
"host": "192.168.27.15",
"port": 12345,
"database": "quant_db",
"user": "postgres",
"password": "postgres", # 请修改为实际密码
}
# Tushare API Token
TUSHARE_TOKEN = "你的token" # 请替换为你的tushare token
# 批量导入参数
BATCH_SIZE = 5000 # 每批次插入行数
START_DATE = "2010-01-01" # 数据起始日期
END_DATE = "2025-12-31" # 数据结束日期