-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path.env.example
More file actions
50 lines (39 loc) · 1.77 KB
/
.env.example
File metadata and controls
50 lines (39 loc) · 1.77 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
# pyPortMan Environment Configuration
# Copy this file to .env and fill in your credentials
# ==================== SECURITY ====================
# Encryption key for sensitive data (generate with: python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())")
PYPORTMAN_ENCRYPTION_KEY=your-encryption-key-here
# ==================== ZERODHA CREDENTIALS ====================
# Format: ZERODHA_{ACCOUNT_NAME}_{FIELD}
# Example for account "main"
ZERODHA_MAIN_USER_ID=your_zerodha_user_id
ZERODHA_MAIN_PASSWORD=your_zerodha_password
ZERODHA_MAIN_PIN=your_zerodha_pin_or_totp
ZERODHA_MAIN_TOTP_KEY=your_totp_secret_if_enabled
ZERODHA_MAIN_TOTP_ENABLED=true
# Example for account "trading"
# ZERODHA_TRADING_USER_ID=your_zerodha_user_id
# ZERODHA_TRADING_PASSWORD=your_zerodha_password
# ZERODHA_TRADING_PIN=your_zerodha_pin_or_totp
# ZERODHA_TRADING_TOTP_KEY=your_totp_secret_if_enabled
# ZERODHA_TRADING_TOTP_ENABLED=true
# ==================== ANGEL BROKING CREDENTIALS ====================
# Format: ANGEL_{ACCOUNT_NAME}_{FIELD}
# Example for account "angel_main"
ANGEL_ANGEL_MAIN_USER_ID=your_angel_user_id
ANGEL_ANGEL_MAIN_PASSWORD=your_angel_password
ANGEL_ANGEL_MAIN_API_KEY=your_angel_api_key
# ==================== TELEGRAM ALERTS (OPTIONAL) ====================
# TELEGRAM_BOT_TOKEN=your_telegram_bot_token
# TELEGRAM_CHAT_ID=your_telegram_chat_id
# ==================== LOGGING ====================
# Log level: DEBUG, INFO, WARNING, ERROR, CRITICAL
PYPORTMAN_LOG_LEVEL=INFO
# ==================== RATE LIMITING ====================
# Maximum API calls per minute
PYPORTMAN_RATE_LIMIT=50
# ==================== DATA CACHE ====================
# Enable/disable data caching (true/false)
PYPORTMAN_ENABLE_CACHE=true
# Cache duration in minutes
PYPORTMAN_CACHE_DURATION=5