feat: trade executor — risk management and order execution
This commit is contained in:
parent
f3e5fc944d
commit
3fef8a631c
5 changed files with 753 additions and 0 deletions
18
services/trade_executor/config.py
Normal file
18
services/trade_executor/config.py
Normal 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_"}
|
||||
Loading…
Add table
Add a link
Reference in a new issue