feat(FEAT-MO-001): 接入TDX市场宽度板块与成交额趋势

This commit is contained in:
2026-08-18 17:37:36 +08:00
parent 82619489a9
commit ff8ada8316
21 changed files with 616 additions and 69 deletions
@@ -72,18 +72,44 @@ export class BreadthDataDto {
@ApiProperty({ type: Number })
declining!: number;
@ApiProperty({ type: Number })
unchanged!: number;
@ApiPropertyOptional({ type: Number, nullable: true })
unchanged!: number | null;
}
export class SectorQuoteDto {
@ApiProperty({ type: String })
code!: string;
@ApiProperty({ type: String })
name!: string;
@ApiPropertyOptional({ type: Number, nullable: true })
changePercent!: number | null;
@ApiProperty({ enum: ['up', 'down', 'flat'] })
direction!: QuoteDirection;
@ApiProperty({ type: String })
tradeDate!: string;
}
export class SectorDataDto {
@ApiProperty({ type: [String] })
items!: string[];
@ApiProperty({ type: [SectorQuoteDto] })
items!: SectorQuoteDto[];
}
export class FundDataDto {
@ApiProperty({ type: [String] })
items!: string[];
@ApiProperty({ type: Number })
currentAmount!: number;
@ApiProperty({ type: Number })
previousAmount!: number;
@ApiProperty({ type: Number })
changePercent!: number;
@ApiProperty({ type: String, example: '亿元' })
unit!: '亿元';
}
export class SummaryResponseDto extends MarketOverviewMetaDto {