-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.py
34 lines (26 loc) · 852 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
24
25
26
27
28
29
30
31
32
33
34
import os
from dotenv import load_dotenv
# Load environment variables from .env file
load_dotenv()
class Config:
# Binance API keys
BINANCE_API_KEY = os.getenv('BINANCE_API_KEY')
BINANCE_SECRET_KEY = os.getenv('BINANCE_SECRET_KEY')
# Default settings
DEFAULT_MODEL = 'LSTM'
DEFAULT_COIN = 'BTCUSDT'
DEFAULT_DATA_PERIOD = 30 # days
MODEL_SAVE_PATH = 'saved_models/'
# Continuous learning settings
ENABLE_CONTINUOUS_LEARNING = False
LEARNING_INTERVAL = 7 # days
# Risk management settings
MAX_POSITION_SIZE = 0.1 # 10% of portfolio
TRAILING_STOP = True
TAKE_PROFIT_LEVEL = 0.2 # 20%
# Scheduler settings
SCHEDULER_INTERVAL = 24 # hours
# Alerts and notifications
ALERT_EMAIL = os.getenv('ALERT_EMAIL')
ALERT_SMS = os.getenv('ALERT_SMS')
# Other settings...