diff --git a/AssetManager.Models/DTOs/PortfolioDTO.cs b/AssetManager.Models/DTOs/PortfolioDTO.cs index c4f5271..f6a7cfd 100644 --- a/AssetManager.Models/DTOs/PortfolioDTO.cs +++ b/AssetManager.Models/DTOs/PortfolioDTO.cs @@ -82,6 +82,7 @@ public class TransactionItem public string? time { get; set; } public string? type { get; set; } public string? title { get; set; } + public string? stockCode { get; set; } public double amount { get; set; } public string? currency { get; set; } public string? status { get; set; } diff --git a/AssetManager.Services/PortfolioService.cs b/AssetManager.Services/PortfolioService.cs index 04a6a1c..50383e1 100644 --- a/AssetManager.Services/PortfolioService.cs +++ b/AssetManager.Services/PortfolioService.cs @@ -403,6 +403,7 @@ public class PortfolioService : IPortfolioService time = t.TransactionTime.ToString("HH:mm:ss"), type = t.Type, title = t.Title, + stockCode = t.StockCode, amount = (double)t.TotalAmount, currency = t.Currency, status = t.Status,