-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path.env.example
More file actions
128 lines (98 loc) · 3.63 KB
/
.env.example
File metadata and controls
128 lines (98 loc) · 3.63 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# ForexSmartBot Environment Variables Configuration
# Copy this file to .env and update with your actual values
# DO NOT commit .env to version control
# ============================================
# Broker Configuration
# ============================================
# Broker mode: PAPER, MT4, or REST_API
BROKER=PAPER
# Account balance (for paper trading)
ACCOUNT_BALANCE=10000
# ============================================
# Trading Parameters
# ============================================
# Minimum trade amount in USD
TRADE_AMOUNT_MIN=10
# Maximum trade amount in USD
TRADE_AMOUNT_MAX=100
# Risk percentage per trade (0.02 = 2%)
RISK_PCT=0.02
# Maximum drawdown percentage (0.25 = 25%)
MAX_DRAWDOWN_PCT=0.25
# Default trading symbols (comma-separated)
SYMBOLS=EURUSD,USDJPY,GBPUSD,AUDUSD,USDCAD,USDCHF
# ============================================
# MT4 Configuration
# ============================================
# MT4 ZeroMQ host (for MT4 broker mode)
MT4_ZMQ_HOST=127.0.0.1
# MT4 ZeroMQ port (for MT4 broker mode)
MT4_ZMQ_PORT=5555
# ============================================
# Data Provider API Keys
# ============================================
# Alpha Vantage API Key (optional, for enhanced data)
# Get free key at: https://www.alphavantage.co/support/#api-key
ALPHA_VANTAGE_API_KEY=demo
# OANDA API Key (optional, for OANDA data provider)
# Get token at: https://www.oanda.com/account/tapi/personal_token
OANDA_API_KEY=demo
# OANDA Account ID (optional, for OANDA data provider)
OANDA_ACCOUNT_ID=101-001-123456-001
# FRED API Key (optional, for FRED data provider)
# Get token at: https://fred.stlouisfed.org/docs/api/api_key.html
FRED_API_KEY=your_key_here
# NewsAPI Key (optional, for NewsAPI data provider)
# Get token at: https://newsapi.org/register
NEWS_API_KEY=your_key_here
# ============================================
# REST API Broker Configuration
# ============================================
# Note: REST API credentials are stored in settings.json for security
# These are optional and only needed if using REST_API broker mode
# REST_API_KEY=your_api_key_here
# REST_API_SECRET=your_api_secret_here
# REST_BASE_URL=https://api.broker.com
# ============================================
# Application Settings
# ============================================
# Logging level: DEBUG, INFO, WARNING, ERROR
LOG_LEVEL=INFO
# Enable/disable debug mode
DEBUG=False
# ============================================
# Notes
# ============================================
# - System environment variables (APPDATA, USERPROFILE) are automatically used
# - REST API credentials should be set through the UI Settings dialog for security
# - API keys are optional - the app will work with demo keys for testing
# - For production trading, always use real API keys from your broker
# ============================================
# Cloud & API Configuration
# ============================================
# API Server host (for REST API)
API_HOST=127.0.0.1
# API Server port (for REST API)
API_PORT=5000
# API Base URL (for API client)
API_BASE_URL=http://localhost:5000
# API Key (for authentication)
API_KEY=
# API Secret Key (for JWT tokens - CHANGE IN PRODUCTION)
API_SECRET_KEY=default-secret-key-change-in-production
# WebSocket Server host
WS_HOST=127.0.0.1
# WebSocket Server port
WS_PORT=8765
# WebSocket URL (for WebSocket client)
WS_URL=ws://localhost:8765
# Remote Monitor host
REMOTE_MONITOR_HOST=127.0.0.1
# Remote Monitor port
REMOTE_MONITOR_PORT=8080
# Cloud API endpoint (for cloud sync)
CLOUD_API_ENDPOINT=https://api.forexsmartbot.cloud
# Cloud API key (for cloud sync)
CLOUD_API_KEY=
# FCM Server Key (for mobile push notifications)
FCM_SERVER_KEY=