feat: enrich portfolio list with total value and position breakdown from MOEX #10

Merged
ksv741 merged 7 commits from perf/portfolio-enricher-optimization into main 2026-06-14 14:19:56 +03:00
Showing only changes of commit 461a5b1ca6 - Show all commits

View File

@ -0,0 +1,16 @@
import { ApiProperty } from '@nestjs/swagger';
import { PortfolioResponseDto } from './portfolio-response.dto';
export class PortfolioListResponseDto extends PortfolioResponseDto {
@ApiProperty({ description: 'Total market value of all positions' })
totalValue!: number;
@ApiProperty({ description: 'Total number of positions' })
positionCount!: number;
@ApiProperty({ description: 'Number of share positions' })
shareCount!: number;
@ApiProperty({ description: 'Number of bond positions' })
bondCount!: number;
}