feat: enrich portfolio list with total value and position breakdown from MOEX #10
@ -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;
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user