feat: add агегку events

This commit is contained in:
2026-08-14 15:46:26 +03:00
parent 326fb67def
commit 34c2b79e27
10 changed files with 635 additions and 0 deletions
+41
View File
@@ -0,0 +1,41 @@
import { ApiProperty } from '@nestjs/swagger';
export class UpcomingEventDto {
@ApiProperty({ enum: ['coupon', 'dividend', 'maturity', 'offer'] })
type: 'coupon' | 'dividend' | 'maturity' | 'offer';
@ApiProperty({ format: 'date' })
date: string;
@ApiProperty({ enum: ['event', 'registry'] })
dateKind: 'event' | 'registry';
@ApiProperty({ type: String, nullable: true })
figi: string | null;
@ApiProperty({ type: String, nullable: true })
instrumentUid: string | null;
@ApiProperty()
ticker: string;
@ApiProperty()
displayName: string;
@ApiProperty({ type: String, nullable: true })
currency: string | null;
@ApiProperty({ type: String, nullable: true })
amount: string | null;
}
export class UpcomingEventsDto {
@ApiProperty()
accountId: string;
@ApiProperty({ format: 'date-time' })
calculatedAt: string;
@ApiProperty({ type: UpcomingEventDto, isArray: true })
events: UpcomingEventDto[];
}