feat: trade executor — risk management and order execution

This commit is contained in:
Viktor Barzin 2026-02-22 15:36:08 +00:00
parent f3e5fc944d
commit 3fef8a631c
No known key found for this signature in database
GPG key ID: 0EB088298288D958
5 changed files with 753 additions and 0 deletions

View file

@ -0,0 +1,18 @@
"""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_"}