-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
85 lines (74 loc) · 2.62 KB
/
.env.example
File metadata and controls
85 lines (74 loc) · 2.62 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
# ==========================================
# FreqTrade Environment Variables Example
# Copy this file to .env and fill in values
# ==========================================
# ------------------------------------------
# 1. Deployment Settings
# ------------------------------------------
DOCKER_REGISTRY=ghcr.io
REPO_NAME=haoweichan/freqtrade
IMAGE_TAG=latest
UI_IMAGE=freqtrade-ui:latest
TRADER_IMAGE=freqtrade-trader:latest
USER_DATA_PATH=./user_data
# ------------------------------------------
# 2. GitHub Credentials (For GKE/Docker)
# ------------------------------------------
# Required for pulling private images from GHCR
GITHUB_USERNAME=your_github_username
GITHUB_PAT_TOKEN=your_personal_access_token_with_read_packages
GITHUB_EMAIL=your_email@example.com
# ------------------------------------------
# 3. GCP Configuration
# ------------------------------------------
GCP_PROJECT_ID=your-project-id
GCP_VM_IP=x.x.x.x
GCP_VM_USER=your_username
# Full content of Service Account JSON
GCP_SA_KEY={"type":"service_account",...}
# Full content of Private Key (keep newlines)
GCP_SSH_PRIVATE_KEY=-----BEGIN OPENSSH PRIVATE KEY-----\n...\n-----END OPENSSH PRIVATE KEY-----
# ------------------------------------------
# 4. Trading Bot Configuration
# ------------------------------------------
BINANCE_KEY=your_binance_api_key
BINANCE_SECRET=your_binance_secret
TELEGRAM_TOKEN=your_telegram_bot_token
TELEGRAM_CHAT_ID=your_telegram_chat_id
# ------------------------------------------
# 5. UI Configuration
# ------------------------------------------
FT_UI_USERNAME=fq
FT_UI_PASSWORD=fq
UI_PORT=8080
# ------------------------------------------
# 6. Local Development Ports
# ------------------------------------------
PORT_ICHIV1=8081
PORT_LOOKAHEAD=8082
PORT_MACD=8083
PORT_CUSTOMSTOPLOSS=8084
PORT_MACDCCI=8085
# ------------------------------------------
# 7. Backtest System Configuration
# ------------------------------------------
# Database URL for backtest results storage
# SQLite (local): sqlite:///user_data/backtest_results.db
# PostgreSQL (remote): postgresql://user:password@host:port/database
DATABASE_URL=sqlite:///user_data/backtest_results.db
# Ray cluster configuration
# Use 'local' for local Ray instance or ray://ip:port for remote
RAY_ADDRESS=local
# Backtest execution settings
MAX_WORKERS=4
BACKTEST_START_DATE=20240101
BACKTEST_END_DATE=20241231
BACKTEST_TIMEFRAME=5m
STRATEGY_TIMEOUT=300
# ------------------------------------------
# 8. Remote Backtesting Server
# ------------------------------------------
REMOTE_USER=your_remote_username
REMOTE_HOST=x.x.x.x
REMOTE_DB_DIR=/path/to/remote/db
REMOTE_API_URL=http://x.x.x.x:8000