feat(backend): add PortfolioListResponseDto
This commit is contained in:
parent
38729249f3
commit
461a5b1ca6
@ -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