-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.local.example
More file actions
95 lines (73 loc) · 3.62 KB
/
.env.local.example
File metadata and controls
95 lines (73 loc) · 3.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
86
87
88
89
90
91
92
93
94
# Local Development Configuration
# Copy this to .env.local and fill in values
#
# IMPORTANT: .env.local is gitignored and should NEVER be committed
# Production uses environment variables from DigitalOcean, not this file
# ============================================================================
# ENVIRONMENT SETTINGS
# ============================================================================
# Environment type (local, dev, prod)
ENV=local
ENVIRONMENT=dev
# ============================================================================
# SYSTEM SETTINGS
# ============================================================================
# Dry Run Mode (CRITICAL SAFETY SETTING)
# 1 = Safe Mode (no real trades, no real API calls)
# 0 = Live Trading (REAL MONEY AT RISK)
DRY_RUN=1
# ============================================================================
# SMOKE TEST SETTINGS (Optional - for testing only)
# ============================================================================
# Uncomment ONE of these to enable smoke mode:
# RUN_SECONDS=30 # Run for 30 seconds then exit
# MAX_LOOPS=1 # Run for 1 loop iteration then exit
# ============================================================================
# DATABASE (PostgreSQL required)
# ============================================================================
# Homebrew PostgreSQL on port 5433 (recommended local setup):
# brew install postgresql@17
# echo "port = 5433" >> /opt/homebrew/var/postgresql@17/postgresql.conf
# brew services start postgresql@17
# createdb -p 5433 trading_local
# DATABASE_URL=postgresql://<your-username>@localhost:5433/trading_local
# Or use an existing PostgreSQL instance:
# DATABASE_URL=postgresql://user:password@localhost:5432/trading_db
# ============================================================================
# LOGGING
# ============================================================================
# Log level: DEBUG, INFO, WARNING, ERROR, CRITICAL
LOG_LEVEL=INFO
# ============================================================================
# KRAKEN API CREDENTIALS (Optional in DRY_RUN mode)
# ============================================================================
# For DRY_RUN=1: Leave these blank or unset
# For DRY_RUN=0: These are REQUIRED
# Spot API (for data fetching)
# KRAKEN_API_KEY=your_spot_api_key_here
# KRAKEN_API_SECRET=your_spot_api_secret_here
# Futures API (for trading)
# KRAKEN_FUTURES_API_KEY=your_futures_api_key_here
# KRAKEN_FUTURES_API_SECRET=your_futures_api_secret_here
# Use Testnet (for testing with fake money)
# KRAKEN_USE_TESTNET=false
# ============================================================================
# DEPLOYMENT SETTINGS
# ============================================================================
# GitHub Personal Access Token (for pushing code)
# Create at: https://github.com/settings/tokens
# Required scopes: repo (full control of private repositories)
# GITHUB_TOKEN=your_github_personal_access_token_here
# Server deployment settings
# DEPLOY_SERVER=root@207.154.193.121
# DEPLOY_SSH_KEY=~/.ssh/trading_droplet
# DEPLOY_TRADING_USER=trading
# DEPLOY_TRADING_DIR=/home/trading/TradingSystem
# DEPLOY_SERVICE_NAME=trading-system.service
# ============================================================================
# ALERTING (Optional - Telegram or Discord notifications)
# ============================================================================
# Telegram: https://api.telegram.org/bot<YOUR_BOT_TOKEN>/sendMessage
# Discord: https://discord.com/api/webhooks/<ID>/<TOKEN>
# ALERT_WEBHOOK_URL=
# ALERT_CHAT_ID= # Telegram only: your chat ID (get from @userinfobot)