-
Notifications
You must be signed in to change notification settings - Fork 33
/
config.py
25 lines (20 loc) · 821 Bytes
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from dotenv import load_dotenv
import os
# Load .env file to set environment variables
load_dotenv()
# Load configuration values from environment variables
class Config:
volume: str = os.environ.get("VOLUME")
debug: str = os.environ.get("DEBUG")
log_filename: str = os.environ.get("LOG_FILENAME")
imap: str = os.environ.get("IMAP")
user: str = os.environ.get("USER")
pwd: str = os.environ.get("PWD")
folder: str = os.environ.get("FOLDER", "[Gmail]/All Mail")
stop_loss = os.environ.get("STOP_LOSS")
take_profit = os.environ.get("TAKE_PROFIT")
hedging: str = os.environ.get("HEDGE")
bot_name: str = os.environ.get("BOT_NAME")
socket1: str = os.environ.get("SOCKET1")
socket2: str = os.environ.get("SOCKET2")
target_symbol: str = os.environ.get("TARGET_SYMBOL")