position-tracker/.env.example
2026-05-08 11:22:05 +00:00

18 lines
663 B
Text

# Angel Broking SmartAPI credentials
ANGEL_CLIENT_ID=your_client_id
ANGEL_MPIN=your_4_digit_mpin
ANGEL_API_KEY=your_api_key_from_smartapi_portal
ANGEL_TOTP_SEED=BASE32_SEED_FROM_QR_CODE # e.g. JBSWY3DPEHPK3PXP
# Telegram
TELEGRAM_BOT_TOKEN=your_bot_token
TELEGRAM_CHAT_ID=your_chat_id
# Service config
PORT=3457
POLL_INTERVAL_SECONDS=60 # how often to poll Angel API during market hours
ALERT_THRESHOLD_PCT=5 # trigger alert when P&L moves this % from anchor
ALERT_MIN_ABS_INR=100 # minimum absolute ₹ move to fire (guards near-zero P&L)
# SQLite path (inside container, bind-mounted to ./data on host)
DB_PATH=/app/data/tracker.db