namespace Application.Features.Api.Stocks.GetDetail; public sealed class Response { public required string Code { get; init; } public string? ISIN { get; init; } public required string Name { get; init; } public string? EnglishName { get; init; } public required string Market { get; init; } public required string TradingStatus { get; init; } public string? SectorName { get; init; } public bool IsActive { get; init; } public DateOnly ListedDate { get; init; } public DateOnly? DelistedDate { get; init; } public DateOnly? LastTradingDate { get; init; } public int? ClosePrice { get; init; } public decimal? ChangeRate { get; init; } public long? MarketCap { get; init; } /// 최근 시세 (최대 30 영업일, 최신순) public required IReadOnlyList RecentPrices { get; init; } public sealed class PriceRow { public DateOnly TradingDate { get; init; } public int Open { get; init; } public int High { get; init; } public int Low { get; init; } public int Close { get; init; } public long Volume { get; init; } public long TradingValue { get; init; } public int ChangeAmount { get; init; } public decimal ChangeRate { get; init; } } }