From 8fc8bff34d31fbddc95e428b6ab2f8a2623c9373 Mon Sep 17 00:00:00 2001 From: Rob Relyea Date: Sun, 9 Jun 2024 11:14:36 -0700 Subject: [PATCH] Investement.TickerOutput string (w/ date for ibonds) --- library/Models/FamilyData/Investment.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/library/Models/FamilyData/Investment.cs b/library/Models/FamilyData/Investment.cs index a235c7e..4a72280 100644 --- a/library/Models/FamilyData/Investment.cs +++ b/library/Models/FamilyData/Investment.cs @@ -82,6 +82,13 @@ public string? Ticker } } } + public string? TickerOutput + { + get + { + return Ticker + (this.IsIBond ? $" {FormatUtilities.FormatMonthPlus2DigitYear(this.PurchaseDate)}" : null); + } + } public double? GetPrice(AssetTypes? assetType, double? price) {