Response.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. namespace Application.Features.Api.Stocks.GetDetail;
  2. public sealed class Response
  3. {
  4. public required string Code { get; init; }
  5. public string? ISIN { get; init; }
  6. public required string Name { get; init; }
  7. public string? EnglishName { get; init; }
  8. public required string Market { get; init; }
  9. public required string TradingStatus { get; init; }
  10. public string? SectorName { get; init; }
  11. public bool IsActive { get; init; }
  12. public DateOnly ListedDate { get; init; }
  13. public DateOnly? DelistedDate { get; init; }
  14. public DateOnly? LastTradingDate { get; init; }
  15. public int? ClosePrice { get; init; }
  16. public decimal? ChangeRate { get; init; }
  17. public long? MarketCap { get; init; }
  18. /// <summary>최근 시세 (최대 30 영업일, 최신순)</summary>
  19. public required IReadOnlyList<PriceRow> RecentPrices { get; init; }
  20. public sealed class PriceRow
  21. {
  22. public DateOnly TradingDate { get; init; }
  23. public int Open { get; init; }
  24. public int High { get; init; }
  25. public int Low { get; init; }
  26. public int Close { get; init; }
  27. public long Volume { get; init; }
  28. public long TradingValue { get; init; }
  29. public int ChangeAmount { get; init; }
  30. public decimal ChangeRate { get; init; }
  31. }
  32. }