-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
44 lines (35 loc) · 3.31 KB
/
.env.example
File metadata and controls
44 lines (35 loc) · 3.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# ═══════════════════════════════════════════════════════════════════════════════
# TFT TRADER — Environment Variables
# ═══════════════════════════════════════════════════════════════════════════════
# Copy to .env and fill in credentials. NEVER commit .env to git.
# ── Database (PostgreSQL / Neon) ─────────────────────────────────────────────
DATABASE_URL=postgresql://user:password@your-neon-host.aws.neon.tech/dbname?sslmode=require
# ── Redis (Cache + Celery Broker) ────────────────────────────────────────────
REDIS_URL=redis://default:your_password@your-redis-host:16216/0
CELERY_BROKER_URL=redis://default:your_password@your-redis-host:16216/0
CELERY_RESULT_BACKEND=redis://default:your_password@your-redis-host:16216/0
# ── Reddit API (PRAW) ───────────────────────────────────────────────────────
# https://www.reddit.com/prefs/apps → Create Application (script type)
REDDIT_CLIENT_ID=your_14_char_client_id
REDDIT_CLIENT_SECRET=your_27_char_secret
REDDIT_USER_AGENT=TFTTrader/1.0 (by your_reddit_username)
# ── SEC EDGAR ────────────────────────────────────────────────────────────────
# SEC requires a User-Agent with contact info for EDGAR API access
# No API key needed — EDGAR is free and public
SEC_USER_AGENT=TFT-Trader/1.0 your_email@example.com
# ── Application ──────────────────────────────────────────────────────────────
ENVIRONMENT=development
LOG_LEVEL=INFO
CORS_ORIGINS=http://localhost:3000,http://localhost:3001
# ── Stock Data ───────────────────────────────────────────────────────────────
STOCK_FETCH_PERIOD=6mo
# ── ML Models ────────────────────────────────────────────────────────────────
MODELS_PATH=./data/models
MLFLOW_TRACKING_URI=./data/mlruns
# ── Monitoring (Optional) ───────────────────────────────────────────────────
SENTRY_DSN=
# ── Telegram Bot (Signal Alerts) ────────────────────────────────────────────
# 1. Message @BotFather → /newbot → copy token
# 2. Message your bot, then GET https://api.telegram.org/bot<TOKEN>/getUpdates → copy chat_id
TELEGRAM_BOT_TOKEN=
TELEGRAM_CHAT_ID=