# accounting/ - 1,076 Lines

Cash and margin account policies.

## Modules

| File | Lines | Purpose |
|------|-------|---------|
| policy.py | 624 | Unified account policy (cash, margin, crypto modes) |
| gatekeeper.py | 291 | Order validation (buying power check) |
| account.py | 161 | Account state tracking |

## Key

`UnifiedAccountPolicy`, `AccountPolicy`, `Gatekeeper`, `AccountState`
