Response.cs 799 B

123456789101112131415161718192021222324252627282930313233
  1. using Domain.Entities.Paper.ValueObject;
  2. namespace Application.Features.Api.Paper.GetOrders;
  3. public sealed record Response(int Total, List<Response.Row> List)
  4. {
  5. public sealed record Row(
  6. int ID,
  7. string StockCode,
  8. string StockName,
  9. PaperOrderSide Side,
  10. PaperFillRule FillRule,
  11. int Quantity,
  12. decimal ReservedAmount,
  13. DateOnly TargetDate,
  14. DateTime CancelableUntil,
  15. PaperOrderStatus Status,
  16. string? RejectReason,
  17. DateTime CreatedAt,
  18. FillInfo? Fill
  19. );
  20. public sealed record FillInfo(
  21. decimal Price,
  22. int Quantity,
  23. decimal Fee,
  24. decimal Tax,
  25. decimal Amount,
  26. decimal? RealizedPnL,
  27. DateOnly PriceDate,
  28. DateTime FilledAt
  29. );
  30. }