- Add totalFees and totalTaxesPaid to BrokerAnalyticsDto and service - Add GET /accounts/:accountId/portfolio/history endpoint with estimated v1 read-model - Add categories query param to operations endpoint for filtering by category - Update tests and module registration
34 lines
558 B
TypeScript
34 lines
558 B
TypeScript
import { ApiProperty } from '@nestjs/swagger';
|
|
|
|
export class BrokerAnalyticsDto {
|
|
@ApiProperty()
|
|
totalDeposits!: number;
|
|
|
|
@ApiProperty()
|
|
totalWithdrawn!: number;
|
|
|
|
@ApiProperty()
|
|
netInvested!: number;
|
|
|
|
@ApiProperty()
|
|
totalDividends!: number;
|
|
|
|
@ApiProperty()
|
|
totalCoupons!: number;
|
|
|
|
@ApiProperty()
|
|
totalReceived!: number;
|
|
|
|
@ApiProperty()
|
|
totalFees!: number;
|
|
|
|
@ApiProperty()
|
|
totalTaxesPaid!: number;
|
|
|
|
@ApiProperty({ type: Number, nullable: true })
|
|
totalReturnPercent!: number | null;
|
|
|
|
@ApiProperty()
|
|
currency!: string;
|
|
}
|