Stage 07.4.4.1.14 — Execution refactoring and runtime semantics
This commit is contained in:
@@ -48,8 +48,9 @@ class Settings:
|
||||
db_user: str
|
||||
db_password: str
|
||||
|
||||
# Debag helper
|
||||
# Debug helpers
|
||||
debug_enabled: bool
|
||||
journal_debug_enabled: bool
|
||||
|
||||
# helper: demo/live mode
|
||||
def is_demo_mode(self) -> bool:
|
||||
@@ -91,6 +92,9 @@ def load_settings() -> Settings:
|
||||
log_level=os.getenv("LOG_LEVEL", "INFO").strip().upper() or "INFO",
|
||||
tz=os.getenv("TZ", "Europe/Minsk").strip() or "Europe/Minsk",
|
||||
debug_enabled=_parse_bool(os.getenv("DEBUG_ENABLED", "false")),
|
||||
journal_debug_enabled=_parse_bool(
|
||||
os.getenv("JOURNAL_DEBUG_ENABLED", "false")
|
||||
),
|
||||
|
||||
# Exchange
|
||||
exchange_enabled=_parse_bool(os.getenv("EXCHANGE_ENABLED", "false")),
|
||||
@@ -101,8 +105,8 @@ def load_settings() -> Settings:
|
||||
exchange_api_secret=os.getenv("EXCHANGE_API_SECRET", "").strip(),
|
||||
exchange_timeout_sec=_parse_int(os.getenv("EXCHANGE_TIMEOUT_SEC", "10"), 10),
|
||||
exchange_testnet=_parse_bool(os.getenv("EXCHANGE_TESTNET", "false")),
|
||||
default_symbol=os.getenv("DEFAULT_SYMBOL", "BTC/USD_LEVERAGE").strip()
|
||||
or "BTC/USD_LEVERAGE",
|
||||
default_symbol=os.getenv("DEFAULT_SYMBOL", "ETH/USD_LEVERAGE").strip()
|
||||
or "ETH/USD_LEVERAGE",
|
||||
|
||||
# Database
|
||||
db_host=os.getenv("DB_HOST", "localhost").strip() or "localhost",
|
||||
|
||||
Reference in New Issue
Block a user