diff --git a/IEXSharp/Model/CoreData/MarketInfo/Response/SectorPerformanceResponse.cs b/IEXSharp/Model/CoreData/MarketInfo/Response/SectorPerformanceResponse.cs index b0897b00..19047876 100644 --- a/IEXSharp/Model/CoreData/MarketInfo/Response/SectorPerformanceResponse.cs +++ b/IEXSharp/Model/CoreData/MarketInfo/Response/SectorPerformanceResponse.cs @@ -4,7 +4,7 @@ public class SectorPerformanceResponse { public string type { get; set; } public string name { get; set; } - public decimal performance { get; set; } + public decimal? performance { get; set; } public long lastUpdated { get; set; } } } \ No newline at end of file diff --git a/IEXSharp/Model/CoreData/StockFundamentals/Response/EarningTodayResponse.cs b/IEXSharp/Model/CoreData/StockFundamentals/Response/EarningTodayResponse.cs index 72f6a77e..187ce660 100644 --- a/IEXSharp/Model/CoreData/StockFundamentals/Response/EarningTodayResponse.cs +++ b/IEXSharp/Model/CoreData/StockFundamentals/Response/EarningTodayResponse.cs @@ -33,7 +33,7 @@ public class Earning } public class Other { - public long? consensusEPS { get; set; } + public decimal? consensusEPS { get; set; } public string announceTime { get; set; } public long numberOfEstimates { get; set; } public string fiscalPeriod { get; set; } diff --git a/IEXSharpTest/Cloud/CoreData/MarketInfoTest.cs b/IEXSharpTest/Cloud/CoreData/MarketInfoTest.cs index 17dadbbf..2da1eb36 100644 --- a/IEXSharpTest/Cloud/CoreData/MarketInfoTest.cs +++ b/IEXSharpTest/Cloud/CoreData/MarketInfoTest.cs @@ -113,7 +113,7 @@ public async Task SectorPerformanceAsync() var data = response.Data.First(); Assert.NotNull(data.type); Assert.NotNull(data.name); - Assert.NotNull(data.performance); + // Assert.NotNull(data.performance); sometimes IEX does return a null performance :( Assert.NotNull(data.lastUpdated); }