2025-12-21 17:29:39 +01:00
|
|
|
"""Load shared constants from shared/constants.json."""
|
2025-12-21 21:54:26 +01:00
|
|
|
|
2025-12-21 17:29:39 +01:00
|
|
|
import json
|
|
|
|
|
from pathlib import Path
|
|
|
|
|
|
|
|
|
|
_constants_path = Path(__file__).parent.parent / "shared" / "constants.json"
|
|
|
|
|
_constants = json.loads(_constants_path.read_text())
|
|
|
|
|
|
2025-12-22 18:16:35 +01:00
|
|
|
# Exchange constants
|
2025-12-22 20:28:21 +01:00
|
|
|
SLOT_DURATION_MINUTES: int = _constants["exchange"]["slotDurationMinutes"]
|
|
|
|
|
MIN_ADVANCE_DAYS: int = _constants["exchange"]["minAdvanceDays"]
|
|
|
|
|
MAX_ADVANCE_DAYS: int = _constants["exchange"]["maxAdvanceDays"]
|
2025-12-22 18:16:35 +01:00
|
|
|
EUR_TRADE_MIN: int = _constants["exchange"]["eurTradeMin"]
|
|
|
|
|
EUR_TRADE_MAX: int = _constants["exchange"]["eurTradeMax"]
|
|
|
|
|
EUR_TRADE_INCREMENT: int = _constants["exchange"]["eurTradeIncrement"]
|
|
|
|
|
PREMIUM_PERCENTAGE: int = _constants["exchange"]["premiumPercentage"]
|
|
|
|
|
PRICE_REFRESH_SECONDS: int = _constants["exchange"]["priceRefreshSeconds"]
|
|
|
|
|
PRICE_STALENESS_SECONDS: int = _constants["exchange"]["priceStalenessSeconds"]
|
2025-12-23 14:46:03 +01:00
|
|
|
LIGHTNING_MAX_EUR: int = _constants["exchange"]["lightningMaxEur"]
|