# risk/ - 1,906 Lines

Position-level and portfolio-level risk management.

## Subpackages

| Directory | Lines | Purpose |
|-----------|-------|---------|
| position/ | 940 | Stop-loss, trailing stop, take-profit, rule chains |
| portfolio/ | 816 | Exposure limits, drawdown limits, position counts |

## Modules

| File | Lines | Purpose |
|------|-------|---------|
| types.py | 150 | Risk configuration types |

## Key

`StopLoss`, `TrailingStop`, `TakeProfit`, `RuleChain`, `PortfolioLimits`
