69 lines
1.4 KiB
TypeScript
69 lines
1.4 KiB
TypeScript
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||
|
||
export class StockMarketDataDto {
|
||
@ApiProperty({ example: 322.35 })
|
||
price!: number;
|
||
|
||
@ApiProperty({ example: 1.15 })
|
||
change!: number;
|
||
|
||
@ApiProperty({ example: 0.36 })
|
||
changePercent!: number;
|
||
|
||
@ApiProperty({ example: 321.3 })
|
||
open!: number;
|
||
|
||
@ApiPropertyOptional({ example: 322.66 })
|
||
high!: number | null;
|
||
|
||
@ApiPropertyOptional({ example: 321.2 })
|
||
low!: number | null;
|
||
|
||
@ApiProperty({ example: 1925163 })
|
||
volume!: number;
|
||
|
||
@ApiProperty({ example: 620184479 })
|
||
value!: number;
|
||
|
||
@ApiPropertyOptional({ example: 6958336818320 })
|
||
issueCapitalization!: number | null;
|
||
|
||
@ApiProperty()
|
||
updatedAt!: string;
|
||
}
|
||
|
||
export class ShareResponseDto {
|
||
@ApiProperty({ example: 'SBER' })
|
||
secid!: string;
|
||
|
||
@ApiProperty({ example: 'RU0009029540' })
|
||
isin!: string;
|
||
|
||
@ApiProperty({ example: 'Сбербанк России ПАО ао' })
|
||
name!: string;
|
||
|
||
@ApiProperty({ example: 'Сбербанк' })
|
||
shortName!: string;
|
||
|
||
@ApiPropertyOptional()
|
||
latName!: string | null;
|
||
|
||
@ApiProperty({ example: 1 })
|
||
listLevel!: number;
|
||
|
||
@ApiProperty({ example: 21586948000 })
|
||
issueSize!: number;
|
||
|
||
@ApiProperty({ example: 3 })
|
||
faceValue!: number;
|
||
|
||
@ApiProperty({ example: 'RUB' })
|
||
faceUnit!: string;
|
||
|
||
@ApiProperty({ example: 'common_share' })
|
||
type!: string;
|
||
|
||
@ApiProperty()
|
||
marketData!: StockMarketDataDto;
|
||
}
|