hectorgomezv/financial-advisor-nestjs

Add PositionState entity

Opened this issue · 0 comments

Position states are calculated on-demand right now. See getPositionDetailsByPortfolioUuid/calculatePositionState. Extract this to a new entity and persist it so historic data from a position is available as well.

See also PositionService.updatePortfolioState