Files
stock/backend/.env.example
2026-08-07 16:08:34 +08:00

18 lines
851 B
Plaintext
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.
# ---- Database ----
# MVP 默认 SQLite零配置即可跑
DATABASE_URL=sqlite+aiosqlite:///./stock.db
# 切到你自己的 PostgreSQLTimescaleDB 是 Postgres 扩展,目标库执行 CREATE EXTENSION timescaledb; 即可)
# DATABASE_URL=postgresql+asyncpg://user:password@localhost:5432/stock
# ---- 真实数据源Tushare Pro免费版即可。留空则仅 DEMO 合成数据可用)----
TUSHARE_TOKEN=你的token
DATA_ADJUST=qfq # 复权qfq 前复权 / hfq 后复权 / 留空不复权
DATA_DEFAULT_START=20200101
# ---- A股交易成本基准日 2026-08可覆盖详见 app/commission.py----
# STAMP_DUTY_RATE=0.0005 # 印花税 0.05%,单边卖出
# TRANSFER_FEE_RATE=0.00001 # 过户费 0.001%,沪深双边
# COMMISSION_RATE=0.0001 # 佣金 万1
# COMMISSION_MIN=5.0 # 最低 5 元