18 lines
514 B
Python
18 lines
514 B
Python
"""Configuration for the trade executor service."""
|
|
|
|
from shared.config import BaseConfig
|
|
|
|
|
|
class TradeExecutorConfig(BaseConfig):
|
|
"""Extends BaseConfig with trade-executor-specific settings."""
|
|
|
|
max_position_pct: float = 0.05
|
|
max_total_exposure_pct: float = 0.80
|
|
max_positions: int = 20
|
|
default_stop_loss_pct: float = 0.03
|
|
cooldown_minutes: int = 30
|
|
alpaca_api_key: str = ""
|
|
alpaca_secret_key: str = ""
|
|
paper_trading: bool = True
|
|
|
|
model_config = {"env_prefix": "TRADING_"}
|