-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
103 lines (89 loc) · 4.22 KB
/
.env.example
File metadata and controls
103 lines (89 loc) · 4.22 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# ================================================================
# QuantLab Environment Variables - EXAMPLE TEMPLATE
# ================================================================
# Copy this file to .env and fill in your actual API keys
# NEVER commit the .env file - it's in .gitignore
# ================================================================
# ================================================================
# DATA STORAGE PATHS
# ================================================================
# Path to your external data storage (adjust to your setup)
# Example: /Volumes/sandisk/quantmini-data/data/qlib/stocks_daily/
QLIB_DATA_PATH=/path/to/your/data/qlib/stocks_daily
QUANTMINI_DATA_PATH=/path/to/your/data
# ================================================================
# POLYGON.IO API (Stock Market Data)
# ================================================================
# Get your free API key at: https://polygon.io/
POLYGON_API_KEY=your_polygon_api_key_here
# ================================================================
# ALPHA VANTAGE API (Sentiment & Fundamentals)
# ================================================================
# Get your free API key at: https://www.alphavantage.co/support/#api-key
ALPHA_VANTAGE_API_KEY=your_alpha_vantage_api_key_here
# ================================================================
# YAHOO FINANCE (Fundamentals - No API Key Needed)
# ================================================================
# yfinance doesn't require an API key, but you can set preferences
# YF_RATE_LIMIT=true
# YF_TIMEOUT=30
# ================================================================
# DATABASE CONFIGURATION
# ================================================================
# DuckDB database file location (optional)
# DUCKDB_PATH=/path/to/your/quantlab.duckdb
# ================================================================
# MLFLOW CONFIGURATION
# ================================================================
# MLflow tracking URI (optional - defaults to local)
# MLFLOW_TRACKING_URI=file:./results/mlruns
# MLFLOW_EXPERIMENT_NAME=quantlab_experiments
# ================================================================
# LOGGING CONFIGURATION
# ================================================================
# Log level: DEBUG, INFO, WARNING, ERROR, CRITICAL
LOG_LEVEL=INFO
LOG_FILE=./quantlab.log
# ================================================================
# BACKTEST CONFIGURATION
# ================================================================
# Default backtest parameters (optional)
# BACKTEST_START_DATE=2024-01-01
# BACKTEST_END_DATE=2024-12-31
# BACKTEST_INITIAL_CAPITAL=100000000
# ================================================================
# DEVELOPMENT SETTINGS
# ================================================================
# Set to 'true' for development mode (more verbose logging)
# DEV_MODE=false
# ================================================================
# RATE LIMITING
# ================================================================
# API rate limits (requests per minute)
POLYGON_RATE_LIMIT=5
ALPHA_VANTAGE_RATE_LIMIT=5
# ================================================================
# CACHE SETTINGS
# ================================================================
# Enable/disable caching for faster performance
ENABLE_INDICATOR_CACHE=true
ENABLE_SENTIMENT_CACHE=true
ENABLE_FUNDAMENTALS_CACHE=true
# Cache expiration (in hours)
CACHE_EXPIRATION_HOURS=24
# ================================================================
# OPTIONAL: ADDITIONAL API KEYS
# ================================================================
# Add any other API keys you might need
# NEWS_API_KEY=your_news_api_key_here
# TWITTER_API_KEY=your_twitter_api_key_here
# REDDIT_API_KEY=your_reddit_api_key_here
# ================================================================
# NOTES
# ================================================================
# 1. Copy this file: cp .env.example .env
# 2. Fill in your actual API keys in the .env file
# 3. Never commit .env to git - it's protected by .gitignore
# 4. Free API keys are available for all services listed above
# 5. Adjust data paths to match your system setup
# ================================================================