Defines the business domains of the FOREX Position & Risk Manager — Customer Profile and Trading Book. Covers domain models, lifecycles, events, API surfaces, and service ownership. Use when prompts involve business logic, domain models, customer data, trading books, positions, trades, P&L, events, or API design for these domains.
Backend/Services/customer-profile/CustomerCreated, CustomerUpdated, CustomerKycVerified, CustomerDeactivated./api/v1/customers/...Backend/Services/trading-book/BookCreated, TradeCaptured, PositionUpdated, PnlRecalculated, BookFrozen./api/v1/books/...| Event | When |
|---|---|
CustomerCreated | New customer registered |
CustomerUpdated | Profile or risk-tolerance changed |
CustomerKycVerified | KYC moves to Verified |
CustomerDeactivated | Customer suspended or removed |
| Event | When |
|---|---|
BookCreated | New book initialized for a customer |
TradeCaptured | Trade successfully persisted |
PositionUpdated | Position quantity or P&L changes |
PnlRecalculated | Mark-to-market or EOD revaluation |
BookFrozen | Customer deactivated or margin breach |