diff --git a/Common/Data/Fundamental/FundamentalProperty.cs b/Common/Data/Fundamental/FundamentalProperty.cs index 80a0d47a5046..bc6b7b8b4193 100644 --- a/Common/Data/Fundamental/FundamentalProperty.cs +++ b/Common/Data/Fundamental/FundamentalProperty.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -55,9 +55,16 @@ public enum FundamentalProperty CompanyReference_YearofEstablishment, CompanyReference_IsLimitedLiabilityCompany, CompanyReference_ExpectedFiscalYearEnd, + CompanyReference_IsSPAC, + CompanyReference_IsMLP, + CompanyReference_IsBDC, + CompanyReference_LEI, + CompanyReference_IsShellCompany, + CompanyReference_StateOrCountryOfIncorporation, SecurityReference_SecuritySymbol, SecurityReference_ExchangeId, SecurityReference_CurrencyId, + SecurityReference_ISIN, SecurityReference_IPODate, SecurityReference_IsDepositaryReceipt, SecurityReference_DepositaryReceiptRatio, @@ -79,6 +86,7 @@ public enum FundamentalProperty SecurityReference_ParValue, SecurityReference_TradingStatus, SecurityReference_MarketDataID, + SecurityReference_IsIPO, FinancialStatements_PeriodEndingDate_OneMonth, FinancialStatements_PeriodEndingDate_TwoMonths, FinancialStatements_PeriodEndingDate_ThreeMonths, @@ -978,6 +986,46 @@ public enum FundamentalProperty FinancialStatements_IncomeStatement_AmortizationSupplemental_SixMonths, FinancialStatements_IncomeStatement_AmortizationSupplemental_NineMonths, FinancialStatements_IncomeStatement_AmortizationSupplemental_TwelveMonths, + FinancialStatements_IncomeStatement_DisposalofBusinessesSupplemental_ThreeMonths, + FinancialStatements_IncomeStatement_DisposalofBusinessesSupplemental_SixMonths, + FinancialStatements_IncomeStatement_DisposalofBusinessesSupplemental_NineMonths, + FinancialStatements_IncomeStatement_DisposalofBusinessesSupplemental_TwelveMonths, + FinancialStatements_IncomeStatement_DiscontinuedOperationsSupplemental_ThreeMonths, + FinancialStatements_IncomeStatement_DiscontinuedOperationsSupplemental_SixMonths, + FinancialStatements_IncomeStatement_DiscontinuedOperationsSupplemental_NineMonths, + FinancialStatements_IncomeStatement_DiscontinuedOperationsSupplemental_TwelveMonths, + FinancialStatements_IncomeStatement_AssetDisposalsSupplemental_ThreeMonths, + FinancialStatements_IncomeStatement_AssetDisposalsSupplemental_SixMonths, + FinancialStatements_IncomeStatement_AssetDisposalsSupplemental_NineMonths, + FinancialStatements_IncomeStatement_AssetDisposalsSupplemental_TwelveMonths, + FinancialStatements_IncomeStatement_ImpairmentWriteOffWriteDownofCapitalAssetsSupplemental_ThreeMonths, + FinancialStatements_IncomeStatement_ImpairmentWriteOffWriteDownofCapitalAssetsSupplemental_SixMonths, + FinancialStatements_IncomeStatement_ImpairmentWriteOffWriteDownofCapitalAssetsSupplemental_NineMonths, + FinancialStatements_IncomeStatement_ImpairmentWriteOffWriteDownofCapitalAssetsSupplemental_TwelveMonths, + FinancialStatements_IncomeStatement_GoodwillImpairmentWriteOffSupplemental_ThreeMonths, + FinancialStatements_IncomeStatement_GoodwillImpairmentWriteOffSupplemental_SixMonths, + FinancialStatements_IncomeStatement_GoodwillImpairmentWriteOffSupplemental_NineMonths, + FinancialStatements_IncomeStatement_GoodwillImpairmentWriteOffSupplemental_TwelveMonths, + FinancialStatements_IncomeStatement_ImpairmentWriteOffWriteDownofOtherAssetsSupplemental_ThreeMonths, + FinancialStatements_IncomeStatement_ImpairmentWriteOffWriteDownofOtherAssetsSupplemental_SixMonths, + FinancialStatements_IncomeStatement_ImpairmentWriteOffWriteDownofOtherAssetsSupplemental_NineMonths, + FinancialStatements_IncomeStatement_ImpairmentWriteOffWriteDownofOtherAssetsSupplemental_TwelveMonths, + FinancialStatements_IncomeStatement_GainLossOnExtinguishmentofDebtSupplemental_ThreeMonths, + FinancialStatements_IncomeStatement_GainLossOnExtinguishmentofDebtSupplemental_SixMonths, + FinancialStatements_IncomeStatement_GainLossOnExtinguishmentofDebtSupplemental_NineMonths, + FinancialStatements_IncomeStatement_GainLossOnExtinguishmentofDebtSupplemental_TwelveMonths, + FinancialStatements_IncomeStatement_DebtRestructuringSupplemental_ThreeMonths, + FinancialStatements_IncomeStatement_DebtRestructuringSupplemental_SixMonths, + FinancialStatements_IncomeStatement_DebtRestructuringSupplemental_NineMonths, + FinancialStatements_IncomeStatement_DebtRestructuringSupplemental_TwelveMonths, + FinancialStatements_IncomeStatement_LitigationIncomeExpenseSupplemental_ThreeMonths, + FinancialStatements_IncomeStatement_LitigationIncomeExpenseSupplemental_SixMonths, + FinancialStatements_IncomeStatement_LitigationIncomeExpenseSupplemental_NineMonths, + FinancialStatements_IncomeStatement_LitigationIncomeExpenseSupplemental_TwelveMonths, + FinancialStatements_IncomeStatement_MergerAndAcquisitionIncomeExpenseSupplemental_ThreeMonths, + FinancialStatements_IncomeStatement_MergerAndAcquisitionIncomeExpenseSupplemental_SixMonths, + FinancialStatements_IncomeStatement_MergerAndAcquisitionIncomeExpenseSupplemental_NineMonths, + FinancialStatements_IncomeStatement_MergerAndAcquisitionIncomeExpenseSupplemental_TwelveMonths, FinancialStatements_IncomeStatement_TotalRevenueAsReported_ThreeMonths, FinancialStatements_IncomeStatement_TotalRevenueAsReported_SixMonths, FinancialStatements_IncomeStatement_TotalRevenueAsReported_NineMonths, @@ -3042,6 +3090,156 @@ public enum FundamentalProperty FinancialStatements_CashFlowStatement_ChangeinCashSupplementalAsReported_SixMonths, FinancialStatements_CashFlowStatement_ChangeinCashSupplementalAsReported_NineMonths, FinancialStatements_CashFlowStatement_ChangeinCashSupplementalAsReported_TwelveMonths, + FinancialStatements_CommonEquityTier1CapitalRatio_OneMonth, + FinancialStatements_CommonEquityTier1CapitalRatio_ThreeMonths, + FinancialStatements_CommonEquityTier1CapitalRatio_SixMonths, + FinancialStatements_CommonEquityTier1CapitalRatio_NineMonths, + FinancialStatements_CommonEquityTier1CapitalRatio_TwelveMonths, + FinancialStatements_CommonEquityTier1Capital_OneMonth, + FinancialStatements_CommonEquityTier1Capital_ThreeMonths, + FinancialStatements_CommonEquityTier1Capital_SixMonths, + FinancialStatements_CommonEquityTier1Capital_NineMonths, + FinancialStatements_CommonEquityTier1Capital_TwelveMonths, + FinancialStatements_LiquidityCoverageRatio_OneMonth, + FinancialStatements_LiquidityCoverageRatio_ThreeMonths, + FinancialStatements_LiquidityCoverageRatio_SixMonths, + FinancialStatements_LiquidityCoverageRatio_NineMonths, + FinancialStatements_LiquidityCoverageRatio_TwelveMonths, + FinancialStatements_NetInterestMargin_OneMonth, + FinancialStatements_NetInterestMargin_ThreeMonths, + FinancialStatements_NetInterestMargin_SixMonths, + FinancialStatements_NetInterestMargin_NineMonths, + FinancialStatements_NetInterestMargin_TwelveMonths, + FinancialStatements_NetInterestSpread_OneMonth, + FinancialStatements_NetInterestSpread_ThreeMonths, + FinancialStatements_NetInterestSpread_SixMonths, + FinancialStatements_NetInterestSpread_NineMonths, + FinancialStatements_NetInterestSpread_TwelveMonths, + FinancialStatements_NonPerformingAssetsLoans_OneMonth, + FinancialStatements_NonPerformingAssetsLoans_ThreeMonths, + FinancialStatements_NonPerformingAssetsLoans_SixMonths, + FinancialStatements_NonPerformingAssetsLoans_NineMonths, + FinancialStatements_NonPerformingAssetsLoans_TwelveMonths, + FinancialStatements_RiskWeightedAsset_OneMonth, + FinancialStatements_RiskWeightedAsset_ThreeMonths, + FinancialStatements_RiskWeightedAsset_SixMonths, + FinancialStatements_RiskWeightedAsset_NineMonths, + FinancialStatements_RiskWeightedAsset_TwelveMonths, + FinancialStatements_Tier1CapitalRatio_OneMonth, + FinancialStatements_Tier1CapitalRatio_ThreeMonths, + FinancialStatements_Tier1CapitalRatio_SixMonths, + FinancialStatements_Tier1CapitalRatio_NineMonths, + FinancialStatements_Tier1CapitalRatio_TwelveMonths, + FinancialStatements_Tier1Capital_OneMonth, + FinancialStatements_Tier1Capital_ThreeMonths, + FinancialStatements_Tier1Capital_SixMonths, + FinancialStatements_Tier1Capital_NineMonths, + FinancialStatements_Tier1Capital_TwelveMonths, + FinancialStatements_Tier1LeverageRatio_OneMonth, + FinancialStatements_Tier1LeverageRatio_ThreeMonths, + FinancialStatements_Tier1LeverageRatio_SixMonths, + FinancialStatements_Tier1LeverageRatio_NineMonths, + FinancialStatements_Tier1LeverageRatio_TwelveMonths, + FinancialStatements_Tier2CapitalRatio_OneMonth, + FinancialStatements_Tier2CapitalRatio_ThreeMonths, + FinancialStatements_Tier2CapitalRatio_SixMonths, + FinancialStatements_Tier2CapitalRatio_NineMonths, + FinancialStatements_Tier2CapitalRatio_TwelveMonths, + FinancialStatements_Tier2Capital_OneMonth, + FinancialStatements_Tier2Capital_ThreeMonths, + FinancialStatements_Tier2Capital_SixMonths, + FinancialStatements_Tier2Capital_NineMonths, + FinancialStatements_Tier2Capital_TwelveMonths, + FinancialStatements_TotalCapital_OneMonth, + FinancialStatements_TotalCapital_ThreeMonths, + FinancialStatements_TotalCapital_SixMonths, + FinancialStatements_TotalCapital_NineMonths, + FinancialStatements_TotalCapital_TwelveMonths, + FinancialStatements_AdjustedBasicNetAssetValue_OneMonth, + FinancialStatements_AdjustedBasicNetAssetValue_ThreeMonths, + FinancialStatements_AdjustedBasicNetAssetValue_SixMonths, + FinancialStatements_AdjustedBasicNetAssetValue_NineMonths, + FinancialStatements_AdjustedBasicNetAssetValue_TwelveMonths, + FinancialStatements_AdjustedDilutedNetAssetValue_OneMonth, + FinancialStatements_AdjustedDilutedNetAssetValue_ThreeMonths, + FinancialStatements_AdjustedDilutedNetAssetValue_SixMonths, + FinancialStatements_AdjustedDilutedNetAssetValue_NineMonths, + FinancialStatements_AdjustedDilutedNetAssetValue_TwelveMonths, + FinancialStatements_EPRANetDisposalValue_OneMonth, + FinancialStatements_EPRANetDisposalValue_ThreeMonths, + FinancialStatements_EPRANetDisposalValue_SixMonths, + FinancialStatements_EPRANetDisposalValue_NineMonths, + FinancialStatements_EPRANetDisposalValue_TwelveMonths, + FinancialStatements_EPRANetReinstatementValue_OneMonth, + FinancialStatements_EPRANetReinstatementValue_ThreeMonths, + FinancialStatements_EPRANetReinstatementValue_SixMonths, + FinancialStatements_EPRANetReinstatementValue_NineMonths, + FinancialStatements_EPRANetReinstatementValue_TwelveMonths, + FinancialStatements_EPRANetTangibleAssets_OneMonth, + FinancialStatements_EPRANetTangibleAssets_ThreeMonths, + FinancialStatements_EPRANetTangibleAssets_SixMonths, + FinancialStatements_EPRANetTangibleAssets_NineMonths, + FinancialStatements_EPRANetTangibleAssets_TwelveMonths, + FinancialStatements_ReportedBasicAdjustedFundFromOperations_OneMonth, + FinancialStatements_ReportedBasicAdjustedFundFromOperations_ThreeMonths, + FinancialStatements_ReportedBasicAdjustedFundFromOperations_SixMonths, + FinancialStatements_ReportedBasicAdjustedFundFromOperations_NineMonths, + FinancialStatements_ReportedBasicAdjustedFundFromOperations_TwelveMonths, + FinancialStatements_ReportedDilutedAdjustedFundFromOperations_OneMonth, + FinancialStatements_ReportedDilutedAdjustedFundFromOperations_ThreeMonths, + FinancialStatements_ReportedDilutedAdjustedFundFromOperations_SixMonths, + FinancialStatements_ReportedDilutedAdjustedFundFromOperations_NineMonths, + FinancialStatements_ReportedDilutedAdjustedFundFromOperations_TwelveMonths, + FinancialStatements_ReportedDilutedFundFromOperations_OneMonth, + FinancialStatements_ReportedDilutedFundFromOperations_ThreeMonths, + FinancialStatements_ReportedDilutedFundFromOperations_SixMonths, + FinancialStatements_ReportedDilutedFundFromOperations_NineMonths, + FinancialStatements_ReportedDilutedFundFromOperations_TwelveMonths, + FinancialStatements_AdjustedBasicNetAssetValuePerShare_OneMonth, + FinancialStatements_AdjustedBasicNetAssetValuePerShare_ThreeMonths, + FinancialStatements_AdjustedBasicNetAssetValuePerShare_SixMonths, + FinancialStatements_AdjustedBasicNetAssetValuePerShare_NineMonths, + FinancialStatements_AdjustedBasicNetAssetValuePerShare_TwelveMonths, + FinancialStatements_AdjustedDilutedNetAssetValuePerShare_OneMonth, + FinancialStatements_AdjustedDilutedNetAssetValuePerShare_ThreeMonths, + FinancialStatements_AdjustedDilutedNetAssetValuePerShare_SixMonths, + FinancialStatements_AdjustedDilutedNetAssetValuePerShare_NineMonths, + FinancialStatements_AdjustedDilutedNetAssetValuePerShare_TwelveMonths, + FinancialStatements_EPRANetDisposalValuePerShare_OneMonth, + FinancialStatements_EPRANetDisposalValuePerShare_ThreeMonths, + FinancialStatements_EPRANetDisposalValuePerShare_SixMonths, + FinancialStatements_EPRANetDisposalValuePerShare_NineMonths, + FinancialStatements_EPRANetDisposalValuePerShare_TwelveMonths, + FinancialStatements_EPRANetReinstatementValuePerShare_OneMonth, + FinancialStatements_EPRANetReinstatementValuePerShare_ThreeMonths, + FinancialStatements_EPRANetReinstatementValuePerShare_SixMonths, + FinancialStatements_EPRANetReinstatementValuePerShare_NineMonths, + FinancialStatements_EPRANetReinstatementValuePerShare_TwelveMonths, + FinancialStatements_EPRANetTangibleAssetsPerShare_OneMonth, + FinancialStatements_EPRANetTangibleAssetsPerShare_ThreeMonths, + FinancialStatements_EPRANetTangibleAssetsPerShare_SixMonths, + FinancialStatements_EPRANetTangibleAssetsPerShare_NineMonths, + FinancialStatements_EPRANetTangibleAssetsPerShare_TwelveMonths, + FinancialStatements_ReportedBasicAdjustedFundFromOperationsPerShare_OneMonth, + FinancialStatements_ReportedBasicAdjustedFundFromOperationsPerShare_ThreeMonths, + FinancialStatements_ReportedBasicAdjustedFundFromOperationsPerShare_SixMonths, + FinancialStatements_ReportedBasicAdjustedFundFromOperationsPerShare_NineMonths, + FinancialStatements_ReportedBasicAdjustedFundFromOperationsPerShare_TwelveMonths, + FinancialStatements_ReportedBasicFundFromOperationsPerShare_OneMonth, + FinancialStatements_ReportedBasicFundFromOperationsPerShare_ThreeMonths, + FinancialStatements_ReportedBasicFundFromOperationsPerShare_SixMonths, + FinancialStatements_ReportedBasicFundFromOperationsPerShare_NineMonths, + FinancialStatements_ReportedBasicFundFromOperationsPerShare_TwelveMonths, + FinancialStatements_ReportedDilutedAdjustedFundFromOperationsPerShare_OneMonth, + FinancialStatements_ReportedDilutedAdjustedFundFromOperationsPerShare_ThreeMonths, + FinancialStatements_ReportedDilutedAdjustedFundFromOperationsPerShare_SixMonths, + FinancialStatements_ReportedDilutedAdjustedFundFromOperationsPerShare_NineMonths, + FinancialStatements_ReportedDilutedAdjustedFundFromOperationsPerShare_TwelveMonths, + FinancialStatements_ReportedDilutedFundFromOperationsPerShare_OneMonth, + FinancialStatements_ReportedDilutedFundFromOperationsPerShare_ThreeMonths, + FinancialStatements_ReportedDilutedFundFromOperationsPerShare_SixMonths, + FinancialStatements_ReportedDilutedFundFromOperationsPerShare_NineMonths, + FinancialStatements_ReportedDilutedFundFromOperationsPerShare_TwelveMonths, EarningReports_PeriodEndingDate_OneMonth, EarningReports_PeriodEndingDate_TwoMonths, EarningReports_PeriodEndingDate_ThreeMonths, @@ -3595,6 +3793,28 @@ public enum FundamentalProperty ValuationRatios_FirstYearEstimatedEPSGrowth, ValuationRatios_SecondYearEstimatedEPSGrowth, ValuationRatios_NormalizedPEGRatio, + ValuationRatios_NormalizedEarningsYield, + ValuationRatios_DilutedEVToAssets, + ValuationRatios_DilutedEVToRevenue, + ValuationRatios_DilutedEVToEBITDA, + ValuationRatios_DilutedEVToEBIT, + ValuationRatios_DilutedEVToFCF, + ValuationRatios_DilutedEVToNormalizedEBITDA, + ValuationRatios_DilutedEVToNormalizedEBIT, + ValuationRatios_NormalizedEVToEBITDA, + ValuationRatios_NormalizedEVToEBIT, + ValuationRatios_TotalDebtToEV, + ValuationRatios_EVToEBITDA5YrAvg, + ValuationRatios_EVToEBIT5YrAvg, + ValuationRatios_PBRatio5YrAvg, + ValuationRatios_PSRatio5YrAvg, + ValuationRatios_FCFRatio1YrAvg, + ValuationRatios_FCFRatio5YrAvg, + ValuationRatios_FCFRatio10YrAvg, + ValuationRatios_PCashRatio5YrAvg, + ValuationRatios_EarningYield5YrAvg, + ValuationRatios_BuyBackYield5YrAvg, + ValuationRatios_TotalYield5YrAvg, CompanyProfile_HeadquarterAddressLine1, CompanyProfile_HeadquarterAddressLine2, CompanyProfile_HeadquarterAddressLine3, @@ -3627,6 +3847,12 @@ public enum FundamentalProperty CompanyProfile_ShareClassLevelSharesOutstanding, CompanyProfile_SharesOutstandingWithBalanceSheetEndingDate, CompanyProfile_ReasonofSharesChange, + CompanyProfile_DilutedMarketCap, + CompanyProfile_LongDescription, + CompanyProfile_Float, + CompanyProfile_FullTimeEmployeeNumber, + CompanyProfile_PartTimeEmployeeNumber, + CompanyProfile_TreasuryShares, AssetClassification_StockType, AssetClassification_StyleBox, AssetClassification_GrowthGrade, @@ -3644,6 +3870,8 @@ public enum FundamentalProperty AssetClassification_ValueScore, AssetClassification_NACE, AssetClassification_CANNAICS, + AssetClassification_DistanceToDefault, + AssetClassification_ProbabilityOfDefault, #pragma warning restore CS1591, CA1707 } } diff --git a/Common/Data/Fundamental/Generated/AccountsPayableBalanceSheet.cs b/Common/Data/Fundamental/Generated/AccountsPayableBalanceSheet.cs index 81270302d13f..f156d5d91317 100644 --- a/Common/Data/Fundamental/Generated/AccountsPayableBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/AccountsPayableBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class AccountsPayableBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AccountsPayable_OneMonth); + [Obsolete("AccountsPayable.OneMonth was retired by Morningstar in 2026; use AccountsPayable.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("AccountsPayable.OneMonth was retired by Morningstar in 2026; use AccountsPayable.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AccountsPayable_TwoMonths); + [Obsolete("AccountsPayable.TwoMonths was retired by Morningstar in 2026; use AccountsPayable.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("AccountsPayable.TwoMonths was retired by Morningstar in 2026; use AccountsPayable.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class AccountsPayableBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AccountsPayable_NineMonths); + [Obsolete("AccountsPayable.NineMonths was retired by Morningstar in 2026; use AccountsPayable.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("AccountsPayable.NineMonths was retired by Morningstar in 2026; use AccountsPayable.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/AccountsReceivableBalanceSheet.cs b/Common/Data/Fundamental/Generated/AccountsReceivableBalanceSheet.cs index 79b0817f1584..3c4698cdf1c5 100644 --- a/Common/Data/Fundamental/Generated/AccountsReceivableBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/AccountsReceivableBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class AccountsReceivableBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AccountsReceivable_OneMonth); + [Obsolete("AccountsReceivable.OneMonth was retired by Morningstar in 2026; use AccountsReceivable.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("AccountsReceivable.OneMonth was retired by Morningstar in 2026; use AccountsReceivable.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AccountsReceivable_TwoMonths); + [Obsolete("AccountsReceivable.TwoMonths was retired by Morningstar in 2026; use AccountsReceivable.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("AccountsReceivable.TwoMonths was retired by Morningstar in 2026; use AccountsReceivable.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class AccountsReceivableBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AccountsReceivable_NineMonths); + [Obsolete("AccountsReceivable.NineMonths was retired by Morningstar in 2026; use AccountsReceivable.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("AccountsReceivable.NineMonths was retired by Morningstar in 2026; use AccountsReceivable.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/AccruedInterestReceivableBalanceSheet.cs b/Common/Data/Fundamental/Generated/AccruedInterestReceivableBalanceSheet.cs index 3ab6283d4975..1d6634575b73 100644 --- a/Common/Data/Fundamental/Generated/AccruedInterestReceivableBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/AccruedInterestReceivableBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,52 +37,46 @@ public class AccruedInterestReceivableBalanceSheet : MultiPeriodField /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AccruedInterestReceivable_TwoMonths); + [Obsolete("AccruedInterestReceivable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("AccruedInterestReceivable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AccruedInterestReceivable_ThreeMonths); + [Obsolete("AccruedInterestReceivable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("AccruedInterestReceivable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AccruedInterestReceivable_SixMonths); + [Obsolete("AccruedInterestReceivable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("AccruedInterestReceivable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AccruedInterestReceivable_NineMonths); + [Obsolete("AccruedInterestReceivable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("AccruedInterestReceivable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AccruedInterestReceivable_TwelveMonths); + [Obsolete("AccruedInterestReceivable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("AccruedInterestReceivable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AccruedInterestReceivable_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AccruedInterestReceivable_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("AccruedInterestReceivable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -91,7 +85,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/AccruedInvestmentIncomeBalanceSheet.cs b/Common/Data/Fundamental/Generated/AccruedInvestmentIncomeBalanceSheet.cs index bb191facdab8..48647f1c922d 100644 --- a/Common/Data/Fundamental/Generated/AccruedInvestmentIncomeBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/AccruedInvestmentIncomeBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,40 +37,32 @@ public class AccruedInvestmentIncomeBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AccruedInvestmentIncome_ThreeMonths); + [Obsolete("AccruedInvestmentIncome was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("AccruedInvestmentIncome was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AccruedInvestmentIncome_SixMonths); + [Obsolete("AccruedInvestmentIncome was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("AccruedInvestmentIncome was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AccruedInvestmentIncome_TwelveMonths); + [Obsolete("AccruedInvestmentIncome was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("AccruedInvestmentIncome was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AccruedInvestmentIncome_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AccruedInvestmentIncome_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("AccruedInvestmentIncome was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -79,7 +71,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/AccruedLiabilitiesTotalBalanceSheet.cs b/Common/Data/Fundamental/Generated/AccruedLiabilitiesTotalBalanceSheet.cs index 050349a7ac77..3eee3aee93be 100644 --- a/Common/Data/Fundamental/Generated/AccruedLiabilitiesTotalBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/AccruedLiabilitiesTotalBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,7 +37,8 @@ public class AccruedLiabilitiesTotalBalanceSheet : MultiPeriodField /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AccruedLiabilitiesTotal_TwoMonths); + [Obsolete("AccruedLiabilitiesTotal.TwoMonths was retired by Morningstar in 2026; use AccruedLiabilitiesTotal.ThreeMonths (also available: TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("AccruedLiabilitiesTotal.TwoMonths was retired by Morningstar in 2026; use AccruedLiabilitiesTotal.ThreeMonths (also available: TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -79,7 +80,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/AccruedandDeferredIncomeBalanceSheet.cs b/Common/Data/Fundamental/Generated/AccruedandDeferredIncomeBalanceSheet.cs index 9509da7148d6..03736615b748 100644 --- a/Common/Data/Fundamental/Generated/AccruedandDeferredIncomeBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/AccruedandDeferredIncomeBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class AccruedandDeferredIncomeBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AccruedandDeferredIncome_ThreeMonths); + [Obsolete("AccruedandDeferredIncome was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("AccruedandDeferredIncome was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AccruedandDeferredIncome_TwelveMonths); + [Obsolete("AccruedandDeferredIncome was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("AccruedandDeferredIncome was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AccruedandDeferredIncome_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AccruedandDeferredIncome_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("AccruedandDeferredIncome was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/AccruedandDeferredIncomeCurrentBalanceSheet.cs b/Common/Data/Fundamental/Generated/AccruedandDeferredIncomeCurrentBalanceSheet.cs index efb8de25e531..f072d9c0beb6 100644 --- a/Common/Data/Fundamental/Generated/AccruedandDeferredIncomeCurrentBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/AccruedandDeferredIncomeCurrentBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/AccruedandDeferredIncomeNonCurrentBalanceSheet.cs b/Common/Data/Fundamental/Generated/AccruedandDeferredIncomeNonCurrentBalanceSheet.cs index b59d6d87f57a..e6dac7ccba61 100644 --- a/Common/Data/Fundamental/Generated/AccruedandDeferredIncomeNonCurrentBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/AccruedandDeferredIncomeNonCurrentBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/AccumulatedDepreciationBalanceSheet.cs b/Common/Data/Fundamental/Generated/AccumulatedDepreciationBalanceSheet.cs index d4265ce5d3dd..3d2958b13212 100644 --- a/Common/Data/Fundamental/Generated/AccumulatedDepreciationBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/AccumulatedDepreciationBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class AccumulatedDepreciationBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AccumulatedDepreciation_OneMonth); + [Obsolete("AccumulatedDepreciation.OneMonth was retired by Morningstar in 2026; use AccumulatedDepreciation.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("AccumulatedDepreciation.OneMonth was retired by Morningstar in 2026; use AccumulatedDepreciation.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AccumulatedDepreciation_TwoMonths); + [Obsolete("AccumulatedDepreciation.TwoMonths was retired by Morningstar in 2026; use AccumulatedDepreciation.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("AccumulatedDepreciation.TwoMonths was retired by Morningstar in 2026; use AccumulatedDepreciation.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class AccumulatedDepreciationBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AccumulatedDepreciation_NineMonths); + [Obsolete("AccumulatedDepreciation.NineMonths was retired by Morningstar in 2026; use AccumulatedDepreciation.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("AccumulatedDepreciation.NineMonths was retired by Morningstar in 2026; use AccumulatedDepreciation.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/AdditionalPaidInCapitalBalanceSheet.cs b/Common/Data/Fundamental/Generated/AdditionalPaidInCapitalBalanceSheet.cs index 84674d6eeb4c..356065ca714c 100644 --- a/Common/Data/Fundamental/Generated/AdditionalPaidInCapitalBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/AdditionalPaidInCapitalBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class AdditionalPaidInCapitalBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AdditionalPaidInCapital_OneMonth); + [Obsolete("AdditionalPaidInCapital was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("AdditionalPaidInCapital was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AdditionalPaidInCapital_TwoMonths); + [Obsolete("AdditionalPaidInCapital was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("AdditionalPaidInCapital was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AdditionalPaidInCapital_ThreeMonths); + [Obsolete("AdditionalPaidInCapital was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("AdditionalPaidInCapital was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AdditionalPaidInCapital_SixMonths); + [Obsolete("AdditionalPaidInCapital was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("AdditionalPaidInCapital was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AdditionalPaidInCapital_NineMonths); + [Obsolete("AdditionalPaidInCapital was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("AdditionalPaidInCapital was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AdditionalPaidInCapital_TwelveMonths); + [Obsolete("AdditionalPaidInCapital was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("AdditionalPaidInCapital was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AdditionalPaidInCapital_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AdditionalPaidInCapital_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("AdditionalPaidInCapital was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/AdjustedBasicNetAssetValue.cs b/Common/Data/Fundamental/Generated/AdjustedBasicNetAssetValue.cs new file mode 100644 index 000000000000..54f9c044d4a3 --- /dev/null +++ b/Common/Data/Fundamental/Generated/AdjustedBasicNetAssetValue.cs @@ -0,0 +1,125 @@ +/* + * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. + * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * +*/ + +using System; +using System.Linq; +using Python.Runtime; +using Newtonsoft.Json; +using System.Collections.Generic; +using QuantConnect.Data.UniverseSelection; + +namespace QuantConnect.Data.Fundamental +{ + /// + /// Net asset value adjusted per the reporting standard, on a basic share basis + /// + public class AdjustedBasicNetAssetValue : MultiPeriodField + { + /// + /// The default period + /// + protected override string DefaultPeriod => "TwelveMonths"; + + /// + /// Gets/sets the OneMonth period value for the field + /// + [JsonProperty("1M")] + public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_AdjustedBasicNetAssetValue_OneMonth); + + /// + /// Gets/sets the ThreeMonths period value for the field + /// + [JsonProperty("3M")] + public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_AdjustedBasicNetAssetValue_ThreeMonths); + + /// + /// Gets/sets the SixMonths period value for the field + /// + [JsonProperty("6M")] + public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_AdjustedBasicNetAssetValue_SixMonths); + + /// + /// Gets/sets the NineMonths period value for the field + /// + [JsonProperty("9M")] + public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_AdjustedBasicNetAssetValue_NineMonths); + + /// + /// Gets/sets the TwelveMonths period value for the field + /// + [JsonProperty("12M")] + public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_AdjustedBasicNetAssetValue_TwelveMonths); + + /// + /// Returns true if the field contains a value for the default period + /// + public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_AdjustedBasicNetAssetValue_TwelveMonths)); + + /// + /// Returns the default value for the field + /// + public override double Value + { + get + { + var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_AdjustedBasicNetAssetValue_TwelveMonths); + if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) + { + return defaultValue; + } + return base.Value; + } + } + + /// + /// Gets a dictionary of period names and values for the field + /// + /// The dictionary of period names and values + public override IReadOnlyDictionary GetPeriodValues() + { + var result = new Dictionary(); + foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + { + if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) + { + result[kvp.Item1] = kvp.Item2; + } + } + return result; + } + + /// + /// Gets the value of the field for the requested period + /// + /// The requested period + /// The value for the period + public override double GetPeriodValue(string period) => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, Enum.Parse($"FinancialStatements_AdjustedBasicNetAssetValue_{ConvertPeriod(period)}")); + + /// + /// Creates a new empty instance + /// + public AdjustedBasicNetAssetValue() + { + } + + /// + /// Creates a new instance for the given time and security + /// + public AdjustedBasicNetAssetValue(ITimeProvider timeProvider, SecurityIdentifier securityIdentifier) : base(timeProvider, securityIdentifier) + { + } + } +} diff --git a/Common/Data/Fundamental/Generated/AdjustedBasicNetAssetValuePerShare.cs b/Common/Data/Fundamental/Generated/AdjustedBasicNetAssetValuePerShare.cs new file mode 100644 index 000000000000..f85bcc058e34 --- /dev/null +++ b/Common/Data/Fundamental/Generated/AdjustedBasicNetAssetValuePerShare.cs @@ -0,0 +1,125 @@ +/* + * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. + * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * +*/ + +using System; +using System.Linq; +using Python.Runtime; +using Newtonsoft.Json; +using System.Collections.Generic; +using QuantConnect.Data.UniverseSelection; + +namespace QuantConnect.Data.Fundamental +{ + /// + /// Adjusted net asset value per basic share + /// + public class AdjustedBasicNetAssetValuePerShare : MultiPeriodField + { + /// + /// The default period + /// + protected override string DefaultPeriod => "TwelveMonths"; + + /// + /// Gets/sets the OneMonth period value for the field + /// + [JsonProperty("1M")] + public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_AdjustedBasicNetAssetValuePerShare_OneMonth); + + /// + /// Gets/sets the ThreeMonths period value for the field + /// + [JsonProperty("3M")] + public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_AdjustedBasicNetAssetValuePerShare_ThreeMonths); + + /// + /// Gets/sets the SixMonths period value for the field + /// + [JsonProperty("6M")] + public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_AdjustedBasicNetAssetValuePerShare_SixMonths); + + /// + /// Gets/sets the NineMonths period value for the field + /// + [JsonProperty("9M")] + public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_AdjustedBasicNetAssetValuePerShare_NineMonths); + + /// + /// Gets/sets the TwelveMonths period value for the field + /// + [JsonProperty("12M")] + public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_AdjustedBasicNetAssetValuePerShare_TwelveMonths); + + /// + /// Returns true if the field contains a value for the default period + /// + public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_AdjustedBasicNetAssetValuePerShare_TwelveMonths)); + + /// + /// Returns the default value for the field + /// + public override double Value + { + get + { + var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_AdjustedBasicNetAssetValuePerShare_TwelveMonths); + if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) + { + return defaultValue; + } + return base.Value; + } + } + + /// + /// Gets a dictionary of period names and values for the field + /// + /// The dictionary of period names and values + public override IReadOnlyDictionary GetPeriodValues() + { + var result = new Dictionary(); + foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + { + if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) + { + result[kvp.Item1] = kvp.Item2; + } + } + return result; + } + + /// + /// Gets the value of the field for the requested period + /// + /// The requested period + /// The value for the period + public override double GetPeriodValue(string period) => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, Enum.Parse($"FinancialStatements_AdjustedBasicNetAssetValuePerShare_{ConvertPeriod(period)}")); + + /// + /// Creates a new empty instance + /// + public AdjustedBasicNetAssetValuePerShare() + { + } + + /// + /// Creates a new instance for the given time and security + /// + public AdjustedBasicNetAssetValuePerShare(ITimeProvider timeProvider, SecurityIdentifier securityIdentifier) : base(timeProvider, securityIdentifier) + { + } + } +} diff --git a/Common/Data/Fundamental/Generated/AdjustedDilutedNetAssetValue.cs b/Common/Data/Fundamental/Generated/AdjustedDilutedNetAssetValue.cs new file mode 100644 index 000000000000..eaf76425f7e2 --- /dev/null +++ b/Common/Data/Fundamental/Generated/AdjustedDilutedNetAssetValue.cs @@ -0,0 +1,125 @@ +/* + * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. + * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * +*/ + +using System; +using System.Linq; +using Python.Runtime; +using Newtonsoft.Json; +using System.Collections.Generic; +using QuantConnect.Data.UniverseSelection; + +namespace QuantConnect.Data.Fundamental +{ + /// + /// Net asset value adjusted per the reporting standard, on a diluted share basis + /// + public class AdjustedDilutedNetAssetValue : MultiPeriodField + { + /// + /// The default period + /// + protected override string DefaultPeriod => "TwelveMonths"; + + /// + /// Gets/sets the OneMonth period value for the field + /// + [JsonProperty("1M")] + public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_AdjustedDilutedNetAssetValue_OneMonth); + + /// + /// Gets/sets the ThreeMonths period value for the field + /// + [JsonProperty("3M")] + public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_AdjustedDilutedNetAssetValue_ThreeMonths); + + /// + /// Gets/sets the SixMonths period value for the field + /// + [JsonProperty("6M")] + public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_AdjustedDilutedNetAssetValue_SixMonths); + + /// + /// Gets/sets the NineMonths period value for the field + /// + [JsonProperty("9M")] + public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_AdjustedDilutedNetAssetValue_NineMonths); + + /// + /// Gets/sets the TwelveMonths period value for the field + /// + [JsonProperty("12M")] + public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_AdjustedDilutedNetAssetValue_TwelveMonths); + + /// + /// Returns true if the field contains a value for the default period + /// + public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_AdjustedDilutedNetAssetValue_TwelveMonths)); + + /// + /// Returns the default value for the field + /// + public override double Value + { + get + { + var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_AdjustedDilutedNetAssetValue_TwelveMonths); + if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) + { + return defaultValue; + } + return base.Value; + } + } + + /// + /// Gets a dictionary of period names and values for the field + /// + /// The dictionary of period names and values + public override IReadOnlyDictionary GetPeriodValues() + { + var result = new Dictionary(); + foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + { + if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) + { + result[kvp.Item1] = kvp.Item2; + } + } + return result; + } + + /// + /// Gets the value of the field for the requested period + /// + /// The requested period + /// The value for the period + public override double GetPeriodValue(string period) => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, Enum.Parse($"FinancialStatements_AdjustedDilutedNetAssetValue_{ConvertPeriod(period)}")); + + /// + /// Creates a new empty instance + /// + public AdjustedDilutedNetAssetValue() + { + } + + /// + /// Creates a new instance for the given time and security + /// + public AdjustedDilutedNetAssetValue(ITimeProvider timeProvider, SecurityIdentifier securityIdentifier) : base(timeProvider, securityIdentifier) + { + } + } +} diff --git a/Common/Data/Fundamental/Generated/AdjustedDilutedNetAssetValuePerShare.cs b/Common/Data/Fundamental/Generated/AdjustedDilutedNetAssetValuePerShare.cs new file mode 100644 index 000000000000..a6bddf601926 --- /dev/null +++ b/Common/Data/Fundamental/Generated/AdjustedDilutedNetAssetValuePerShare.cs @@ -0,0 +1,125 @@ +/* + * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. + * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * +*/ + +using System; +using System.Linq; +using Python.Runtime; +using Newtonsoft.Json; +using System.Collections.Generic; +using QuantConnect.Data.UniverseSelection; + +namespace QuantConnect.Data.Fundamental +{ + /// + /// Adjusted net asset value per diluted share + /// + public class AdjustedDilutedNetAssetValuePerShare : MultiPeriodField + { + /// + /// The default period + /// + protected override string DefaultPeriod => "TwelveMonths"; + + /// + /// Gets/sets the OneMonth period value for the field + /// + [JsonProperty("1M")] + public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_AdjustedDilutedNetAssetValuePerShare_OneMonth); + + /// + /// Gets/sets the ThreeMonths period value for the field + /// + [JsonProperty("3M")] + public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_AdjustedDilutedNetAssetValuePerShare_ThreeMonths); + + /// + /// Gets/sets the SixMonths period value for the field + /// + [JsonProperty("6M")] + public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_AdjustedDilutedNetAssetValuePerShare_SixMonths); + + /// + /// Gets/sets the NineMonths period value for the field + /// + [JsonProperty("9M")] + public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_AdjustedDilutedNetAssetValuePerShare_NineMonths); + + /// + /// Gets/sets the TwelveMonths period value for the field + /// + [JsonProperty("12M")] + public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_AdjustedDilutedNetAssetValuePerShare_TwelveMonths); + + /// + /// Returns true if the field contains a value for the default period + /// + public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_AdjustedDilutedNetAssetValuePerShare_TwelveMonths)); + + /// + /// Returns the default value for the field + /// + public override double Value + { + get + { + var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_AdjustedDilutedNetAssetValuePerShare_TwelveMonths); + if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) + { + return defaultValue; + } + return base.Value; + } + } + + /// + /// Gets a dictionary of period names and values for the field + /// + /// The dictionary of period names and values + public override IReadOnlyDictionary GetPeriodValues() + { + var result = new Dictionary(); + foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + { + if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) + { + result[kvp.Item1] = kvp.Item2; + } + } + return result; + } + + /// + /// Gets the value of the field for the requested period + /// + /// The requested period + /// The value for the period + public override double GetPeriodValue(string period) => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, Enum.Parse($"FinancialStatements_AdjustedDilutedNetAssetValuePerShare_{ConvertPeriod(period)}")); + + /// + /// Creates a new empty instance + /// + public AdjustedDilutedNetAssetValuePerShare() + { + } + + /// + /// Creates a new instance for the given time and security + /// + public AdjustedDilutedNetAssetValuePerShare(ITimeProvider timeProvider, SecurityIdentifier securityIdentifier) : base(timeProvider, securityIdentifier) + { + } + } +} diff --git a/Common/Data/Fundamental/Generated/AdvanceFromFederalHomeLoanBanksBalanceSheet.cs b/Common/Data/Fundamental/Generated/AdvanceFromFederalHomeLoanBanksBalanceSheet.cs index 563deaee02e8..4d8f53338f9f 100644 --- a/Common/Data/Fundamental/Generated/AdvanceFromFederalHomeLoanBanksBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/AdvanceFromFederalHomeLoanBanksBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class AdvanceFromFederalHomeLoanBanksBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AdvanceFromFederalHomeLoanBanks_ThreeMonths); + [Obsolete("AdvanceFromFederalHomeLoanBanks was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("AdvanceFromFederalHomeLoanBanks was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AdvanceFromFederalHomeLoanBanks_SixMonths); + [Obsolete("AdvanceFromFederalHomeLoanBanks was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("AdvanceFromFederalHomeLoanBanks was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AdvanceFromFederalHomeLoanBanks_NineMonths); + [Obsolete("AdvanceFromFederalHomeLoanBanks was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("AdvanceFromFederalHomeLoanBanks was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AdvanceFromFederalHomeLoanBanks_TwelveMonths); + [Obsolete("AdvanceFromFederalHomeLoanBanks was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("AdvanceFromFederalHomeLoanBanks was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AdvanceFromFederalHomeLoanBanks_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AdvanceFromFederalHomeLoanBanks_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("AdvanceFromFederalHomeLoanBanks was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/AllowanceForDoubtfulAccountsReceivableBalanceSheet.cs b/Common/Data/Fundamental/Generated/AllowanceForDoubtfulAccountsReceivableBalanceSheet.cs index c8ca1dffa47d..003614f265e6 100644 --- a/Common/Data/Fundamental/Generated/AllowanceForDoubtfulAccountsReceivableBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/AllowanceForDoubtfulAccountsReceivableBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/AllowanceForLoansAndLeaseLossesBalanceSheet.cs b/Common/Data/Fundamental/Generated/AllowanceForLoansAndLeaseLossesBalanceSheet.cs index d6487dd20958..e5bb614cfa2a 100644 --- a/Common/Data/Fundamental/Generated/AllowanceForLoansAndLeaseLossesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/AllowanceForLoansAndLeaseLossesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -49,7 +49,8 @@ public class AllowanceForLoansAndLeaseLossesBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AllowanceForLoansAndLeaseLosses_NineMonths); + [Obsolete("AllowanceForLoansAndLeaseLosses.NineMonths was retired by Morningstar in 2026; use AllowanceForLoansAndLeaseLosses.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("AllowanceForLoansAndLeaseLosses.NineMonths was retired by Morningstar in 2026; use AllowanceForLoansAndLeaseLosses.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -85,7 +86,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/AmortizationCashFlowStatement.cs b/Common/Data/Fundamental/Generated/AmortizationCashFlowStatement.cs index 0a89a9e635f1..33f298e85d9d 100644 --- a/Common/Data/Fundamental/Generated/AmortizationCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/AmortizationCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class AmortizationCashFlowStatement : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_Amortization_OneMonth); + [Obsolete("Amortization was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("Amortization was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_Amortization_TwoMonths); + [Obsolete("Amortization was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("Amortization was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_Amortization_ThreeMonths); + [Obsolete("Amortization was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("Amortization was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_Amortization_SixMonths); + [Obsolete("Amortization was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("Amortization was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_Amortization_NineMonths); + [Obsolete("Amortization was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("Amortization was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_Amortization_TwelveMonths); + [Obsolete("Amortization was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("Amortization was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_Amortization_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_Amortization_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("Amortization was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/AmortizationIncomeStatement.cs b/Common/Data/Fundamental/Generated/AmortizationIncomeStatement.cs index 87f450b0ab3d..82b60bc897c1 100644 --- a/Common/Data/Fundamental/Generated/AmortizationIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/AmortizationIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class AmortizationIncomeStatement : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_Amortization_OneMonth); + [Obsolete("Amortization was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("Amortization was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_Amortization_TwoMonths); + [Obsolete("Amortization was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("Amortization was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_Amortization_ThreeMonths); + [Obsolete("Amortization was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("Amortization was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_Amortization_SixMonths); + [Obsolete("Amortization was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("Amortization was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_Amortization_NineMonths); + [Obsolete("Amortization was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("Amortization was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_Amortization_TwelveMonths); + [Obsolete("Amortization was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("Amortization was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_Amortization_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_Amortization_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("Amortization was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/AmortizationOfIntangiblesCashFlowStatement.cs b/Common/Data/Fundamental/Generated/AmortizationOfIntangiblesCashFlowStatement.cs index 9d6e43836585..a79ef0c983b7 100644 --- a/Common/Data/Fundamental/Generated/AmortizationOfIntangiblesCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/AmortizationOfIntangiblesCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class AmortizationOfIntangiblesCashFlowStatement : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_AmortizationOfIntangibles_OneMonth); + [Obsolete("AmortizationOfIntangibles was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("AmortizationOfIntangibles was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_AmortizationOfIntangibles_TwoMonths); + [Obsolete("AmortizationOfIntangibles was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("AmortizationOfIntangibles was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_AmortizationOfIntangibles_ThreeMonths); + [Obsolete("AmortizationOfIntangibles was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("AmortizationOfIntangibles was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_AmortizationOfIntangibles_SixMonths); + [Obsolete("AmortizationOfIntangibles was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("AmortizationOfIntangibles was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_AmortizationOfIntangibles_NineMonths); + [Obsolete("AmortizationOfIntangibles was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("AmortizationOfIntangibles was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_AmortizationOfIntangibles_TwelveMonths); + [Obsolete("AmortizationOfIntangibles was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("AmortizationOfIntangibles was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_AmortizationOfIntangibles_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_AmortizationOfIntangibles_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("AmortizationOfIntangibles was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/AmortizationOfIntangiblesIncomeStatement.cs b/Common/Data/Fundamental/Generated/AmortizationOfIntangiblesIncomeStatement.cs index f5ecfdd1c083..999d52671623 100644 --- a/Common/Data/Fundamental/Generated/AmortizationOfIntangiblesIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/AmortizationOfIntangiblesIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class AmortizationOfIntangiblesIncomeStatement : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_AmortizationOfIntangibles_OneMonth); + [Obsolete("AmortizationOfIntangibles was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("AmortizationOfIntangibles was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_AmortizationOfIntangibles_TwoMonths); + [Obsolete("AmortizationOfIntangibles was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("AmortizationOfIntangibles was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_AmortizationOfIntangibles_ThreeMonths); + [Obsolete("AmortizationOfIntangibles was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("AmortizationOfIntangibles was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_AmortizationOfIntangibles_SixMonths); + [Obsolete("AmortizationOfIntangibles was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("AmortizationOfIntangibles was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_AmortizationOfIntangibles_NineMonths); + [Obsolete("AmortizationOfIntangibles was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("AmortizationOfIntangibles was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_AmortizationOfIntangibles_TwelveMonths); + [Obsolete("AmortizationOfIntangibles was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("AmortizationOfIntangibles was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_AmortizationOfIntangibles_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_AmortizationOfIntangibles_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("AmortizationOfIntangibles was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/AmortizationSupplementalIncomeStatement.cs b/Common/Data/Fundamental/Generated/AmortizationSupplementalIncomeStatement.cs index 62e987d6d1bf..3f2c6c2e9337 100644 --- a/Common/Data/Fundamental/Generated/AmortizationSupplementalIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/AmortizationSupplementalIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class AmortizationSupplementalIncomeStatement : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_AmortizationSupplemental_ThreeMonths); + [Obsolete("AmortizationSupplemental was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("AmortizationSupplemental was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_AmortizationSupplemental_SixMonths); + [Obsolete("AmortizationSupplemental was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("AmortizationSupplemental was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_AmortizationSupplemental_NineMonths); + [Obsolete("AmortizationSupplemental was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("AmortizationSupplemental was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_AmortizationSupplemental_TwelveMonths); + [Obsolete("AmortizationSupplemental was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("AmortizationSupplemental was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_AmortizationSupplemental_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_AmortizationSupplemental_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("AmortizationSupplemental was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/AssetClassification.cs b/Common/Data/Fundamental/Generated/AssetClassification.cs index 611ba74d0116..93e178334443 100644 --- a/Common/Data/Fundamental/Generated/AssetClassification.cs +++ b/Common/Data/Fundamental/Generated/AssetClassification.cs @@ -181,6 +181,24 @@ public class AssetClassification : FundamentalTimeDependentProperty [JsonProperty("3016")] public int CANNAICS => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.AssetClassification_CANNAICS); + /// + /// Structural credit risk: standard deviations between current asset value and the default point + /// + /// + /// Morningstar DataId: 45001 + /// + [JsonProperty("45001")] + public double DistanceToDefault => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.AssetClassification_DistanceToDefault); + + /// + /// The probability the company defaults within one year, derived from distance to default + /// + /// + /// Morningstar DataId: 45002 + /// + [JsonProperty("45002")] + public double ProbabilityOfDefault => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.AssetClassification_ProbabilityOfDefault); + /// /// Creates a new instance for the given time and security /// diff --git a/Common/Data/Fundamental/Generated/AssetDisposalsSupplementalIncomeStatement.cs b/Common/Data/Fundamental/Generated/AssetDisposalsSupplementalIncomeStatement.cs new file mode 100644 index 000000000000..3f1f33c60bd4 --- /dev/null +++ b/Common/Data/Fundamental/Generated/AssetDisposalsSupplementalIncomeStatement.cs @@ -0,0 +1,119 @@ +/* + * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. + * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * +*/ + +using System; +using System.Linq; +using Python.Runtime; +using Newtonsoft.Json; +using System.Collections.Generic; +using QuantConnect.Data.UniverseSelection; + +namespace QuantConnect.Data.Fundamental +{ + /// + /// Gains or losses on the disposal of assets. It is a supplemental value which would be reported outside consolidated statements. + /// + public class AssetDisposalsSupplementalIncomeStatement : MultiPeriodField + { + /// + /// The default period + /// + protected override string DefaultPeriod => "TwelveMonths"; + + /// + /// Gets/sets the ThreeMonths period value for the field + /// + [JsonProperty("3M")] + public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_AssetDisposalsSupplemental_ThreeMonths); + + /// + /// Gets/sets the SixMonths period value for the field + /// + [JsonProperty("6M")] + public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_AssetDisposalsSupplemental_SixMonths); + + /// + /// Gets/sets the NineMonths period value for the field + /// + [JsonProperty("9M")] + public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_AssetDisposalsSupplemental_NineMonths); + + /// + /// Gets/sets the TwelveMonths period value for the field + /// + [JsonProperty("12M")] + public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_AssetDisposalsSupplemental_TwelveMonths); + + /// + /// Returns true if the field contains a value for the default period + /// + public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_AssetDisposalsSupplemental_TwelveMonths)); + + /// + /// Returns the default value for the field + /// + public override double Value + { + get + { + var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_AssetDisposalsSupplemental_TwelveMonths); + if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) + { + return defaultValue; + } + return base.Value; + } + } + + /// + /// Gets a dictionary of period names and values for the field + /// + /// The dictionary of period names and values + public override IReadOnlyDictionary GetPeriodValues() + { + var result = new Dictionary(); + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + { + if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) + { + result[kvp.Item1] = kvp.Item2; + } + } + return result; + } + + /// + /// Gets the value of the field for the requested period + /// + /// The requested period + /// The value for the period + public override double GetPeriodValue(string period) => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, Enum.Parse($"FinancialStatements_IncomeStatement_AssetDisposalsSupplemental_{ConvertPeriod(period)}")); + + /// + /// Creates a new empty instance + /// + public AssetDisposalsSupplementalIncomeStatement() + { + } + + /// + /// Creates a new instance for the given time and security + /// + public AssetDisposalsSupplementalIncomeStatement(ITimeProvider timeProvider, SecurityIdentifier securityIdentifier) : base(timeProvider, securityIdentifier) + { + } + } +} diff --git a/Common/Data/Fundamental/Generated/AssetImpairmentChargeCashFlowStatement.cs b/Common/Data/Fundamental/Generated/AssetImpairmentChargeCashFlowStatement.cs index fefcd5657a90..46b02b6f55d4 100644 --- a/Common/Data/Fundamental/Generated/AssetImpairmentChargeCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/AssetImpairmentChargeCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class AssetImpairmentChargeCashFlowStatement : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_AssetImpairmentCharge_OneMonth); + [Obsolete("AssetImpairmentCharge was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("AssetImpairmentCharge was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_AssetImpairmentCharge_TwoMonths); + [Obsolete("AssetImpairmentCharge was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("AssetImpairmentCharge was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_AssetImpairmentCharge_ThreeMonths); + [Obsolete("AssetImpairmentCharge was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("AssetImpairmentCharge was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_AssetImpairmentCharge_SixMonths); + [Obsolete("AssetImpairmentCharge was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("AssetImpairmentCharge was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_AssetImpairmentCharge_NineMonths); + [Obsolete("AssetImpairmentCharge was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("AssetImpairmentCharge was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_AssetImpairmentCharge_TwelveMonths); + [Obsolete("AssetImpairmentCharge was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("AssetImpairmentCharge was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_AssetImpairmentCharge_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_AssetImpairmentCharge_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("AssetImpairmentCharge was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/AssetsHeldForSaleBalanceSheet.cs b/Common/Data/Fundamental/Generated/AssetsHeldForSaleBalanceSheet.cs index 6f5246022eb1..93cfd629c06e 100644 --- a/Common/Data/Fundamental/Generated/AssetsHeldForSaleBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/AssetsHeldForSaleBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/AssetsHeldForSaleCurrentBalanceSheet.cs b/Common/Data/Fundamental/Generated/AssetsHeldForSaleCurrentBalanceSheet.cs index 74f7cc9e5642..8d40c1246b6f 100644 --- a/Common/Data/Fundamental/Generated/AssetsHeldForSaleCurrentBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/AssetsHeldForSaleCurrentBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/AssetsHeldForSaleNonCurrentBalanceSheet.cs b/Common/Data/Fundamental/Generated/AssetsHeldForSaleNonCurrentBalanceSheet.cs index 465418fc9597..5d7f26feb4c5 100644 --- a/Common/Data/Fundamental/Generated/AssetsHeldForSaleNonCurrentBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/AssetsHeldForSaleNonCurrentBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/AssetsTurnover.cs b/Common/Data/Fundamental/Generated/AssetsTurnover.cs index 252c34578e5e..14b7f89e9a14 100644 --- a/Common/Data/Fundamental/Generated/AssetsTurnover.cs +++ b/Common/Data/Fundamental/Generated/AssetsTurnover.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -43,13 +43,15 @@ public class AssetsTurnover : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_AssetsTurnover_ThreeMonths); + [Obsolete("AssetsTurnover.ThreeMonths was retired by Morningstar in 2026; use AssetsTurnover.OneYear.")] + public double ThreeMonths => throw new NotSupportedException("AssetsTurnover.ThreeMonths was retired by Morningstar in 2026; use AssetsTurnover.OneYear."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_AssetsTurnover_SixMonths); + [Obsolete("AssetsTurnover.SixMonths was retired by Morningstar in 2026; use AssetsTurnover.OneYear.")] + public double SixMonths => throw new NotSupportedException("AssetsTurnover.SixMonths was retired by Morningstar in 2026; use AssetsTurnover.OneYear."); /// /// Returns true if the field contains a value for the default period @@ -79,7 +81,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1Y",OneYear), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths) }) + foreach (var kvp in new[] { new Tuple("1Y",OneYear) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/AvailableForSaleSecuritiesBalanceSheet.cs b/Common/Data/Fundamental/Generated/AvailableForSaleSecuritiesBalanceSheet.cs index ba7465769e05..ad2b3ce473df 100644 --- a/Common/Data/Fundamental/Generated/AvailableForSaleSecuritiesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/AvailableForSaleSecuritiesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class AvailableForSaleSecuritiesBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AvailableForSaleSecurities_ThreeMonths); + [Obsolete("AvailableForSaleSecurities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("AvailableForSaleSecurities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AvailableForSaleSecurities_SixMonths); + [Obsolete("AvailableForSaleSecurities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("AvailableForSaleSecurities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AvailableForSaleSecurities_NineMonths); + [Obsolete("AvailableForSaleSecurities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("AvailableForSaleSecurities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AvailableForSaleSecurities_TwelveMonths); + [Obsolete("AvailableForSaleSecurities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("AvailableForSaleSecurities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AvailableForSaleSecurities_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_AvailableForSaleSecurities_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("AvailableForSaleSecurities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/AverageDilutionEarningsIncomeStatement.cs b/Common/Data/Fundamental/Generated/AverageDilutionEarningsIncomeStatement.cs index 616568cad3e0..508740b6bb4a 100644 --- a/Common/Data/Fundamental/Generated/AverageDilutionEarningsIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/AverageDilutionEarningsIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/BalanceSheet.cs b/Common/Data/Fundamental/Generated/BalanceSheet.cs index b615fe6c46ba..7a2f92774bc3 100644 --- a/Common/Data/Fundamental/Generated/BalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/BalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -85,6 +85,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23007 /// [JsonProperty("23007")] + [Obsolete("AccruedInvestmentIncome was retired by Morningstar in 2026 for all periods; no replacement is available.")] public AccruedInvestmentIncomeBalanceSheet AccruedInvestmentIncome => _accruedInvestmentIncome ??= new(_timeProvider, _securityIdentifier); private AccruedInvestmentIncomeBalanceSheet _accruedInvestmentIncome; @@ -115,6 +116,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23012 /// [JsonProperty("23012")] + [Obsolete("AdditionalPaidInCapital was retired by Morningstar in 2026 for all periods; no replacement is available.")] public AdditionalPaidInCapitalBalanceSheet AdditionalPaidInCapital => _additionalPaidInCapital ??= new(_timeProvider, _securityIdentifier); private AdditionalPaidInCapitalBalanceSheet _additionalPaidInCapital; @@ -135,6 +137,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23020 /// [JsonProperty("23020")] + [Obsolete("AvailableForSaleSecurities was retired by Morningstar in 2026 for all periods; no replacement is available.")] public AvailableForSaleSecuritiesBalanceSheet AvailableForSaleSecurities => _availableForSaleSecurities ??= new(_timeProvider, _securityIdentifier); private AvailableForSaleSecuritiesBalanceSheet _availableForSaleSecurities; @@ -185,6 +188,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23031 /// [JsonProperty("23031")] + [Obsolete("CashAndDueFromBanks was retired by Morningstar in 2026 for all periods; no replacement is available.")] public CashAndDueFromBanksBalanceSheet CashAndDueFromBanks => _cashAndDueFromBanks ??= new(_timeProvider, _securityIdentifier); private CashAndDueFromBanksBalanceSheet _cashAndDueFromBanks; @@ -215,6 +219,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23038 /// [JsonProperty("23038")] + [Obsolete("CommonStock was retired by Morningstar in 2026 for all periods; no replacement is available.")] public CommonStockBalanceSheet CommonStock => _commonStock ??= new(_timeProvider, _securityIdentifier); private CommonStockBalanceSheet _commonStock; @@ -365,6 +370,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23065 /// [JsonProperty("23065")] + [Obsolete("CurrentDeferredTaxesLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available.")] public CurrentDeferredTaxesLiabilitiesBalanceSheet CurrentDeferredTaxesLiabilities => _currentDeferredTaxesLiabilities ??= new(_timeProvider, _securityIdentifier); private CurrentDeferredTaxesLiabilitiesBalanceSheet _currentDeferredTaxesLiabilities; @@ -385,6 +391,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23067 /// [JsonProperty("23067")] + [Obsolete("NonCurrentDeferredTaxesLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available.")] public NonCurrentDeferredTaxesLiabilitiesBalanceSheet NonCurrentDeferredTaxesLiabilities => _nonCurrentDeferredTaxesLiabilities ??= new(_timeProvider, _securityIdentifier); private NonCurrentDeferredTaxesLiabilitiesBalanceSheet _nonCurrentDeferredTaxesLiabilities; @@ -395,6 +402,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23076 /// [JsonProperty("23076")] + [Obsolete("EquityInvestments was retired by Morningstar in 2026 for all periods; no replacement is available.")] public EquityInvestmentsBalanceSheet EquityInvestments => _equityInvestments ??= new(_timeProvider, _securityIdentifier); private EquityInvestmentsBalanceSheet _equityInvestments; @@ -405,6 +413,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23079 /// [JsonProperty("23079")] + [Obsolete("FederalFundsPurchasedAndSecuritiesSoldUnderAgreementToRepurchase was retired by Morningstar in 2026 for all periods; no replacement is available.")] public FederalFundsPurchasedAndSecuritiesSoldUnderAgreementToRepurchaseBalanceSheet FederalFundsPurchasedAndSecuritiesSoldUnderAgreementToRepurchase => _federalFundsPurchasedAndSecuritiesSoldUnderAgreementToRepurchase ??= new(_timeProvider, _securityIdentifier); private FederalFundsPurchasedAndSecuritiesSoldUnderAgreementToRepurchaseBalanceSheet _federalFundsPurchasedAndSecuritiesSoldUnderAgreementToRepurchase; @@ -435,6 +444,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23095 /// [JsonProperty("23095")] + [Obsolete("FuturePolicyBenefits was retired by Morningstar in 2026 for all periods; no replacement is available.")] public FuturePolicyBenefitsBalanceSheet FuturePolicyBenefits => _futurePolicyBenefits ??= new(_timeProvider, _securityIdentifier); private FuturePolicyBenefitsBalanceSheet _futurePolicyBenefits; @@ -455,6 +465,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23097 /// [JsonProperty("23097")] + [Obsolete("Goodwill was retired by Morningstar in 2026 for all periods; no replacement is available.")] public GoodwillBalanceSheet Goodwill => _goodwill ??= new(_timeProvider, _securityIdentifier); private GoodwillBalanceSheet _goodwill; @@ -495,6 +506,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23102 /// [JsonProperty("23102")] + [Obsolete("HeldToMaturitySecurities was retired by Morningstar in 2026 for all periods; no replacement is available.")] public HeldToMaturitySecuritiesBalanceSheet HeldToMaturitySecurities => _heldToMaturitySecurities ??= new(_timeProvider, _securityIdentifier); private HeldToMaturitySecuritiesBalanceSheet _heldToMaturitySecurities; @@ -515,6 +527,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23105 /// [JsonProperty("23105")] + [Obsolete("InterestBearingDepositsLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available.")] public InterestBearingDepositsLiabilitiesBalanceSheet InterestBearingDepositsLiabilities => _interestBearingDepositsLiabilities ??= new(_timeProvider, _securityIdentifier); private InterestBearingDepositsLiabilitiesBalanceSheet _interestBearingDepositsLiabilities; @@ -525,6 +538,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23106 /// [JsonProperty("23106")] + [Obsolete("InterestPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] public InterestPayableBalanceSheet InterestPayable => _interestPayable ??= new(_timeProvider, _securityIdentifier); private InterestPayableBalanceSheet _interestPayable; @@ -625,6 +639,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23133 /// [JsonProperty("23133")] + [Obsolete("MoneyMarketInvestments was retired by Morningstar in 2026 for all periods; no replacement is available.")] public MoneyMarketInvestmentsBalanceSheet MoneyMarketInvestments => _moneyMarketInvestments ??= new(_timeProvider, _securityIdentifier); private MoneyMarketInvestmentsBalanceSheet _moneyMarketInvestments; @@ -655,6 +670,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23142 /// [JsonProperty("23142")] + [Obsolete("NonInterestBearingDeposits was retired by Morningstar in 2026 for all periods; no replacement is available.")] public NonInterestBearingDepositsBalanceSheet NonInterestBearingDeposits => _nonInterestBearingDeposits ??= new(_timeProvider, _securityIdentifier); private NonInterestBearingDepositsBalanceSheet _nonInterestBearingDeposits; @@ -665,6 +681,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23143 /// [JsonProperty("23143")] + [Obsolete("CurrentNotesPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] public CurrentNotesPayableBalanceSheet CurrentNotesPayable => _currentNotesPayable ??= new(_timeProvider, _securityIdentifier); private CurrentNotesPayableBalanceSheet _currentNotesPayable; @@ -685,6 +702,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23146 /// [JsonProperty("23146")] + [Obsolete("NonCurrentNoteReceivables was retired by Morningstar in 2026 for all periods; no replacement is available.")] public NonCurrentNoteReceivablesBalanceSheet NonCurrentNoteReceivables => _nonCurrentNoteReceivables ??= new(_timeProvider, _securityIdentifier); private NonCurrentNoteReceivablesBalanceSheet _nonCurrentNoteReceivables; @@ -755,6 +773,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23171 /// [JsonProperty("23171")] + [Obsolete("PolicyholderFunds was retired by Morningstar in 2026 for all periods; no replacement is available.")] public PolicyholderFundsBalanceSheet PolicyholderFunds => _policyholderFunds ??= new(_timeProvider, _securityIdentifier); private PolicyholderFundsBalanceSheet _policyholderFunds; @@ -895,6 +914,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23213 /// [JsonProperty("23213")] + [Obsolete("ShortTermInvestmentsHeldToMaturity was retired by Morningstar in 2026 for all periods; no replacement is available.")] public ShortTermInvestmentsHeldToMaturityBalanceSheet ShortTermInvestmentsHeldToMaturity => _shortTermInvestmentsHeldToMaturity ??= new(_timeProvider, _securityIdentifier); private ShortTermInvestmentsHeldToMaturityBalanceSheet _shortTermInvestmentsHeldToMaturity; @@ -905,6 +925,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23214 /// [JsonProperty("23214")] + [Obsolete("ShortTermInvestmentsTrading was retired by Morningstar in 2026 for all periods; no replacement is available.")] public ShortTermInvestmentsTradingBalanceSheet ShortTermInvestmentsTrading => _shortTermInvestmentsTrading ??= new(_timeProvider, _securityIdentifier); private ShortTermInvestmentsTradingBalanceSheet _shortTermInvestmentsTrading; @@ -925,6 +946,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23217 /// [JsonProperty("23217")] + [Obsolete("TotalTaxPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] public TotalTaxPayableBalanceSheet TotalTaxPayable => _totalTaxPayable ??= new(_timeProvider, _securityIdentifier); private TotalTaxPayableBalanceSheet _totalTaxPayable; @@ -955,6 +977,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23224 /// [JsonProperty("23224")] + [Obsolete("TotalInvestments was retired by Morningstar in 2026 for all periods; no replacement is available.")] public TotalInvestmentsBalanceSheet TotalInvestments => _totalInvestments ??= new(_timeProvider, _securityIdentifier); private TotalInvestmentsBalanceSheet _totalInvestments; @@ -985,6 +1008,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23229 /// [JsonProperty("23229")] + [Obsolete("TradingAssets was retired by Morningstar in 2026 for all periods; no replacement is available.")] public TradingAssetsBalanceSheet TradingAssets => _tradingAssets ??= new(_timeProvider, _securityIdentifier); private TradingAssetsBalanceSheet _tradingAssets; @@ -1005,6 +1029,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23231 /// [JsonProperty("23231")] + [Obsolete("TradingSecurities was retired by Morningstar in 2026 for all periods; no replacement is available.")] public TradingSecuritiesBalanceSheet TradingSecurities => _tradingSecurities ??= new(_timeProvider, _securityIdentifier); private TradingSecuritiesBalanceSheet _tradingSecurities; @@ -1015,6 +1040,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23232 /// [JsonProperty("23232")] + [Obsolete("TreasuryStock was retired by Morningstar in 2026 for all periods; no replacement is available.")] public TreasuryStockBalanceSheet TreasuryStock => _treasuryStock ??= new(_timeProvider, _securityIdentifier); private TreasuryStockBalanceSheet _treasuryStock; @@ -1045,6 +1071,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23237 /// [JsonProperty("23237")] + [Obsolete("UnpaidLossAndLossReserve was retired by Morningstar in 2026 for all periods; no replacement is available.")] public UnpaidLossAndLossReserveBalanceSheet UnpaidLossAndLossReserve => _unpaidLossAndLossReserve ??= new(_timeProvider, _securityIdentifier); private UnpaidLossAndLossReserveBalanceSheet _unpaidLossAndLossReserve; @@ -1135,6 +1162,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23263 /// [JsonProperty("23263")] + [Obsolete("NonCurrentAccountsReceivable was retired by Morningstar in 2026 for all periods; no replacement is available.")] public NonCurrentAccountsReceivableBalanceSheet NonCurrentAccountsReceivable => _nonCurrentAccountsReceivable ??= new(_timeProvider, _securityIdentifier); private NonCurrentAccountsReceivableBalanceSheet _nonCurrentAccountsReceivable; @@ -1145,6 +1173,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23264 /// [JsonProperty("23264")] + [Obsolete("AccruedInterestReceivable was retired by Morningstar in 2026 for all periods; no replacement is available.")] public AccruedInterestReceivableBalanceSheet AccruedInterestReceivable => _accruedInterestReceivable ??= new(_timeProvider, _securityIdentifier); private AccruedInterestReceivableBalanceSheet _accruedInterestReceivable; @@ -1155,6 +1184,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23265 /// [JsonProperty("23265")] + [Obsolete("AdvanceFromFederalHomeLoanBanks was retired by Morningstar in 2026 for all periods; no replacement is available.")] public AdvanceFromFederalHomeLoanBanksBalanceSheet AdvanceFromFederalHomeLoanBanks => _advanceFromFederalHomeLoanBanks ??= new(_timeProvider, _securityIdentifier); private AdvanceFromFederalHomeLoanBanksBalanceSheet _advanceFromFederalHomeLoanBanks; @@ -1205,6 +1235,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23271 /// [JsonProperty("23271")] + [Obsolete("BankIndebtedness was retired by Morningstar in 2026 for all periods; no replacement is available.")] public BankIndebtednessBalanceSheet BankIndebtedness => _bankIndebtedness ??= new(_timeProvider, _securityIdentifier); private BankIndebtednessBalanceSheet _bankIndebtedness; @@ -1215,6 +1246,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23273 /// [JsonProperty("23273")] + [Obsolete("BankOwnedLifeInsurance was retired by Morningstar in 2026 for all periods; no replacement is available.")] public BankOwnedLifeInsuranceBalanceSheet BankOwnedLifeInsurance => _bankOwnedLifeInsurance ??= new(_timeProvider, _securityIdentifier); private BankOwnedLifeInsuranceBalanceSheet _bankOwnedLifeInsurance; @@ -1225,6 +1257,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23274 /// [JsonProperty("23274")] + [Obsolete("SecurityBorrowed was retired by Morningstar in 2026 for all periods; no replacement is available.")] public SecurityBorrowedBalanceSheet SecurityBorrowed => _securityBorrowed ??= new(_timeProvider, _securityIdentifier); private SecurityBorrowedBalanceSheet _securityBorrowed; @@ -1235,6 +1268,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23275 /// [JsonProperty("23275")] + [Obsolete("BuildingsAndImprovements was retired by Morningstar in 2026 for all periods; no replacement is available.")] public BuildingsAndImprovementsBalanceSheet BuildingsAndImprovements => _buildingsAndImprovements ??= new(_timeProvider, _securityIdentifier); private BuildingsAndImprovementsBalanceSheet _buildingsAndImprovements; @@ -1245,6 +1279,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23278 /// [JsonProperty("23278")] + [Obsolete("CommercialLoan was retired by Morningstar in 2026 for all periods; no replacement is available.")] public CommercialLoanBalanceSheet CommercialLoan => _commercialLoan ??= new(_timeProvider, _securityIdentifier); private CommercialLoanBalanceSheet _commercialLoan; @@ -1255,6 +1290,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23279 /// [JsonProperty("23279")] + [Obsolete("CommercialPaper was retired by Morningstar in 2026 for all periods; no replacement is available.")] public CommercialPaperBalanceSheet CommercialPaper => _commercialPaper ??= new(_timeProvider, _securityIdentifier); private CommercialPaperBalanceSheet _commercialPaper; @@ -1265,6 +1301,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23280 /// [JsonProperty("23280")] + [Obsolete("CommonStockEquity was retired by Morningstar in 2026 for all periods; no replacement is available.")] public CommonStockEquityBalanceSheet CommonStockEquity => _commonStockEquity ??= new(_timeProvider, _securityIdentifier); private CommonStockEquityBalanceSheet _commonStockEquity; @@ -1275,6 +1312,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23282 /// [JsonProperty("23282")] + [Obsolete("ConstructionInProgress was retired by Morningstar in 2026 for all periods; no replacement is available.")] public ConstructionInProgressBalanceSheet ConstructionInProgress => _constructionInProgress ??= new(_timeProvider, _securityIdentifier); private ConstructionInProgressBalanceSheet _constructionInProgress; @@ -1285,6 +1323,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23283 /// [JsonProperty("23283")] + [Obsolete("ConsumerLoan was retired by Morningstar in 2026 for all periods; no replacement is available.")] public ConsumerLoanBalanceSheet ConsumerLoan => _consumerLoan ??= new(_timeProvider, _securityIdentifier); private ConsumerLoanBalanceSheet _consumerLoan; @@ -1295,6 +1334,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23284 /// [JsonProperty("23284")] + [Obsolete("MinimumPensionLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available.")] public MinimumPensionLiabilitiesBalanceSheet MinimumPensionLiabilities => _minimumPensionLiabilities ??= new(_timeProvider, _securityIdentifier); private MinimumPensionLiabilitiesBalanceSheet _minimumPensionLiabilities; @@ -1335,6 +1375,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23290 /// [JsonProperty("23290")] + [Obsolete("DerivativeAssets was retired by Morningstar in 2026 for all periods; no replacement is available.")] public DerivativeAssetsBalanceSheet DerivativeAssets => _derivativeAssets ??= new(_timeProvider, _securityIdentifier); private DerivativeAssetsBalanceSheet _derivativeAssets; @@ -1345,6 +1386,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23291 /// [JsonProperty("23291")] + [Obsolete("DividendsPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] public DividendsPayableBalanceSheet DividendsPayable => _dividendsPayable ??= new(_timeProvider, _securityIdentifier); private DividendsPayableBalanceSheet _dividendsPayable; @@ -1355,6 +1397,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23293 /// [JsonProperty("23293")] + [Obsolete("EmployeeBenefits was retired by Morningstar in 2026 for all periods; no replacement is available.")] public EmployeeBenefitsBalanceSheet EmployeeBenefits => _employeeBenefits ??= new(_timeProvider, _securityIdentifier); private EmployeeBenefitsBalanceSheet _employeeBenefits; @@ -1415,6 +1458,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23300 /// [JsonProperty("23300")] + [Obsolete("FinishedGoods was retired by Morningstar in 2026 for all periods; no replacement is available.")] public FinishedGoodsBalanceSheet FinishedGoods => _finishedGoods ??= new(_timeProvider, _securityIdentifier); private FinishedGoodsBalanceSheet _finishedGoods; @@ -1425,6 +1469,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23301 /// [JsonProperty("23301")] + [Obsolete("FlightFleetVehicleAndRelatedEquipments was retired by Morningstar in 2026 for all periods; no replacement is available.")] public FlightFleetVehicleAndRelatedEquipmentsBalanceSheet FlightFleetVehicleAndRelatedEquipments => _flightFleetVehicleAndRelatedEquipments ??= new(_timeProvider, _securityIdentifier); private FlightFleetVehicleAndRelatedEquipmentsBalanceSheet _flightFleetVehicleAndRelatedEquipments; @@ -1445,6 +1490,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23304 /// [JsonProperty("23304")] + [Obsolete("ForeignCurrencyTranslationAdjustments was retired by Morningstar in 2026 for all periods; no replacement is available.")] public ForeignCurrencyTranslationAdjustmentsBalanceSheet ForeignCurrencyTranslationAdjustments => _foreignCurrencyTranslationAdjustments ??= new(_timeProvider, _securityIdentifier); private ForeignCurrencyTranslationAdjustmentsBalanceSheet _foreignCurrencyTranslationAdjustments; @@ -1455,6 +1501,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23307 /// [JsonProperty("23307")] + [Obsolete("InventoriesAdjustmentsAllowances was retired by Morningstar in 2026 for all periods; no replacement is available.")] public InventoriesAdjustmentsAllowancesBalanceSheet InventoriesAdjustmentsAllowances => _inventoriesAdjustmentsAllowances ??= new(_timeProvider, _securityIdentifier); private InventoriesAdjustmentsAllowancesBalanceSheet _inventoriesAdjustmentsAllowances; @@ -1475,6 +1522,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23312 /// [JsonProperty("23312")] + [Obsolete("LandAndImprovements was retired by Morningstar in 2026 for all periods; no replacement is available.")] public LandAndImprovementsBalanceSheet LandAndImprovements => _landAndImprovements ??= new(_timeProvider, _securityIdentifier); private LandAndImprovementsBalanceSheet _landAndImprovements; @@ -1485,6 +1533,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23313 /// [JsonProperty("23313")] + [Obsolete("Leases was retired by Morningstar in 2026 for all periods; no replacement is available.")] public LeasesBalanceSheet Leases => _leases ??= new(_timeProvider, _securityIdentifier); private LeasesBalanceSheet _leases; @@ -1505,6 +1554,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23316 /// [JsonProperty("23316")] + [Obsolete("LineOfCredit was retired by Morningstar in 2026 for all periods; no replacement is available.")] public LineOfCreditBalanceSheet LineOfCredit => _lineOfCredit ??= new(_timeProvider, _securityIdentifier); private LineOfCreditBalanceSheet _lineOfCredit; @@ -1525,6 +1575,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23318 /// [JsonProperty("23318")] + [Obsolete("LoansReceivable was retired by Morningstar in 2026 for all periods; no replacement is available.")] public LoansReceivableBalanceSheet LoansReceivable => _loansReceivable ??= new(_timeProvider, _securityIdentifier); private LoansReceivableBalanceSheet _loansReceivable; @@ -1535,6 +1586,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23319 /// [JsonProperty("23319")] + [Obsolete("MachineryFurnitureEquipment was retired by Morningstar in 2026 for all periods; no replacement is available.")] public MachineryFurnitureEquipmentBalanceSheet MachineryFurnitureEquipment => _machineryFurnitureEquipment ??= new(_timeProvider, _securityIdentifier); private MachineryFurnitureEquipmentBalanceSheet _machineryFurnitureEquipment; @@ -1545,6 +1597,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23320 /// [JsonProperty("23320")] + [Obsolete("MaterialsAndSupplies was retired by Morningstar in 2026 for all periods; no replacement is available.")] public MaterialsAndSuppliesBalanceSheet MaterialsAndSupplies => _materialsAndSupplies ??= new(_timeProvider, _securityIdentifier); private MaterialsAndSuppliesBalanceSheet _materialsAndSupplies; @@ -1555,6 +1608,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23321 /// [JsonProperty("23321")] + [Obsolete("MineralProperties was retired by Morningstar in 2026 for all periods; no replacement is available.")] public MineralPropertiesBalanceSheet MineralProperties => _mineralProperties ??= new(_timeProvider, _securityIdentifier); private MineralPropertiesBalanceSheet _mineralProperties; @@ -1565,6 +1619,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23322 /// [JsonProperty("23322")] + [Obsolete("MortgageLoan was retired by Morningstar in 2026 for all periods; no replacement is available.")] public MortgageLoanBalanceSheet MortgageLoan => _mortgageLoan ??= new(_timeProvider, _securityIdentifier); private MortgageLoanBalanceSheet _mortgageLoan; @@ -1575,6 +1630,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23323 /// [JsonProperty("23323")] + [Obsolete("MortgageAndConsumerloans was retired by Morningstar in 2026 for all periods; no replacement is available.")] public MortgageAndConsumerloansBalanceSheet MortgageAndConsumerloans => _mortgageAndConsumerloans ??= new(_timeProvider, _securityIdentifier); private MortgageAndConsumerloansBalanceSheet _mortgageAndConsumerloans; @@ -1625,6 +1681,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23332 /// [JsonProperty("23332")] + [Obsolete("OtherCurrentBorrowings was retired by Morningstar in 2026 for all periods; no replacement is available.")] public OtherCurrentBorrowingsBalanceSheet OtherCurrentBorrowings => _otherCurrentBorrowings ??= new(_timeProvider, _securityIdentifier); private OtherCurrentBorrowingsBalanceSheet _otherCurrentBorrowings; @@ -1635,6 +1692,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23335 /// [JsonProperty("23335")] + [Obsolete("OtherEquityAdjustments was retired by Morningstar in 2026 for all periods; no replacement is available.")] public OtherEquityAdjustmentsBalanceSheet OtherEquityAdjustments => _otherEquityAdjustments ??= new(_timeProvider, _securityIdentifier); private OtherEquityAdjustmentsBalanceSheet _otherEquityAdjustments; @@ -1645,6 +1703,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23337 /// [JsonProperty("23337")] + [Obsolete("OtherInventories was retired by Morningstar in 2026 for all periods; no replacement is available.")] public OtherInventoriesBalanceSheet OtherInventories => _otherInventories ??= new(_timeProvider, _securityIdentifier); private OtherInventoriesBalanceSheet _otherInventories; @@ -1715,6 +1774,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23345 /// [JsonProperty("23345")] + [Obsolete("PolicyLoans was retired by Morningstar in 2026 for all periods; no replacement is available.")] public PolicyLoansBalanceSheet PolicyLoans => _policyLoans ??= new(_timeProvider, _securityIdentifier); private PolicyLoansBalanceSheet _policyLoans; @@ -1765,6 +1825,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23355 /// [JsonProperty("23355")] + [Obsolete("RawMaterials was retired by Morningstar in 2026 for all periods; no replacement is available.")] public RawMaterialsBalanceSheet RawMaterials => _rawMaterials ??= new(_timeProvider, _securityIdentifier); private RawMaterialsBalanceSheet _rawMaterials; @@ -1775,6 +1836,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23358 /// [JsonProperty("23358")] + [Obsolete("ReceivablesAdjustmentsAllowances was retired by Morningstar in 2026 for all periods; no replacement is available.")] public ReceivablesAdjustmentsAllowancesBalanceSheet ReceivablesAdjustmentsAllowances => _receivablesAdjustmentsAllowances ??= new(_timeProvider, _securityIdentifier); private ReceivablesAdjustmentsAllowancesBalanceSheet _receivablesAdjustmentsAllowances; @@ -1865,6 +1927,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23372 /// [JsonProperty("23372")] + [Obsolete("TaxesReceivable was retired by Morningstar in 2026 for all periods; no replacement is available.")] public TaxesReceivableBalanceSheet TaxesReceivable => _taxesReceivable ??= new(_timeProvider, _securityIdentifier); private TaxesReceivableBalanceSheet _taxesReceivable; @@ -1875,6 +1938,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23374 /// [JsonProperty("23374")] + [Obsolete("TotalCapitalization was retired by Morningstar in 2026 for all periods; no replacement is available.")] public TotalCapitalizationBalanceSheet TotalCapitalization => _totalCapitalization ??= new(_timeProvider, _securityIdentifier); private TotalCapitalizationBalanceSheet _totalCapitalization; @@ -1915,6 +1979,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23378 /// [JsonProperty("23378")] + [Obsolete("WorkInProcess was retired by Morningstar in 2026 for all periods; no replacement is available.")] public WorkInProcessBalanceSheet WorkInProcess => _workInProcess ??= new(_timeProvider, _securityIdentifier); private WorkInProcessBalanceSheet _workInProcess; @@ -1955,6 +2020,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23382 /// [JsonProperty("23382")] + [Obsolete("OtherPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] public OtherPayableBalanceSheet OtherPayable => _otherPayable ??= new(_timeProvider, _securityIdentifier); private OtherPayableBalanceSheet _otherPayable; @@ -2035,6 +2101,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23391 /// [JsonProperty("23391")] + [Obsolete("NetUtilityPlant was retired by Morningstar in 2026 for all periods; no replacement is available.")] public NetUtilityPlantBalanceSheet NetUtilityPlant => _netUtilityPlant ??= new(_timeProvider, _securityIdentifier); private NetUtilityPlantBalanceSheet _netUtilityPlant; @@ -2075,6 +2142,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23395 /// [JsonProperty("23395")] + [Obsolete("TreasurySharesNumber was retired by Morningstar in 2026 for all periods; no replacement is available.")] public TreasurySharesNumberBalanceSheet TreasurySharesNumber => _treasurySharesNumber ??= new(_timeProvider, _securityIdentifier); private TreasurySharesNumberBalanceSheet _treasurySharesNumber; @@ -2105,6 +2173,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23401 /// [JsonProperty("23401")] + [Obsolete("SecuritiesLoaned was retired by Morningstar in 2026 for all periods; no replacement is available.")] public SecuritiesLoanedBalanceSheet SecuritiesLoaned => _securitiesLoaned ??= new(_timeProvider, _securityIdentifier); private SecuritiesLoanedBalanceSheet _securitiesLoaned; @@ -2125,6 +2194,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23404 /// [JsonProperty("23404")] + [Obsolete("DuefromRelatedPartiesCurrent was retired by Morningstar in 2026 for all periods; no replacement is available.")] public DuefromRelatedPartiesCurrentBalanceSheet DuefromRelatedPartiesCurrent => _duefromRelatedPartiesCurrent ??= new(_timeProvider, _securityIdentifier); private DuefromRelatedPartiesCurrentBalanceSheet _duefromRelatedPartiesCurrent; @@ -2145,6 +2215,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23406 /// [JsonProperty("23406")] + [Obsolete("DuetoRelatedParties was retired by Morningstar in 2026 for all periods; no replacement is available.")] public DuetoRelatedPartiesBalanceSheet DuetoRelatedParties => _duetoRelatedParties ??= new(_timeProvider, _securityIdentifier); private DuetoRelatedPartiesBalanceSheet _duetoRelatedParties; @@ -2155,6 +2226,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23407 /// [JsonProperty("23407")] + [Obsolete("DuetoRelatedPartiesCurrent was retired by Morningstar in 2026 for all periods; no replacement is available.")] public DuetoRelatedPartiesCurrentBalanceSheet DuetoRelatedPartiesCurrent => _duetoRelatedPartiesCurrent ??= new(_timeProvider, _securityIdentifier); private DuetoRelatedPartiesCurrentBalanceSheet _duetoRelatedPartiesCurrent; @@ -2165,6 +2237,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23408 /// [JsonProperty("23408")] + [Obsolete("DuetoRelatedPartiesNonCurrent was retired by Morningstar in 2026 for all periods; no replacement is available.")] public DuetoRelatedPartiesNonCurrentBalanceSheet DuetoRelatedPartiesNonCurrent => _duetoRelatedPartiesNonCurrent ??= new(_timeProvider, _securityIdentifier); private DuetoRelatedPartiesNonCurrentBalanceSheet _duetoRelatedPartiesNonCurrent; @@ -2225,6 +2298,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23415 /// [JsonProperty("23415")] + [Obsolete("FinanceLeaseReceivables was retired by Morningstar in 2026 for all periods; no replacement is available.")] public FinanceLeaseReceivablesBalanceSheet FinanceLeaseReceivables => _financeLeaseReceivables ??= new(_timeProvider, _securityIdentifier); private FinanceLeaseReceivablesBalanceSheet _financeLeaseReceivables; @@ -2235,6 +2309,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23418 /// [JsonProperty("23418")] + [Obsolete("ConvertibleLoansCurrent was retired by Morningstar in 2026 for all periods; no replacement is available.")] public ConvertibleLoansCurrentBalanceSheet ConvertibleLoansCurrent => _convertibleLoansCurrent ??= new(_timeProvider, _securityIdentifier); private ConvertibleLoansCurrentBalanceSheet _convertibleLoansCurrent; @@ -2245,6 +2320,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23419 /// [JsonProperty("23419")] + [Obsolete("BankLoansCurrent was retired by Morningstar in 2026 for all periods; no replacement is available.")] public BankLoansCurrentBalanceSheet BankLoansCurrent => _bankLoansCurrent ??= new(_timeProvider, _securityIdentifier); private BankLoansCurrentBalanceSheet _bankLoansCurrent; @@ -2265,6 +2341,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23422 /// [JsonProperty("23422")] + [Obsolete("AccruedandDeferredIncome was retired by Morningstar in 2026 for all periods; no replacement is available.")] public AccruedandDeferredIncomeBalanceSheet AccruedandDeferredIncome => _accruedandDeferredIncome ??= new(_timeProvider, _securityIdentifier); private AccruedandDeferredIncomeBalanceSheet _accruedandDeferredIncome; @@ -2275,6 +2352,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23426 /// [JsonProperty("23426")] + [Obsolete("BankLoansNonCurrent was retired by Morningstar in 2026 for all periods; no replacement is available.")] public BankLoansNonCurrentBalanceSheet BankLoansNonCurrent => _bankLoansNonCurrent ??= new(_timeProvider, _securityIdentifier); private BankLoansNonCurrentBalanceSheet _bankLoansNonCurrent; @@ -2285,6 +2363,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23427 /// [JsonProperty("23427")] + [Obsolete("OtherLoansNonCurrent was retired by Morningstar in 2026 for all periods; no replacement is available.")] public OtherLoansNonCurrentBalanceSheet OtherLoansNonCurrent => _otherLoansNonCurrent ??= new(_timeProvider, _securityIdentifier); private OtherLoansNonCurrentBalanceSheet _otherLoansNonCurrent; @@ -2295,6 +2374,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23430 /// [JsonProperty("23430")] + [Obsolete("OtherReserves was retired by Morningstar in 2026 for all periods; no replacement is available.")] public OtherReservesBalanceSheet OtherReserves => _otherReserves ??= new(_timeProvider, _securityIdentifier); private OtherReservesBalanceSheet _otherReserves; @@ -2305,6 +2385,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23432 /// [JsonProperty("23432")] + [Obsolete("LoansandAdvancestoBank was retired by Morningstar in 2026 for all periods; no replacement is available.")] public LoansandAdvancestoBankBalanceSheet LoansandAdvancestoBank => _loansandAdvancestoBank ??= new(_timeProvider, _securityIdentifier); private LoansandAdvancestoBankBalanceSheet _loansandAdvancestoBank; @@ -2315,6 +2396,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23433 /// [JsonProperty("23433")] + [Obsolete("LoansandAdvancestoCustomer was retired by Morningstar in 2026 for all periods; no replacement is available.")] public LoansandAdvancestoCustomerBalanceSheet LoansandAdvancestoCustomer => _loansandAdvancestoCustomer ??= new(_timeProvider, _securityIdentifier); private LoansandAdvancestoCustomerBalanceSheet _loansandAdvancestoCustomer; @@ -2325,6 +2407,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23434 /// [JsonProperty("23434")] + [Obsolete("TreasuryBillsandOtherEligibleBills was retired by Morningstar in 2026 for all periods; no replacement is available.")] public TreasuryBillsandOtherEligibleBillsBalanceSheet TreasuryBillsandOtherEligibleBills => _treasuryBillsandOtherEligibleBills ??= new(_timeProvider, _securityIdentifier); private TreasuryBillsandOtherEligibleBillsBalanceSheet _treasuryBillsandOtherEligibleBills; @@ -2335,6 +2418,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23435 /// [JsonProperty("23435")] + [Obsolete("EquitySharesInvestments was retired by Morningstar in 2026 for all periods; no replacement is available.")] public EquitySharesInvestmentsBalanceSheet EquitySharesInvestments => _equitySharesInvestments ??= new(_timeProvider, _securityIdentifier); private EquitySharesInvestmentsBalanceSheet _equitySharesInvestments; @@ -2345,6 +2429,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23436 /// [JsonProperty("23436")] + [Obsolete("DepositsbyBank was retired by Morningstar in 2026 for all periods; no replacement is available.")] public DepositsbyBankBalanceSheet DepositsbyBank => _depositsbyBank ??= new(_timeProvider, _securityIdentifier); private DepositsbyBankBalanceSheet _depositsbyBank; @@ -2355,6 +2440,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23437 /// [JsonProperty("23437")] + [Obsolete("CustomerAccounts was retired by Morningstar in 2026 for all periods; no replacement is available.")] public CustomerAccountsBalanceSheet CustomerAccounts => _customerAccounts ??= new(_timeProvider, _securityIdentifier); private CustomerAccountsBalanceSheet _customerAccounts; @@ -2385,6 +2471,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23440 /// [JsonProperty("23440")] + [Obsolete("DebtSecuritiesinIssue was retired by Morningstar in 2026 for all periods; no replacement is available.")] public DebtSecuritiesinIssueBalanceSheet DebtSecuritiesinIssue => _debtSecuritiesinIssue ??= new(_timeProvider, _securityIdentifier); private DebtSecuritiesinIssueBalanceSheet _debtSecuritiesinIssue; @@ -2425,6 +2512,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23445 /// [JsonProperty("23445")] + [Obsolete("ClaimsOutstanding was retired by Morningstar in 2026 for all periods; no replacement is available.")] public ClaimsOutstandingBalanceSheet ClaimsOutstanding => _claimsOutstanding ??= new(_timeProvider, _securityIdentifier); private ClaimsOutstandingBalanceSheet _claimsOutstanding; @@ -2455,6 +2543,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23455 /// [JsonProperty("23455")] + [Obsolete("DebtSecurities was retired by Morningstar in 2026 for all periods; no replacement is available.")] public DebtSecuritiesBalanceSheet DebtSecurities => _debtSecurities ??= new(_timeProvider, _securityIdentifier); private DebtSecuritiesBalanceSheet _debtSecurities; @@ -2495,6 +2584,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23459 /// [JsonProperty("23459")] + [Obsolete("FinanceLeaseReceivablesCurrent was retired by Morningstar in 2026 for all periods; no replacement is available.")] public FinanceLeaseReceivablesCurrentBalanceSheet FinanceLeaseReceivablesCurrent => _financeLeaseReceivablesCurrent ??= new(_timeProvider, _securityIdentifier); private FinanceLeaseReceivablesCurrentBalanceSheet _financeLeaseReceivablesCurrent; @@ -2505,6 +2595,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23460 /// [JsonProperty("23460")] + [Obsolete("FinanceLeaseReceivablesNonCurrent was retired by Morningstar in 2026 for all periods; no replacement is available.")] public FinanceLeaseReceivablesNonCurrentBalanceSheet FinanceLeaseReceivablesNonCurrent => _financeLeaseReceivablesNonCurrent ??= new(_timeProvider, _securityIdentifier); private FinanceLeaseReceivablesNonCurrentBalanceSheet _financeLeaseReceivablesNonCurrent; @@ -2535,6 +2626,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23466 /// [JsonProperty("23466")] + [Obsolete("FinancialAssetsDesignatedasFairValueThroughProfitorLossTotal was retired by Morningstar in 2026 for all periods; no replacement is available.")] public FinancialAssetsDesignatedasFairValueThroughProfitorLossTotalBalanceSheet FinancialAssetsDesignatedasFairValueThroughProfitorLossTotal => _financialAssetsDesignatedasFairValueThroughProfitorLossTotal ??= new(_timeProvider, _securityIdentifier); private FinancialAssetsDesignatedasFairValueThroughProfitorLossTotalBalanceSheet _financialAssetsDesignatedasFairValueThroughProfitorLossTotal; @@ -2575,6 +2667,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23471 /// [JsonProperty("23471")] + [Obsolete("NonInterestBearingBorrowingsNonCurrent was retired by Morningstar in 2026 for all periods; no replacement is available.")] public NonInterestBearingBorrowingsNonCurrentBalanceSheet NonInterestBearingBorrowingsNonCurrent => _nonInterestBearingBorrowingsNonCurrent ??= new(_timeProvider, _securityIdentifier); private NonInterestBearingBorrowingsNonCurrentBalanceSheet _nonInterestBearingBorrowingsNonCurrent; @@ -2605,6 +2698,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23475 /// [JsonProperty("23475")] + [Obsolete("PensionandOtherPostRetirementBenefitPlansCurrent was retired by Morningstar in 2026 for all periods; no replacement is available.")] public PensionandOtherPostRetirementBenefitPlansCurrentBalanceSheet PensionandOtherPostRetirementBenefitPlansCurrent => _pensionandOtherPostRetirementBenefitPlansCurrent ??= new(_timeProvider, _securityIdentifier); private PensionandOtherPostRetirementBenefitPlansCurrentBalanceSheet _pensionandOtherPostRetirementBenefitPlansCurrent; @@ -2615,6 +2709,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23478 /// [JsonProperty("23478")] + [Obsolete("OtherLoanAssets was retired by Morningstar in 2026 for all periods; no replacement is available.")] public OtherLoanAssetsBalanceSheet OtherLoanAssets => _otherLoanAssets ??= new(_timeProvider, _securityIdentifier); private OtherLoanAssetsBalanceSheet _otherLoanAssets; @@ -2635,6 +2730,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23481 /// [JsonProperty("23481")] + [Obsolete("TaxAssetsTotal was retired by Morningstar in 2026 for all periods; no replacement is available.")] public TaxAssetsTotalBalanceSheet TaxAssetsTotal => _taxAssetsTotal ??= new(_timeProvider, _securityIdentifier); private TaxAssetsTotalBalanceSheet _taxAssetsTotal; @@ -2655,6 +2751,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23484 /// [JsonProperty("23484")] + [Obsolete("DepositCertificates was retired by Morningstar in 2026 for all periods; no replacement is available.")] public DepositCertificatesBalanceSheet DepositCertificates => _depositCertificates ??= new(_timeProvider, _securityIdentifier); private DepositCertificatesBalanceSheet _depositCertificates; @@ -2745,6 +2842,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23502 /// [JsonProperty("23502")] + [Obsolete("DepositsMadeunderAssumedReinsuranceContract was retired by Morningstar in 2026 for all periods; no replacement is available.")] public DepositsMadeunderAssumedReinsuranceContractBalanceSheet DepositsMadeunderAssumedReinsuranceContract => _depositsMadeunderAssumedReinsuranceContract ??= new(_timeProvider, _securityIdentifier); private DepositsMadeunderAssumedReinsuranceContractBalanceSheet _depositsMadeunderAssumedReinsuranceContract; @@ -2775,6 +2873,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23508 /// [JsonProperty("23508")] + [Obsolete("DepositsReceivedunderCededInsuranceContract was retired by Morningstar in 2026 for all periods; no replacement is available.")] public DepositsReceivedunderCededInsuranceContractBalanceSheet DepositsReceivedunderCededInsuranceContract => _depositsReceivedunderCededInsuranceContract ??= new(_timeProvider, _securityIdentifier); private DepositsReceivedunderCededInsuranceContractBalanceSheet _depositsReceivedunderCededInsuranceContract; @@ -2795,6 +2894,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23515 /// [JsonProperty("23515")] + [Obsolete("PensionAndOtherPostretirementBenefitPlansTotal was retired by Morningstar in 2026 for all periods; no replacement is available.")] public PensionAndOtherPostretirementBenefitPlansTotalBalanceSheet PensionAndOtherPostretirementBenefitPlansTotal => _pensionAndOtherPostretirementBenefitPlansTotal ??= new(_timeProvider, _securityIdentifier); private PensionAndOtherPostretirementBenefitPlansTotalBalanceSheet _pensionAndOtherPostretirementBenefitPlansTotal; @@ -2825,6 +2925,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23519 /// [JsonProperty("23519")] + [Obsolete("ConvertibleLoansTotal was retired by Morningstar in 2026 for all periods; no replacement is available.")] public ConvertibleLoansTotalBalanceSheet ConvertibleLoansTotal => _convertibleLoansTotal ??= new(_timeProvider, _securityIdentifier); private ConvertibleLoansTotalBalanceSheet _convertibleLoansTotal; @@ -2835,6 +2936,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23520 /// [JsonProperty("23520")] + [Obsolete("BankLoansTotal was retired by Morningstar in 2026 for all periods; no replacement is available.")] public BankLoansTotalBalanceSheet BankLoansTotal => _bankLoansTotal ??= new(_timeProvider, _securityIdentifier); private BankLoansTotalBalanceSheet _bankLoansTotal; @@ -2875,6 +2977,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23529 /// [JsonProperty("23529")] + [Obsolete("ComTreShaNum was retired by Morningstar in 2026 for all periods; no replacement is available.")] public ComTreShaNumBalanceSheet ComTreShaNum => _comTreShaNum ??= new(_timeProvider, _securityIdentifier); private ComTreShaNumBalanceSheet _comTreShaNum; @@ -2885,6 +2988,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23530 /// [JsonProperty("23530")] + [Obsolete("PreTreShaNum was retired by Morningstar in 2026 for all periods; no replacement is available.")] public PreTreShaNumBalanceSheet PreTreShaNum => _preTreShaNum ??= new(_timeProvider, _securityIdentifier); private PreTreShaNumBalanceSheet _preTreShaNum; @@ -2905,6 +3009,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23532 /// [JsonProperty("23532")] + [Obsolete("ShareIssued was retired by Morningstar in 2026 for all periods; no replacement is available.")] public ShareIssuedBalanceSheet ShareIssued => _shareIssued ??= new(_timeProvider, _securityIdentifier); private ShareIssuedBalanceSheet _shareIssued; @@ -2955,6 +3060,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23537 /// [JsonProperty("23537")] + [Obsolete("ConvertibleLoansNonCurrent was retired by Morningstar in 2026 for all periods; no replacement is available.")] public ConvertibleLoansNonCurrentBalanceSheet ConvertibleLoansNonCurrent => _convertibleLoansNonCurrent ??= new(_timeProvider, _securityIdentifier); private ConvertibleLoansNonCurrentBalanceSheet _convertibleLoansNonCurrent; @@ -2995,6 +3101,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23543 /// [JsonProperty("23543")] + [Obsolete("DueFromRelatedParties was retired by Morningstar in 2026 for all periods; no replacement is available.")] public DueFromRelatedPartiesBalanceSheet DueFromRelatedParties => _dueFromRelatedParties ??= new(_timeProvider, _securityIdentifier); private DueFromRelatedPartiesBalanceSheet _dueFromRelatedParties; @@ -3005,6 +3112,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23546 /// [JsonProperty("23546")] + [Obsolete("UnallocatedSurplus was retired by Morningstar in 2026 for all periods; no replacement is available.")] public UnallocatedSurplusBalanceSheet UnallocatedSurplus => _unallocatedSurplus ??= new(_timeProvider, _securityIdentifier); private UnallocatedSurplusBalanceSheet _unallocatedSurplus; @@ -3045,6 +3153,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23550 /// [JsonProperty("23550")] + [Obsolete("DebtDueBeyond was retired by Morningstar in 2026 for all periods; no replacement is available.")] public DebtDueBeyondBalanceSheet DebtDueBeyond => _debtDueBeyond ??= new(_timeProvider, _securityIdentifier); private DebtDueBeyondBalanceSheet _debtDueBeyond; @@ -3055,6 +3164,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23551 /// [JsonProperty("23551")] + [Obsolete("TotalDebtInMaturitySchedule was retired by Morningstar in 2026 for all periods; no replacement is available.")] public TotalDebtInMaturityScheduleBalanceSheet TotalDebtInMaturitySchedule => _totalDebtInMaturitySchedule ??= new(_timeProvider, _securityIdentifier); private TotalDebtInMaturityScheduleBalanceSheet _totalDebtInMaturitySchedule; @@ -3065,6 +3175,7 @@ public class BalanceSheet : ReusuableCLRObject /// Morningstar DataId: 23552 /// [JsonProperty("23552")] + [Obsolete("FixedAssetsRevaluationReserve was retired by Morningstar in 2026 for all periods; no replacement is available.")] public FixedAssetsRevaluationReserveBalanceSheet FixedAssetsRevaluationReserve => _fixedAssetsRevaluationReserve ??= new(_timeProvider, _securityIdentifier); private FixedAssetsRevaluationReserveBalanceSheet _fixedAssetsRevaluationReserve; diff --git a/Common/Data/Fundamental/Generated/BalanceSheetFileDate.cs b/Common/Data/Fundamental/Generated/BalanceSheetFileDate.cs index cf8c3f544a47..6ab00cec5b48 100644 --- a/Common/Data/Fundamental/Generated/BalanceSheetFileDate.cs +++ b/Common/Data/Fundamental/Generated/BalanceSheetFileDate.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,7 +37,8 @@ public class BalanceSheetFileDate : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public DateTime OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_BSFileDate_OneMonth); + [Obsolete("BSFileDate.OneMonth was retired by Morningstar in 2026; use BSFileDate.ThreeMonths (also available: TwelveMonths).")] + public DateTime OneMonth => throw new NotSupportedException("BSFileDate.OneMonth was retired by Morningstar in 2026; use BSFileDate.ThreeMonths (also available: TwelveMonths)."); /// /// Gets/sets the SixMonths period value for the field diff --git a/Common/Data/Fundamental/Generated/BankIndebtednessBalanceSheet.cs b/Common/Data/Fundamental/Generated/BankIndebtednessBalanceSheet.cs index 81769746040c..813d69bac495 100644 --- a/Common/Data/Fundamental/Generated/BankIndebtednessBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/BankIndebtednessBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class BankIndebtednessBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_BankIndebtedness_ThreeMonths); + [Obsolete("BankIndebtedness was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("BankIndebtedness was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_BankIndebtedness_TwelveMonths); + [Obsolete("BankIndebtedness was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("BankIndebtedness was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_BankIndebtedness_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_BankIndebtedness_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("BankIndebtedness was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/BankLoansCurrentBalanceSheet.cs b/Common/Data/Fundamental/Generated/BankLoansCurrentBalanceSheet.cs index 7fc018eb23ed..06c1b4a8fe8e 100644 --- a/Common/Data/Fundamental/Generated/BankLoansCurrentBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/BankLoansCurrentBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class BankLoansCurrentBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_BankLoansCurrent_ThreeMonths); + [Obsolete("BankLoansCurrent was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("BankLoansCurrent was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_BankLoansCurrent_TwelveMonths); + [Obsolete("BankLoansCurrent was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("BankLoansCurrent was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_BankLoansCurrent_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_BankLoansCurrent_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("BankLoansCurrent was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/BankLoansNonCurrentBalanceSheet.cs b/Common/Data/Fundamental/Generated/BankLoansNonCurrentBalanceSheet.cs index 994fc05d60e5..208c606113c1 100644 --- a/Common/Data/Fundamental/Generated/BankLoansNonCurrentBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/BankLoansNonCurrentBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class BankLoansNonCurrentBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_BankLoansNonCurrent_ThreeMonths); + [Obsolete("BankLoansNonCurrent was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("BankLoansNonCurrent was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_BankLoansNonCurrent_TwelveMonths); + [Obsolete("BankLoansNonCurrent was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("BankLoansNonCurrent was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_BankLoansNonCurrent_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_BankLoansNonCurrent_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("BankLoansNonCurrent was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/BankLoansTotalBalanceSheet.cs b/Common/Data/Fundamental/Generated/BankLoansTotalBalanceSheet.cs index 2d0046a3d0c8..7862c371965f 100644 --- a/Common/Data/Fundamental/Generated/BankLoansTotalBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/BankLoansTotalBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class BankLoansTotalBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_BankLoansTotal_ThreeMonths); + [Obsolete("BankLoansTotal was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("BankLoansTotal was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_BankLoansTotal_TwelveMonths); + [Obsolete("BankLoansTotal was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("BankLoansTotal was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_BankLoansTotal_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_BankLoansTotal_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("BankLoansTotal was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/BankOwnedLifeInsuranceBalanceSheet.cs b/Common/Data/Fundamental/Generated/BankOwnedLifeInsuranceBalanceSheet.cs index de417518bde2..aa6f8be58283 100644 --- a/Common/Data/Fundamental/Generated/BankOwnedLifeInsuranceBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/BankOwnedLifeInsuranceBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class BankOwnedLifeInsuranceBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_BankOwnedLifeInsurance_ThreeMonths); + [Obsolete("BankOwnedLifeInsurance was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("BankOwnedLifeInsurance was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_BankOwnedLifeInsurance_SixMonths); + [Obsolete("BankOwnedLifeInsurance was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("BankOwnedLifeInsurance was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_BankOwnedLifeInsurance_NineMonths); + [Obsolete("BankOwnedLifeInsurance was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("BankOwnedLifeInsurance was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_BankOwnedLifeInsurance_TwelveMonths); + [Obsolete("BankOwnedLifeInsurance was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("BankOwnedLifeInsurance was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_BankOwnedLifeInsurance_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_BankOwnedLifeInsurance_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("BankOwnedLifeInsurance was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/BasicAccountingChange.cs b/Common/Data/Fundamental/Generated/BasicAccountingChange.cs index c5a7d1422db6..a3fca3a241ee 100644 --- a/Common/Data/Fundamental/Generated/BasicAccountingChange.cs +++ b/Common/Data/Fundamental/Generated/BasicAccountingChange.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class BasicAccountingChange : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_BasicAccountingChange_ThreeMonths); + [Obsolete("BasicAccountingChange was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("BasicAccountingChange was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_BasicAccountingChange_SixMonths); + [Obsolete("BasicAccountingChange was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("BasicAccountingChange was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_BasicAccountingChange_NineMonths); + [Obsolete("BasicAccountingChange was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("BasicAccountingChange was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_BasicAccountingChange_TwelveMonths); + [Obsolete("BasicAccountingChange was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("BasicAccountingChange was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_BasicAccountingChange_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_BasicAccountingChange_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("BasicAccountingChange was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/BasicEPSOtherGainsLosses.cs b/Common/Data/Fundamental/Generated/BasicEPSOtherGainsLosses.cs index f2fd23bd3977..907a35674b05 100644 --- a/Common/Data/Fundamental/Generated/BasicEPSOtherGainsLosses.cs +++ b/Common/Data/Fundamental/Generated/BasicEPSOtherGainsLosses.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class BasicEPSOtherGainsLosses : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_BasicEPSOtherGainsLosses_ThreeMonths); + [Obsolete("BasicEPSOtherGainsLosses was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("BasicEPSOtherGainsLosses was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_BasicEPSOtherGainsLosses_SixMonths); + [Obsolete("BasicEPSOtherGainsLosses was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("BasicEPSOtherGainsLosses was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_BasicEPSOtherGainsLosses_NineMonths); + [Obsolete("BasicEPSOtherGainsLosses was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("BasicEPSOtherGainsLosses was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_BasicEPSOtherGainsLosses_TwelveMonths); + [Obsolete("BasicEPSOtherGainsLosses was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("BasicEPSOtherGainsLosses was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_BasicEPSOtherGainsLosses_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_BasicEPSOtherGainsLosses_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("BasicEPSOtherGainsLosses was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/BasicExtraordinary.cs b/Common/Data/Fundamental/Generated/BasicExtraordinary.cs index 6d971a7ea46a..d99de387de1d 100644 --- a/Common/Data/Fundamental/Generated/BasicExtraordinary.cs +++ b/Common/Data/Fundamental/Generated/BasicExtraordinary.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class BasicExtraordinary : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_BasicExtraordinary_OneMonth); + [Obsolete("BasicExtraordinary was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("BasicExtraordinary was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_BasicExtraordinary_TwoMonths); + [Obsolete("BasicExtraordinary was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("BasicExtraordinary was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_BasicExtraordinary_ThreeMonths); + [Obsolete("BasicExtraordinary was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("BasicExtraordinary was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_BasicExtraordinary_SixMonths); + [Obsolete("BasicExtraordinary was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("BasicExtraordinary was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_BasicExtraordinary_NineMonths); + [Obsolete("BasicExtraordinary was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("BasicExtraordinary was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_BasicExtraordinary_TwelveMonths); + [Obsolete("BasicExtraordinary was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("BasicExtraordinary was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_BasicExtraordinary_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_BasicExtraordinary_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("BasicExtraordinary was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/BuildingsAndImprovementsBalanceSheet.cs b/Common/Data/Fundamental/Generated/BuildingsAndImprovementsBalanceSheet.cs index 2c33d11e53e7..58466ac38917 100644 --- a/Common/Data/Fundamental/Generated/BuildingsAndImprovementsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/BuildingsAndImprovementsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class BuildingsAndImprovementsBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_BuildingsAndImprovements_OneMonth); + [Obsolete("BuildingsAndImprovements was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("BuildingsAndImprovements was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_BuildingsAndImprovements_TwoMonths); + [Obsolete("BuildingsAndImprovements was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("BuildingsAndImprovements was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_BuildingsAndImprovements_ThreeMonths); + [Obsolete("BuildingsAndImprovements was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("BuildingsAndImprovements was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_BuildingsAndImprovements_SixMonths); + [Obsolete("BuildingsAndImprovements was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("BuildingsAndImprovements was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_BuildingsAndImprovements_NineMonths); + [Obsolete("BuildingsAndImprovements was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("BuildingsAndImprovements was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_BuildingsAndImprovements_TwelveMonths); + [Obsolete("BuildingsAndImprovements was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("BuildingsAndImprovements was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_BuildingsAndImprovements_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_BuildingsAndImprovements_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("BuildingsAndImprovements was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/CapitalLeaseObligationsBalanceSheet.cs b/Common/Data/Fundamental/Generated/CapitalLeaseObligationsBalanceSheet.cs index 01d86a381c50..3445af0db65f 100644 --- a/Common/Data/Fundamental/Generated/CapitalLeaseObligationsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/CapitalLeaseObligationsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -43,7 +43,8 @@ public class CapitalLeaseObligationsBalanceSheet : MultiPeriodField /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CapitalLeaseObligations_TwoMonths); + [Obsolete("CapitalLeaseObligations.TwoMonths was retired by Morningstar in 2026; use CapitalLeaseObligations.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("CapitalLeaseObligations.TwoMonths was retired by Morningstar in 2026; use CapitalLeaseObligations.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +62,8 @@ public class CapitalLeaseObligationsBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CapitalLeaseObligations_NineMonths); + [Obsolete("CapitalLeaseObligations.NineMonths was retired by Morningstar in 2026; use CapitalLeaseObligations.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("CapitalLeaseObligations.NineMonths was retired by Morningstar in 2026; use CapitalLeaseObligations.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +99,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/CapitalStockBalanceSheet.cs b/Common/Data/Fundamental/Generated/CapitalStockBalanceSheet.cs index 1af0b3903367..1af00352ce52 100644 --- a/Common/Data/Fundamental/Generated/CapitalStockBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/CapitalStockBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class CapitalStockBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CapitalStock_OneMonth); + [Obsolete("CapitalStock.OneMonth was retired by Morningstar in 2026; use CapitalStock.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("CapitalStock.OneMonth was retired by Morningstar in 2026; use CapitalStock.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CapitalStock_TwoMonths); + [Obsolete("CapitalStock.TwoMonths was retired by Morningstar in 2026; use CapitalStock.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("CapitalStock.TwoMonths was retired by Morningstar in 2026; use CapitalStock.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class CapitalStockBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CapitalStock_NineMonths); + [Obsolete("CapitalStock.NineMonths was retired by Morningstar in 2026; use CapitalStock.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("CapitalStock.NineMonths was retired by Morningstar in 2026; use CapitalStock.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/CashAdvancesandLoansMadetoOtherPartiesCashFlowStatement.cs b/Common/Data/Fundamental/Generated/CashAdvancesandLoansMadetoOtherPartiesCashFlowStatement.cs index 3c453bf7b891..2713dfccb445 100644 --- a/Common/Data/Fundamental/Generated/CashAdvancesandLoansMadetoOtherPartiesCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/CashAdvancesandLoansMadetoOtherPartiesCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/CashAndCashEquivalentsBalanceSheet.cs b/Common/Data/Fundamental/Generated/CashAndCashEquivalentsBalanceSheet.cs index 62794aef3829..bb35ef4c8b8c 100644 --- a/Common/Data/Fundamental/Generated/CashAndCashEquivalentsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/CashAndCashEquivalentsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class CashAndCashEquivalentsBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CashAndCashEquivalents_OneMonth); + [Obsolete("CashAndCashEquivalents.OneMonth was retired by Morningstar in 2026; use CashAndCashEquivalents.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("CashAndCashEquivalents.OneMonth was retired by Morningstar in 2026; use CashAndCashEquivalents.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CashAndCashEquivalents_TwoMonths); + [Obsolete("CashAndCashEquivalents.TwoMonths was retired by Morningstar in 2026; use CashAndCashEquivalents.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("CashAndCashEquivalents.TwoMonths was retired by Morningstar in 2026; use CashAndCashEquivalents.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class CashAndCashEquivalentsBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CashAndCashEquivalents_NineMonths); + [Obsolete("CashAndCashEquivalents.NineMonths was retired by Morningstar in 2026; use CashAndCashEquivalents.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("CashAndCashEquivalents.NineMonths was retired by Morningstar in 2026; use CashAndCashEquivalents.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/CashAndDueFromBanksBalanceSheet.cs b/Common/Data/Fundamental/Generated/CashAndDueFromBanksBalanceSheet.cs index 62846bc13d9f..7574afc871d5 100644 --- a/Common/Data/Fundamental/Generated/CashAndDueFromBanksBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/CashAndDueFromBanksBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class CashAndDueFromBanksBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CashAndDueFromBanks_ThreeMonths); + [Obsolete("CashAndDueFromBanks was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("CashAndDueFromBanks was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CashAndDueFromBanks_SixMonths); + [Obsolete("CashAndDueFromBanks was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("CashAndDueFromBanks was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CashAndDueFromBanks_NineMonths); + [Obsolete("CashAndDueFromBanks was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("CashAndDueFromBanks was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CashAndDueFromBanks_TwelveMonths); + [Obsolete("CashAndDueFromBanks was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("CashAndDueFromBanks was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CashAndDueFromBanks_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CashAndDueFromBanks_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("CashAndDueFromBanks was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/CashBalanceSheet.cs b/Common/Data/Fundamental/Generated/CashBalanceSheet.cs index 0e2c51b4ebfd..c75ca6be9c3b 100644 --- a/Common/Data/Fundamental/Generated/CashBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/CashBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class CashBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_Cash_OneMonth); + [Obsolete("Cash.OneMonth was retired by Morningstar in 2026; use Cash.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("Cash.OneMonth was retired by Morningstar in 2026; use Cash.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_Cash_TwoMonths); + [Obsolete("Cash.TwoMonths was retired by Morningstar in 2026; use Cash.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("Cash.TwoMonths was retired by Morningstar in 2026; use Cash.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class CashBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_Cash_NineMonths); + [Obsolete("Cash.NineMonths was retired by Morningstar in 2026; use Cash.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("Cash.NineMonths was retired by Morningstar in 2026; use Cash.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/CashCashEquivalentsAndFederalFundsSoldBalanceSheet.cs b/Common/Data/Fundamental/Generated/CashCashEquivalentsAndFederalFundsSoldBalanceSheet.cs index 1e971d7f038c..3ec28ce0dcb6 100644 --- a/Common/Data/Fundamental/Generated/CashCashEquivalentsAndFederalFundsSoldBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/CashCashEquivalentsAndFederalFundsSoldBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,7 +37,8 @@ public class CashCashEquivalentsAndFederalFundsSoldBalanceSheet : MultiPeriodFie /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CashCashEquivalentsAndFederalFundsSold_TwoMonths); + [Obsolete("CashCashEquivalentsAndFederalFundsSold.TwoMonths was retired by Morningstar in 2026; use CashCashEquivalentsAndFederalFundsSold.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("CashCashEquivalentsAndFederalFundsSold.TwoMonths was retired by Morningstar in 2026; use CashCashEquivalentsAndFederalFundsSold.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -55,7 +56,8 @@ public class CashCashEquivalentsAndFederalFundsSoldBalanceSheet : MultiPeriodFie /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CashCashEquivalentsAndFederalFundsSold_NineMonths); + [Obsolete("CashCashEquivalentsAndFederalFundsSold.NineMonths was retired by Morningstar in 2026; use CashCashEquivalentsAndFederalFundsSold.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("CashCashEquivalentsAndFederalFundsSold.NineMonths was retired by Morningstar in 2026; use CashCashEquivalentsAndFederalFundsSold.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -91,7 +93,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/CashCashEquivalentsAndMarketableSecuritiesBalanceSheet.cs b/Common/Data/Fundamental/Generated/CashCashEquivalentsAndMarketableSecuritiesBalanceSheet.cs index f7c0aa156d38..5253ce089c18 100644 --- a/Common/Data/Fundamental/Generated/CashCashEquivalentsAndMarketableSecuritiesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/CashCashEquivalentsAndMarketableSecuritiesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class CashCashEquivalentsAndMarketableSecuritiesBalanceSheet : MultiPerio /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CashCashEquivalentsAndMarketableSecurities_OneMonth); + [Obsolete("CashCashEquivalentsAndMarketableSecurities.OneMonth was retired by Morningstar in 2026; use CashCashEquivalentsAndMarketableSecurities.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("CashCashEquivalentsAndMarketableSecurities.OneMonth was retired by Morningstar in 2026; use CashCashEquivalentsAndMarketableSecurities.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CashCashEquivalentsAndMarketableSecurities_TwoMonths); + [Obsolete("CashCashEquivalentsAndMarketableSecurities.TwoMonths was retired by Morningstar in 2026; use CashCashEquivalentsAndMarketableSecurities.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("CashCashEquivalentsAndMarketableSecurities.TwoMonths was retired by Morningstar in 2026; use CashCashEquivalentsAndMarketableSecurities.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class CashCashEquivalentsAndMarketableSecuritiesBalanceSheet : MultiPerio /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CashCashEquivalentsAndMarketableSecurities_NineMonths); + [Obsolete("CashCashEquivalentsAndMarketableSecurities.NineMonths was retired by Morningstar in 2026; use CashCashEquivalentsAndMarketableSecurities.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("CashCashEquivalentsAndMarketableSecurities.NineMonths was retired by Morningstar in 2026; use CashCashEquivalentsAndMarketableSecurities.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/CashConversionCycle.cs b/Common/Data/Fundamental/Generated/CashConversionCycle.cs index fdaab4f5eb2f..570be706e4aa 100644 --- a/Common/Data/Fundamental/Generated/CashConversionCycle.cs +++ b/Common/Data/Fundamental/Generated/CashConversionCycle.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -43,13 +43,15 @@ public class CashConversionCycle : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_CashConversionCycle_ThreeMonths); + [Obsolete("CashConversionCycle.ThreeMonths was retired by Morningstar in 2026; use CashConversionCycle.OneYear.")] + public double ThreeMonths => throw new NotSupportedException("CashConversionCycle.ThreeMonths was retired by Morningstar in 2026; use CashConversionCycle.OneYear."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_CashConversionCycle_SixMonths); + [Obsolete("CashConversionCycle.SixMonths was retired by Morningstar in 2026; use CashConversionCycle.OneYear.")] + public double SixMonths => throw new NotSupportedException("CashConversionCycle.SixMonths was retired by Morningstar in 2026; use CashConversionCycle.OneYear."); /// /// Returns true if the field contains a value for the default period @@ -79,7 +81,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1Y",OneYear), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths) }) + foreach (var kvp in new[] { new Tuple("1Y",OneYear) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/CashEquivalentsBalanceSheet.cs b/Common/Data/Fundamental/Generated/CashEquivalentsBalanceSheet.cs index 80ed8a793496..e87b27678982 100644 --- a/Common/Data/Fundamental/Generated/CashEquivalentsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/CashEquivalentsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -49,7 +49,8 @@ public class CashEquivalentsBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CashEquivalents_NineMonths); + [Obsolete("CashEquivalents.NineMonths was retired by Morningstar in 2026; use CashEquivalents.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("CashEquivalents.NineMonths was retired by Morningstar in 2026; use CashEquivalents.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -85,7 +86,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/CashFlowFromContinuingFinancingActivitiesCashFlowStatement.cs b/Common/Data/Fundamental/Generated/CashFlowFromContinuingFinancingActivitiesCashFlowStatement.cs index dfa1d5ba2701..ee89952b5a4c 100644 --- a/Common/Data/Fundamental/Generated/CashFlowFromContinuingFinancingActivitiesCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/CashFlowFromContinuingFinancingActivitiesCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/CashFlowFromContinuingInvestingActivitiesCashFlowStatement.cs b/Common/Data/Fundamental/Generated/CashFlowFromContinuingInvestingActivitiesCashFlowStatement.cs index 51c8011b0cfa..a3ff3f485aab 100644 --- a/Common/Data/Fundamental/Generated/CashFlowFromContinuingInvestingActivitiesCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/CashFlowFromContinuingInvestingActivitiesCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/CashFlowFromContinuingOperatingActivitiesCashFlowStatement.cs b/Common/Data/Fundamental/Generated/CashFlowFromContinuingOperatingActivitiesCashFlowStatement.cs index e3934023a30d..922d683bcf24 100644 --- a/Common/Data/Fundamental/Generated/CashFlowFromContinuingOperatingActivitiesCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/CashFlowFromContinuingOperatingActivitiesCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/CashFlowFromDiscontinuedOperationCashFlowStatement.cs b/Common/Data/Fundamental/Generated/CashFlowFromDiscontinuedOperationCashFlowStatement.cs index 037b06569143..7267951785a5 100644 --- a/Common/Data/Fundamental/Generated/CashFlowFromDiscontinuedOperationCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/CashFlowFromDiscontinuedOperationCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/CashFlowStatement.cs b/Common/Data/Fundamental/Generated/CashFlowStatement.cs index 910bb5e3a105..8485753f7fb4 100644 --- a/Common/Data/Fundamental/Generated/CashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/CashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -45,6 +45,7 @@ public class CashFlowStatement : ReusuableCLRObject /// Morningstar DataId: 26000 /// [JsonProperty("26000")] + [Obsolete("Amortization was retired by Morningstar in 2026 for all periods; no replacement is available.")] public AmortizationCashFlowStatement Amortization => _amortization ??= new(_timeProvider, _securityIdentifier); private AmortizationCashFlowStatement _amortization; @@ -195,6 +196,7 @@ public class CashFlowStatement : ReusuableCLRObject /// Morningstar DataId: 26024 /// [JsonProperty("26024")] + [Obsolete("ChangeInTaxPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] public ChangeInTaxPayableCashFlowStatement ChangeInTaxPayable => _changeInTaxPayable ??= new(_timeProvider, _securityIdentifier); private ChangeInTaxPayableCashFlowStatement _changeInTaxPayable; @@ -215,6 +217,7 @@ public class CashFlowStatement : ReusuableCLRObject /// Morningstar DataId: 26026 /// [JsonProperty("26026")] + [Obsolete("ChangeInAccruedInvestmentIncome was retired by Morningstar in 2026 for all periods; no replacement is available.")] public ChangeInAccruedInvestmentIncomeCashFlowStatement ChangeInAccruedInvestmentIncome => _changeInAccruedInvestmentIncome ??= new(_timeProvider, _securityIdentifier); private ChangeInAccruedInvestmentIncomeCashFlowStatement _changeInAccruedInvestmentIncome; @@ -265,6 +268,7 @@ public class CashFlowStatement : ReusuableCLRObject /// Morningstar DataId: 26032 /// [JsonProperty("26032")] + [Obsolete("ChangeInIncomeTaxPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] public ChangeInIncomeTaxPayableCashFlowStatement ChangeInIncomeTaxPayable => _changeInIncomeTaxPayable ??= new(_timeProvider, _securityIdentifier); private ChangeInIncomeTaxPayableCashFlowStatement _changeInIncomeTaxPayable; @@ -275,6 +279,7 @@ public class CashFlowStatement : ReusuableCLRObject /// Morningstar DataId: 26033 /// [JsonProperty("26033")] + [Obsolete("ChangeInInterestPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] public ChangeInInterestPayableCashFlowStatement ChangeInInterestPayable => _changeInInterestPayable ??= new(_timeProvider, _securityIdentifier); private ChangeInInterestPayableCashFlowStatement _changeInInterestPayable; @@ -295,6 +300,7 @@ public class CashFlowStatement : ReusuableCLRObject /// Morningstar DataId: 26035 /// [JsonProperty("26035")] + [Obsolete("ChangeInLoans was retired by Morningstar in 2026 for all periods; no replacement is available.")] public ChangeInLoansCashFlowStatement ChangeInLoans => _changeInLoans ??= new(_timeProvider, _securityIdentifier); private ChangeInLoansCashFlowStatement _changeInLoans; @@ -355,6 +361,7 @@ public class CashFlowStatement : ReusuableCLRObject /// Morningstar DataId: 26047 /// [JsonProperty("26047")] + [Obsolete("ChangeInReinsuranceRecoverableOnPaidAndUnpaidLosses was retired by Morningstar in 2026 for all periods; no replacement is available.")] public ChangeInReinsuranceRecoverableOnPaidAndUnpaidLossesCashFlowStatement ChangeInReinsuranceRecoverableOnPaidAndUnpaidLosses => _changeInReinsuranceRecoverableOnPaidAndUnpaidLosses ??= new(_timeProvider, _securityIdentifier); private ChangeInReinsuranceRecoverableOnPaidAndUnpaidLossesCashFlowStatement _changeInReinsuranceRecoverableOnPaidAndUnpaidLosses; @@ -415,6 +422,7 @@ public class CashFlowStatement : ReusuableCLRObject /// Morningstar DataId: 26058 /// [JsonProperty("26058")] + [Obsolete("Depletion was retired by Morningstar in 2026 for all periods; no replacement is available.")] public DepletionCashFlowStatement Depletion => _depletion ??= new(_timeProvider, _securityIdentifier); private DepletionCashFlowStatement _depletion; @@ -425,6 +433,7 @@ public class CashFlowStatement : ReusuableCLRObject /// Morningstar DataId: 26059 /// [JsonProperty("26059")] + [Obsolete("Depreciation was retired by Morningstar in 2026 for all periods; no replacement is available.")] public DepreciationCashFlowStatement Depreciation => _depreciation ??= new(_timeProvider, _securityIdentifier); private DepreciationCashFlowStatement _depreciation; @@ -435,6 +444,7 @@ public class CashFlowStatement : ReusuableCLRObject /// Morningstar DataId: 26060 /// [JsonProperty("26060")] + [Obsolete("DepreciationAndAmortization was retired by Morningstar in 2026 for all periods; no replacement is available.")] public DepreciationAndAmortizationCashFlowStatement DepreciationAndAmortization => _depreciationAndAmortization ??= new(_timeProvider, _securityIdentifier); private DepreciationAndAmortizationCashFlowStatement _depreciationAndAmortization; @@ -535,6 +545,7 @@ public class CashFlowStatement : ReusuableCLRObject /// Morningstar DataId: 26078 /// [JsonProperty("26078")] + [Obsolete("NetForeignCurrencyExchangeGainLoss was retired by Morningstar in 2026 for all periods; no replacement is available.")] public NetForeignCurrencyExchangeGainLossCashFlowStatement NetForeignCurrencyExchangeGainLoss => _netForeignCurrencyExchangeGainLoss ??= new(_timeProvider, _securityIdentifier); private NetForeignCurrencyExchangeGainLossCashFlowStatement _netForeignCurrencyExchangeGainLoss; @@ -605,6 +616,7 @@ public class CashFlowStatement : ReusuableCLRObject /// Morningstar DataId: 26095 /// [JsonProperty("26095")] + [Obsolete("ProceedsFromLoans was retired by Morningstar in 2026 for all periods; no replacement is available.")] public ProceedsFromLoansCashFlowStatement ProceedsFromLoans => _proceedsFromLoans ??= new(_timeProvider, _securityIdentifier); private ProceedsFromLoansCashFlowStatement _proceedsFromLoans; @@ -835,6 +847,7 @@ public class CashFlowStatement : ReusuableCLRObject /// Morningstar DataId: 26143 /// [JsonProperty("26143")] + [Obsolete("AssetImpairmentCharge was retired by Morningstar in 2026 for all periods; no replacement is available.")] public AssetImpairmentChargeCashFlowStatement AssetImpairmentCharge => _assetImpairmentCharge ??= new(_timeProvider, _securityIdentifier); private AssetImpairmentChargeCashFlowStatement _assetImpairmentCharge; @@ -885,6 +898,7 @@ public class CashFlowStatement : ReusuableCLRObject /// Morningstar DataId: 26148 /// [JsonProperty("26148")] + [Obsolete("ChangeInOtherWorkingCapital was retired by Morningstar in 2026 for all periods; no replacement is available.")] public ChangeInOtherWorkingCapitalCashFlowStatement ChangeInOtherWorkingCapital => _changeInOtherWorkingCapital ??= new(_timeProvider, _securityIdentifier); private ChangeInOtherWorkingCapitalCashFlowStatement _changeInOtherWorkingCapital; @@ -985,6 +999,7 @@ public class CashFlowStatement : ReusuableCLRObject /// Morningstar DataId: 26163 /// [JsonProperty("26163")] + [Obsolete("OperatingGainsLosses was retired by Morningstar in 2026 for all periods; no replacement is available.")] public OperatingGainsLossesCashFlowStatement OperatingGainsLosses => _operatingGainsLosses ??= new(_timeProvider, _securityIdentifier); private OperatingGainsLossesCashFlowStatement _operatingGainsLosses; @@ -1015,6 +1030,7 @@ public class CashFlowStatement : ReusuableCLRObject /// Morningstar DataId: 26166 /// [JsonProperty("26166")] + [Obsolete("OtherNonCashItems was retired by Morningstar in 2026 for all periods; no replacement is available.")] public OtherNonCashItemsCashFlowStatement OtherNonCashItems => _otherNonCashItems ??= new(_timeProvider, _securityIdentifier); private OtherNonCashItemsCashFlowStatement _otherNonCashItems; @@ -1065,6 +1081,7 @@ public class CashFlowStatement : ReusuableCLRObject /// Morningstar DataId: 26171 /// [JsonProperty("26171")] + [Obsolete("RealizedGainLossOnSaleOfLoansAndLease was retired by Morningstar in 2026 for all periods; no replacement is available.")] public RealizedGainLossOnSaleOfLoansAndLeaseCashFlowStatement RealizedGainLossOnSaleOfLoansAndLease => _realizedGainLossOnSaleOfLoansAndLease ??= new(_timeProvider, _securityIdentifier); private RealizedGainLossOnSaleOfLoansAndLeaseCashFlowStatement _realizedGainLossOnSaleOfLoansAndLease; @@ -1085,6 +1102,7 @@ public class CashFlowStatement : ReusuableCLRObject /// Morningstar DataId: 26173 /// [JsonProperty("26173")] + [Obsolete("UnrealizedGainLossOnInvestmentSecurities was retired by Morningstar in 2026 for all periods; no replacement is available.")] public UnrealizedGainLossOnInvestmentSecuritiesCashFlowStatement UnrealizedGainLossOnInvestmentSecurities => _unrealizedGainLossOnInvestmentSecurities ??= new(_timeProvider, _securityIdentifier); private UnrealizedGainLossOnInvestmentSecuritiesCashFlowStatement _unrealizedGainLossOnInvestmentSecurities; @@ -1105,6 +1123,7 @@ public class CashFlowStatement : ReusuableCLRObject /// Morningstar DataId: 26175 /// [JsonProperty("26175")] + [Obsolete("AmortizationOfIntangibles was retired by Morningstar in 2026 for all periods; no replacement is available.")] public AmortizationOfIntangiblesCashFlowStatement AmortizationOfIntangibles => _amortizationOfIntangibles ??= new(_timeProvider, _securityIdentifier); private AmortizationOfIntangiblesCashFlowStatement _amortizationOfIntangibles; @@ -1225,6 +1244,7 @@ public class CashFlowStatement : ReusuableCLRObject /// Morningstar DataId: 26196 /// [JsonProperty("26196")] + [Obsolete("PurchaseOfSubsidiaries was retired by Morningstar in 2026 for all periods; no replacement is available.")] public PurchaseOfSubsidiariesCashFlowStatement PurchaseOfSubsidiaries => _purchaseOfSubsidiaries ??= new(_timeProvider, _securityIdentifier); private PurchaseOfSubsidiariesCashFlowStatement _purchaseOfSubsidiaries; @@ -1235,6 +1255,7 @@ public class CashFlowStatement : ReusuableCLRObject /// Morningstar DataId: 26197 /// [JsonProperty("26197")] + [Obsolete("PurchaseOfJointVentureAssociate was retired by Morningstar in 2026 for all periods; no replacement is available.")] public PurchaseOfJointVentureAssociateCashFlowStatement PurchaseOfJointVentureAssociate => _purchaseOfJointVentureAssociate ??= new(_timeProvider, _securityIdentifier); private PurchaseOfJointVentureAssociateCashFlowStatement _purchaseOfJointVentureAssociate; @@ -1245,6 +1266,7 @@ public class CashFlowStatement : ReusuableCLRObject /// Morningstar DataId: 26198 /// [JsonProperty("26198")] + [Obsolete("SaleOfSubsidiaries was retired by Morningstar in 2026 for all periods; no replacement is available.")] public SaleOfSubsidiariesCashFlowStatement SaleOfSubsidiaries => _saleOfSubsidiaries ??= new(_timeProvider, _securityIdentifier); private SaleOfSubsidiariesCashFlowStatement _saleOfSubsidiaries; @@ -1255,6 +1277,7 @@ public class CashFlowStatement : ReusuableCLRObject /// Morningstar DataId: 26199 /// [JsonProperty("26199")] + [Obsolete("SaleOfJointVentureAssociate was retired by Morningstar in 2026 for all periods; no replacement is available.")] public SaleOfJointVentureAssociateCashFlowStatement SaleOfJointVentureAssociate => _saleOfJointVentureAssociate ??= new(_timeProvider, _securityIdentifier); private SaleOfJointVentureAssociateCashFlowStatement _saleOfJointVentureAssociate; @@ -1295,6 +1318,7 @@ public class CashFlowStatement : ReusuableCLRObject /// Morningstar DataId: 26203 /// [JsonProperty("26203")] + [Obsolete("ShareOfAssociates was retired by Morningstar in 2026 for all periods; no replacement is available.")] public ShareOfAssociatesCashFlowStatement ShareOfAssociates => _shareOfAssociates ??= new(_timeProvider, _securityIdentifier); private ShareOfAssociatesCashFlowStatement _shareOfAssociates; @@ -1305,6 +1329,7 @@ public class CashFlowStatement : ReusuableCLRObject /// Morningstar DataId: 26204 /// [JsonProperty("26204")] + [Obsolete("ProfitOnDisposals was retired by Morningstar in 2026 for all periods; no replacement is available.")] public ProfitOnDisposalsCashFlowStatement ProfitOnDisposals => _profitOnDisposals ??= new(_timeProvider, _securityIdentifier); private ProfitOnDisposalsCashFlowStatement _profitOnDisposals; @@ -1315,6 +1340,7 @@ public class CashFlowStatement : ReusuableCLRObject /// Morningstar DataId: 26205 /// [JsonProperty("26205")] + [Obsolete("ReorganizationOtherCosts was retired by Morningstar in 2026 for all periods; no replacement is available.")] public ReorganizationOtherCostsCashFlowStatement ReorganizationOtherCosts => _reorganizationOtherCosts ??= new(_timeProvider, _securityIdentifier); private ReorganizationOtherCostsCashFlowStatement _reorganizationOtherCosts; @@ -1375,6 +1401,7 @@ public class CashFlowStatement : ReusuableCLRObject /// Morningstar DataId: 26222 /// [JsonProperty("26222")] + [Obsolete("OtherCashReceiptsfromOperatingActivities was retired by Morningstar in 2026 for all periods; no replacement is available.")] public OtherCashReceiptsfromOperatingActivitiesCashFlowStatement OtherCashReceiptsfromOperatingActivities => _otherCashReceiptsfromOperatingActivities ??= new(_timeProvider, _securityIdentifier); private OtherCashReceiptsfromOperatingActivitiesCashFlowStatement _otherCashReceiptsfromOperatingActivities; @@ -1395,6 +1422,7 @@ public class CashFlowStatement : ReusuableCLRObject /// Morningstar DataId: 26224 /// [JsonProperty("26224")] + [Obsolete("PaymentstoSuppliersforGoodsandServices was retired by Morningstar in 2026 for all periods; no replacement is available.")] public PaymentstoSuppliersforGoodsandServicesCashFlowStatement PaymentstoSuppliersforGoodsandServices => _paymentstoSuppliersforGoodsandServices ??= new(_timeProvider, _securityIdentifier); private PaymentstoSuppliersforGoodsandServicesCashFlowStatement _paymentstoSuppliersforGoodsandServices; @@ -1415,6 +1443,7 @@ public class CashFlowStatement : ReusuableCLRObject /// Morningstar DataId: 26228 /// [JsonProperty("26228")] + [Obsolete("OtherCashPaymentsfromOperatingActivities was retired by Morningstar in 2026 for all periods; no replacement is available.")] public OtherCashPaymentsfromOperatingActivitiesCashFlowStatement OtherCashPaymentsfromOperatingActivities => _otherCashPaymentsfromOperatingActivities ??= new(_timeProvider, _securityIdentifier); private OtherCashPaymentsfromOperatingActivitiesCashFlowStatement _otherCashPaymentsfromOperatingActivities; @@ -1425,6 +1454,7 @@ public class CashFlowStatement : ReusuableCLRObject /// Morningstar DataId: 26229 /// [JsonProperty("26229")] + [Obsolete("DividendsPaidDirect was retired by Morningstar in 2026 for all periods; no replacement is available.")] public DividendsPaidDirectCashFlowStatement DividendsPaidDirect => _dividendsPaidDirect ??= new(_timeProvider, _securityIdentifier); private DividendsPaidDirectCashFlowStatement _dividendsPaidDirect; @@ -1435,6 +1465,7 @@ public class CashFlowStatement : ReusuableCLRObject /// Morningstar DataId: 26230 /// [JsonProperty("26230")] + [Obsolete("DividendsReceivedDirect was retired by Morningstar in 2026 for all periods; no replacement is available.")] public DividendsReceivedDirectCashFlowStatement DividendsReceivedDirect => _dividendsReceivedDirect ??= new(_timeProvider, _securityIdentifier); private DividendsReceivedDirectCashFlowStatement _dividendsReceivedDirect; @@ -1445,6 +1476,7 @@ public class CashFlowStatement : ReusuableCLRObject /// Morningstar DataId: 26231 /// [JsonProperty("26231")] + [Obsolete("InterestPaidDirect was retired by Morningstar in 2026 for all periods; no replacement is available.")] public InterestPaidDirectCashFlowStatement InterestPaidDirect => _interestPaidDirect ??= new(_timeProvider, _securityIdentifier); private InterestPaidDirectCashFlowStatement _interestPaidDirect; @@ -1455,6 +1487,7 @@ public class CashFlowStatement : ReusuableCLRObject /// Morningstar DataId: 26232 /// [JsonProperty("26232")] + [Obsolete("InterestReceivedDirect was retired by Morningstar in 2026 for all periods; no replacement is available.")] public InterestReceivedDirectCashFlowStatement InterestReceivedDirect => _interestReceivedDirect ??= new(_timeProvider, _securityIdentifier); private InterestReceivedDirectCashFlowStatement _interestReceivedDirect; @@ -1465,6 +1498,7 @@ public class CashFlowStatement : ReusuableCLRObject /// Morningstar DataId: 26233 /// [JsonProperty("26233")] + [Obsolete("TaxesRefundPaidDirect was retired by Morningstar in 2026 for all periods; no replacement is available.")] public TaxesRefundPaidDirectCashFlowStatement TaxesRefundPaidDirect => _taxesRefundPaidDirect ??= new(_timeProvider, _securityIdentifier); private TaxesRefundPaidDirectCashFlowStatement _taxesRefundPaidDirect; @@ -1485,6 +1519,7 @@ public class CashFlowStatement : ReusuableCLRObject /// Morningstar DataId: 26235 /// [JsonProperty("26235")] + [Obsolete("ImpairmentLossReversalRecognizedinProfitorLoss was retired by Morningstar in 2026 for all periods; no replacement is available.")] public ImpairmentLossReversalRecognizedinProfitorLossCashFlowStatement ImpairmentLossReversalRecognizedinProfitorLoss => _impairmentLossReversalRecognizedinProfitorLoss ??= new(_timeProvider, _securityIdentifier); private ImpairmentLossReversalRecognizedinProfitorLossCashFlowStatement _impairmentLossReversalRecognizedinProfitorLoss; @@ -1585,6 +1620,7 @@ public class CashFlowStatement : ReusuableCLRObject /// Morningstar DataId: 26255 /// [JsonProperty("26255")] + [Obsolete("ChangeinAccruedIncome was retired by Morningstar in 2026 for all periods; no replacement is available.")] public ChangeinAccruedIncomeCashFlowStatement ChangeinAccruedIncome => _changeinAccruedIncome ??= new(_timeProvider, _securityIdentifier); private ChangeinAccruedIncomeCashFlowStatement _changeinAccruedIncome; @@ -1675,6 +1711,7 @@ public class CashFlowStatement : ReusuableCLRObject /// Morningstar DataId: 26267 /// [JsonProperty("26267")] + [Obsolete("ChangeinInsuranceContractLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available.")] public ChangeinInsuranceContractLiabilitiesCashFlowStatement ChangeinInsuranceContractLiabilities => _changeinInsuranceContractLiabilities ??= new(_timeProvider, _securityIdentifier); private ChangeinInsuranceContractLiabilitiesCashFlowStatement _changeinInsuranceContractLiabilities; @@ -1695,6 +1732,7 @@ public class CashFlowStatement : ReusuableCLRObject /// Morningstar DataId: 26270 /// [JsonProperty("26270")] + [Obsolete("ReceiptsfromCustomers was retired by Morningstar in 2026 for all periods; no replacement is available.")] public ReceiptsfromCustomersCashFlowStatement ReceiptsfromCustomers => _receiptsfromCustomers ??= new(_timeProvider, _securityIdentifier); private ReceiptsfromCustomersCashFlowStatement _receiptsfromCustomers; @@ -1705,6 +1743,7 @@ public class CashFlowStatement : ReusuableCLRObject /// Morningstar DataId: 26271 /// [JsonProperty("26271")] + [Obsolete("ReceiptsfromGovernmentGrants was retired by Morningstar in 2026 for all periods; no replacement is available.")] public ReceiptsfromGovernmentGrantsCashFlowStatement ReceiptsfromGovernmentGrants => _receiptsfromGovernmentGrants ??= new(_timeProvider, _securityIdentifier); private ReceiptsfromGovernmentGrantsCashFlowStatement _receiptsfromGovernmentGrants; @@ -1765,6 +1804,7 @@ public class CashFlowStatement : ReusuableCLRObject /// Morningstar DataId: 26278 /// [JsonProperty("26278")] + [Obsolete("CashReceiptsfromSecuritiesRelatedActivities was retired by Morningstar in 2026 for all periods; no replacement is available.")] public CashReceiptsfromSecuritiesRelatedActivitiesCashFlowStatement CashReceiptsfromSecuritiesRelatedActivities => _cashReceiptsfromSecuritiesRelatedActivities ??= new(_timeProvider, _securityIdentifier); private CashReceiptsfromSecuritiesRelatedActivitiesCashFlowStatement _cashReceiptsfromSecuritiesRelatedActivities; @@ -1805,6 +1845,7 @@ public class CashFlowStatement : ReusuableCLRObject /// Morningstar DataId: 26284 /// [JsonProperty("26284")] + [Obsolete("InterestandCommissionPaid was retired by Morningstar in 2026 for all periods; no replacement is available.")] public InterestandCommissionPaidCashFlowStatement InterestandCommissionPaid => _interestandCommissionPaid ??= new(_timeProvider, _securityIdentifier); private InterestandCommissionPaidCashFlowStatement _interestandCommissionPaid; @@ -1825,6 +1866,7 @@ public class CashFlowStatement : ReusuableCLRObject /// Morningstar DataId: 26286 /// [JsonProperty("26286")] + [Obsolete("CashReceivedfromInsuranceActivities was retired by Morningstar in 2026 for all periods; no replacement is available.")] public CashReceivedfromInsuranceActivitiesCashFlowStatement CashReceivedfromInsuranceActivities => _cashReceivedfromInsuranceActivities ??= new(_timeProvider, _securityIdentifier); private CashReceivedfromInsuranceActivitiesCashFlowStatement _cashReceivedfromInsuranceActivities; diff --git a/Common/Data/Fundamental/Generated/CashFromDiscontinuedFinancingActivitiesCashFlowStatement.cs b/Common/Data/Fundamental/Generated/CashFromDiscontinuedFinancingActivitiesCashFlowStatement.cs index 83fb8cbf3760..7edf91bf0bbd 100644 --- a/Common/Data/Fundamental/Generated/CashFromDiscontinuedFinancingActivitiesCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/CashFromDiscontinuedFinancingActivitiesCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/CashFromDiscontinuedInvestingActivitiesCashFlowStatement.cs b/Common/Data/Fundamental/Generated/CashFromDiscontinuedInvestingActivitiesCashFlowStatement.cs index 79d1774c9985..ac51477638b5 100644 --- a/Common/Data/Fundamental/Generated/CashFromDiscontinuedInvestingActivitiesCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/CashFromDiscontinuedInvestingActivitiesCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/CashFromDiscontinuedOperatingActivitiesCashFlowStatement.cs b/Common/Data/Fundamental/Generated/CashFromDiscontinuedOperatingActivitiesCashFlowStatement.cs index 961838a61163..fceab297aacf 100644 --- a/Common/Data/Fundamental/Generated/CashFromDiscontinuedOperatingActivitiesCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/CashFromDiscontinuedOperatingActivitiesCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/CashGeneratedfromOperatingActivitiesCashFlowStatement.cs b/Common/Data/Fundamental/Generated/CashGeneratedfromOperatingActivitiesCashFlowStatement.cs index abe141c7f69e..cafe6ea785e5 100644 --- a/Common/Data/Fundamental/Generated/CashGeneratedfromOperatingActivitiesCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/CashGeneratedfromOperatingActivitiesCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/CashRatio.cs b/Common/Data/Fundamental/Generated/CashRatio.cs index 851b9f5e589b..fc0c77c7253e 100644 --- a/Common/Data/Fundamental/Generated/CashRatio.cs +++ b/Common/Data/Fundamental/Generated/CashRatio.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/CashReceiptsfromRepaymentofAdvancesandLoansMadetoOtherPartiesCashFlowStatement.cs b/Common/Data/Fundamental/Generated/CashReceiptsfromRepaymentofAdvancesandLoansMadetoOtherPartiesCashFlowStatement.cs index ba0ffc505b81..01593a5ea3bd 100644 --- a/Common/Data/Fundamental/Generated/CashReceiptsfromRepaymentofAdvancesandLoansMadetoOtherPartiesCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/CashReceiptsfromRepaymentofAdvancesandLoansMadetoOtherPartiesCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/CashReceiptsfromSecuritiesRelatedActivitiesCashFlowStatement.cs b/Common/Data/Fundamental/Generated/CashReceiptsfromSecuritiesRelatedActivitiesCashFlowStatement.cs index 91877e00fe64..696803c50b9a 100644 --- a/Common/Data/Fundamental/Generated/CashReceiptsfromSecuritiesRelatedActivitiesCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/CashReceiptsfromSecuritiesRelatedActivitiesCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,52 +37,46 @@ public class CashReceiptsfromSecuritiesRelatedActivitiesCashFlowStatement : Mult /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_CashReceiptsfromSecuritiesRelatedActivities_OneMonth); + [Obsolete("CashReceiptsfromSecuritiesRelatedActivities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("CashReceiptsfromSecuritiesRelatedActivities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_CashReceiptsfromSecuritiesRelatedActivities_ThreeMonths); + [Obsolete("CashReceiptsfromSecuritiesRelatedActivities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("CashReceiptsfromSecuritiesRelatedActivities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_CashReceiptsfromSecuritiesRelatedActivities_SixMonths); + [Obsolete("CashReceiptsfromSecuritiesRelatedActivities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("CashReceiptsfromSecuritiesRelatedActivities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_CashReceiptsfromSecuritiesRelatedActivities_NineMonths); + [Obsolete("CashReceiptsfromSecuritiesRelatedActivities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("CashReceiptsfromSecuritiesRelatedActivities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_CashReceiptsfromSecuritiesRelatedActivities_TwelveMonths); + [Obsolete("CashReceiptsfromSecuritiesRelatedActivities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("CashReceiptsfromSecuritiesRelatedActivities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_CashReceiptsfromSecuritiesRelatedActivities_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_CashReceiptsfromSecuritiesRelatedActivities_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("CashReceiptsfromSecuritiesRelatedActivities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -91,7 +85,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/CashReceivedfromInsuranceActivitiesCashFlowStatement.cs b/Common/Data/Fundamental/Generated/CashReceivedfromInsuranceActivitiesCashFlowStatement.cs index 81146ef57255..17cca6f12bee 100644 --- a/Common/Data/Fundamental/Generated/CashReceivedfromInsuranceActivitiesCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/CashReceivedfromInsuranceActivitiesCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class CashReceivedfromInsuranceActivitiesCashFlowStatement : MultiPeriodF /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_CashReceivedfromInsuranceActivities_ThreeMonths); + [Obsolete("CashReceivedfromInsuranceActivities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("CashReceivedfromInsuranceActivities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_CashReceivedfromInsuranceActivities_SixMonths); + [Obsolete("CashReceivedfromInsuranceActivities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("CashReceivedfromInsuranceActivities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_CashReceivedfromInsuranceActivities_NineMonths); + [Obsolete("CashReceivedfromInsuranceActivities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("CashReceivedfromInsuranceActivities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_CashReceivedfromInsuranceActivities_TwelveMonths); + [Obsolete("CashReceivedfromInsuranceActivities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("CashReceivedfromInsuranceActivities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_CashReceivedfromInsuranceActivities_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_CashReceivedfromInsuranceActivities_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("CashReceivedfromInsuranceActivities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/CashRestrictedOrPledgedBalanceSheet.cs b/Common/Data/Fundamental/Generated/CashRestrictedOrPledgedBalanceSheet.cs index 1e1758a8ab46..ffc558d1f1d6 100644 --- a/Common/Data/Fundamental/Generated/CashRestrictedOrPledgedBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/CashRestrictedOrPledgedBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/CashtoTotalAssets.cs b/Common/Data/Fundamental/Generated/CashtoTotalAssets.cs index 947603b1ebdc..12bd1dfe59d9 100644 --- a/Common/Data/Fundamental/Generated/CashtoTotalAssets.cs +++ b/Common/Data/Fundamental/Generated/CashtoTotalAssets.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/CededPremiumsIncomeStatement.cs b/Common/Data/Fundamental/Generated/CededPremiumsIncomeStatement.cs index 37e7f53dc58c..a5cffcf61906 100644 --- a/Common/Data/Fundamental/Generated/CededPremiumsIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/CededPremiumsIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/ChangeInAccruedInvestmentIncomeCashFlowStatement.cs b/Common/Data/Fundamental/Generated/ChangeInAccruedInvestmentIncomeCashFlowStatement.cs index 728d1a732366..b297fc42fd3e 100644 --- a/Common/Data/Fundamental/Generated/ChangeInAccruedInvestmentIncomeCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/ChangeInAccruedInvestmentIncomeCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class ChangeInAccruedInvestmentIncomeCashFlowStatement : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInAccruedInvestmentIncome_ThreeMonths); + [Obsolete("ChangeInAccruedInvestmentIncome was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("ChangeInAccruedInvestmentIncome was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInAccruedInvestmentIncome_SixMonths); + [Obsolete("ChangeInAccruedInvestmentIncome was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("ChangeInAccruedInvestmentIncome was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInAccruedInvestmentIncome_NineMonths); + [Obsolete("ChangeInAccruedInvestmentIncome was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("ChangeInAccruedInvestmentIncome was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInAccruedInvestmentIncome_TwelveMonths); + [Obsolete("ChangeInAccruedInvestmentIncome was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("ChangeInAccruedInvestmentIncome was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInAccruedInvestmentIncome_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInAccruedInvestmentIncome_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("ChangeInAccruedInvestmentIncome was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/ChangeInDeferredAcquisitionCostsCashFlowStatement.cs b/Common/Data/Fundamental/Generated/ChangeInDeferredAcquisitionCostsCashFlowStatement.cs index 80129f3e6dba..c9b1fdd6b2f3 100644 --- a/Common/Data/Fundamental/Generated/ChangeInDeferredAcquisitionCostsCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/ChangeInDeferredAcquisitionCostsCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/ChangeInDeferredChargesCashFlowStatement.cs b/Common/Data/Fundamental/Generated/ChangeInDeferredChargesCashFlowStatement.cs index 6a208bda359a..50dc2fdd5b7b 100644 --- a/Common/Data/Fundamental/Generated/ChangeInDeferredChargesCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/ChangeInDeferredChargesCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/ChangeInFederalFundsAndSecuritiesSoldForRepurchaseCashFlowStatement.cs b/Common/Data/Fundamental/Generated/ChangeInFederalFundsAndSecuritiesSoldForRepurchaseCashFlowStatement.cs index 7f35ce125ca8..efd6b7ecbc30 100644 --- a/Common/Data/Fundamental/Generated/ChangeInFederalFundsAndSecuritiesSoldForRepurchaseCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/ChangeInFederalFundsAndSecuritiesSoldForRepurchaseCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/ChangeInIncomeTaxPayableCashFlowStatement.cs b/Common/Data/Fundamental/Generated/ChangeInIncomeTaxPayableCashFlowStatement.cs index 2141df466b3c..9bd4c32a73d6 100644 --- a/Common/Data/Fundamental/Generated/ChangeInIncomeTaxPayableCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/ChangeInIncomeTaxPayableCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class ChangeInIncomeTaxPayableCashFlowStatement : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInIncomeTaxPayable_OneMonth); + [Obsolete("ChangeInIncomeTaxPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("ChangeInIncomeTaxPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInIncomeTaxPayable_TwoMonths); + [Obsolete("ChangeInIncomeTaxPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("ChangeInIncomeTaxPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInIncomeTaxPayable_ThreeMonths); + [Obsolete("ChangeInIncomeTaxPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("ChangeInIncomeTaxPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInIncomeTaxPayable_SixMonths); + [Obsolete("ChangeInIncomeTaxPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("ChangeInIncomeTaxPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInIncomeTaxPayable_NineMonths); + [Obsolete("ChangeInIncomeTaxPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("ChangeInIncomeTaxPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInIncomeTaxPayable_TwelveMonths); + [Obsolete("ChangeInIncomeTaxPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("ChangeInIncomeTaxPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInIncomeTaxPayable_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInIncomeTaxPayable_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("ChangeInIncomeTaxPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/ChangeInInterestPayableCashFlowStatement.cs b/Common/Data/Fundamental/Generated/ChangeInInterestPayableCashFlowStatement.cs index 0e5d2b2f78e3..2a4a708e80e3 100644 --- a/Common/Data/Fundamental/Generated/ChangeInInterestPayableCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/ChangeInInterestPayableCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class ChangeInInterestPayableCashFlowStatement : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInInterestPayable_OneMonth); + [Obsolete("ChangeInInterestPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("ChangeInInterestPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInInterestPayable_TwoMonths); + [Obsolete("ChangeInInterestPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("ChangeInInterestPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInInterestPayable_ThreeMonths); + [Obsolete("ChangeInInterestPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("ChangeInInterestPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInInterestPayable_SixMonths); + [Obsolete("ChangeInInterestPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("ChangeInInterestPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInInterestPayable_NineMonths); + [Obsolete("ChangeInInterestPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("ChangeInInterestPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInInterestPayable_TwelveMonths); + [Obsolete("ChangeInInterestPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("ChangeInInterestPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInInterestPayable_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInInterestPayable_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("ChangeInInterestPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/ChangeInLoansCashFlowStatement.cs b/Common/Data/Fundamental/Generated/ChangeInLoansCashFlowStatement.cs index 914fd491ea9e..4e8199b93105 100644 --- a/Common/Data/Fundamental/Generated/ChangeInLoansCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/ChangeInLoansCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class ChangeInLoansCashFlowStatement : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInLoans_ThreeMonths); + [Obsolete("ChangeInLoans was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("ChangeInLoans was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInLoans_SixMonths); + [Obsolete("ChangeInLoans was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("ChangeInLoans was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInLoans_NineMonths); + [Obsolete("ChangeInLoans was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("ChangeInLoans was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInLoans_TwelveMonths); + [Obsolete("ChangeInLoans was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("ChangeInLoans was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInLoans_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInLoans_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("ChangeInLoans was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/ChangeInLossAndLossAdjustmentExpenseReservesCashFlowStatement.cs b/Common/Data/Fundamental/Generated/ChangeInLossAndLossAdjustmentExpenseReservesCashFlowStatement.cs index 3ccef2dd7e83..5e8236ea3a57 100644 --- a/Common/Data/Fundamental/Generated/ChangeInLossAndLossAdjustmentExpenseReservesCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/ChangeInLossAndLossAdjustmentExpenseReservesCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/ChangeInOtherWorkingCapitalCashFlowStatement.cs b/Common/Data/Fundamental/Generated/ChangeInOtherWorkingCapitalCashFlowStatement.cs index b2374da054aa..e61346fef3a7 100644 --- a/Common/Data/Fundamental/Generated/ChangeInOtherWorkingCapitalCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/ChangeInOtherWorkingCapitalCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class ChangeInOtherWorkingCapitalCashFlowStatement : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInOtherWorkingCapital_OneMonth); + [Obsolete("ChangeInOtherWorkingCapital was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("ChangeInOtherWorkingCapital was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInOtherWorkingCapital_TwoMonths); + [Obsolete("ChangeInOtherWorkingCapital was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("ChangeInOtherWorkingCapital was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInOtherWorkingCapital_ThreeMonths); + [Obsolete("ChangeInOtherWorkingCapital was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("ChangeInOtherWorkingCapital was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInOtherWorkingCapital_SixMonths); + [Obsolete("ChangeInOtherWorkingCapital was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("ChangeInOtherWorkingCapital was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInOtherWorkingCapital_NineMonths); + [Obsolete("ChangeInOtherWorkingCapital was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("ChangeInOtherWorkingCapital was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInOtherWorkingCapital_TwelveMonths); + [Obsolete("ChangeInOtherWorkingCapital was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("ChangeInOtherWorkingCapital was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInOtherWorkingCapital_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInOtherWorkingCapital_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("ChangeInOtherWorkingCapital was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/ChangeInReinsuranceRecoverableOnPaidAndUnpaidLossesCashFlowStatement.cs b/Common/Data/Fundamental/Generated/ChangeInReinsuranceRecoverableOnPaidAndUnpaidLossesCashFlowStatement.cs index dad960be187b..8101f8d71af3 100644 --- a/Common/Data/Fundamental/Generated/ChangeInReinsuranceRecoverableOnPaidAndUnpaidLossesCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/ChangeInReinsuranceRecoverableOnPaidAndUnpaidLossesCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class ChangeInReinsuranceRecoverableOnPaidAndUnpaidLossesCashFlowStatemen /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInReinsuranceRecoverableOnPaidAndUnpaidLosses_ThreeMonths); + [Obsolete("ChangeInReinsuranceRecoverableOnPaidAndUnpaidLosses was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("ChangeInReinsuranceRecoverableOnPaidAndUnpaidLosses was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInReinsuranceRecoverableOnPaidAndUnpaidLosses_SixMonths); + [Obsolete("ChangeInReinsuranceRecoverableOnPaidAndUnpaidLosses was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("ChangeInReinsuranceRecoverableOnPaidAndUnpaidLosses was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInReinsuranceRecoverableOnPaidAndUnpaidLosses_NineMonths); + [Obsolete("ChangeInReinsuranceRecoverableOnPaidAndUnpaidLosses was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("ChangeInReinsuranceRecoverableOnPaidAndUnpaidLosses was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInReinsuranceRecoverableOnPaidAndUnpaidLosses_TwelveMonths); + [Obsolete("ChangeInReinsuranceRecoverableOnPaidAndUnpaidLosses was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("ChangeInReinsuranceRecoverableOnPaidAndUnpaidLosses was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInReinsuranceRecoverableOnPaidAndUnpaidLosses_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInReinsuranceRecoverableOnPaidAndUnpaidLosses_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("ChangeInReinsuranceRecoverableOnPaidAndUnpaidLosses was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/ChangeInRestrictedCashCashFlowStatement.cs b/Common/Data/Fundamental/Generated/ChangeInRestrictedCashCashFlowStatement.cs index c8b68e69f4b8..9ab4b729cbe3 100644 --- a/Common/Data/Fundamental/Generated/ChangeInRestrictedCashCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/ChangeInRestrictedCashCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/ChangeInTaxPayableCashFlowStatement.cs b/Common/Data/Fundamental/Generated/ChangeInTaxPayableCashFlowStatement.cs index 983498435e8c..e7fd38f776c2 100644 --- a/Common/Data/Fundamental/Generated/ChangeInTaxPayableCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/ChangeInTaxPayableCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class ChangeInTaxPayableCashFlowStatement : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInTaxPayable_OneMonth); + [Obsolete("ChangeInTaxPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("ChangeInTaxPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInTaxPayable_TwoMonths); + [Obsolete("ChangeInTaxPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("ChangeInTaxPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInTaxPayable_ThreeMonths); + [Obsolete("ChangeInTaxPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("ChangeInTaxPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInTaxPayable_SixMonths); + [Obsolete("ChangeInTaxPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("ChangeInTaxPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInTaxPayable_NineMonths); + [Obsolete("ChangeInTaxPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("ChangeInTaxPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInTaxPayable_TwelveMonths); + [Obsolete("ChangeInTaxPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("ChangeInTaxPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInTaxPayable_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeInTaxPayable_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("ChangeInTaxPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/ChangeInUnearnedPremiumsCashFlowStatement.cs b/Common/Data/Fundamental/Generated/ChangeInUnearnedPremiumsCashFlowStatement.cs index cc6d0aacc877..01befd55b6a3 100644 --- a/Common/Data/Fundamental/Generated/ChangeInUnearnedPremiumsCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/ChangeInUnearnedPremiumsCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/ChangeinAccruedIncomeCashFlowStatement.cs b/Common/Data/Fundamental/Generated/ChangeinAccruedIncomeCashFlowStatement.cs index 64e3dac2b682..2bb71b82eeab 100644 --- a/Common/Data/Fundamental/Generated/ChangeinAccruedIncomeCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/ChangeinAccruedIncomeCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class ChangeinAccruedIncomeCashFlowStatement : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeinAccruedIncome_ThreeMonths); + [Obsolete("ChangeinAccruedIncome was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("ChangeinAccruedIncome was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeinAccruedIncome_SixMonths); + [Obsolete("ChangeinAccruedIncome was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("ChangeinAccruedIncome was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeinAccruedIncome_NineMonths); + [Obsolete("ChangeinAccruedIncome was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("ChangeinAccruedIncome was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeinAccruedIncome_TwelveMonths); + [Obsolete("ChangeinAccruedIncome was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("ChangeinAccruedIncome was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeinAccruedIncome_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeinAccruedIncome_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("ChangeinAccruedIncome was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/ChangeinCashSupplementalAsReportedCashFlowStatement.cs b/Common/Data/Fundamental/Generated/ChangeinCashSupplementalAsReportedCashFlowStatement.cs index c7c586505e94..6f306ba94a3d 100644 --- a/Common/Data/Fundamental/Generated/ChangeinCashSupplementalAsReportedCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/ChangeinCashSupplementalAsReportedCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/ChangeinInsuranceContractLiabilitiesCashFlowStatement.cs b/Common/Data/Fundamental/Generated/ChangeinInsuranceContractLiabilitiesCashFlowStatement.cs index c4abc3287df3..863f7ed89631 100644 --- a/Common/Data/Fundamental/Generated/ChangeinInsuranceContractLiabilitiesCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/ChangeinInsuranceContractLiabilitiesCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class ChangeinInsuranceContractLiabilitiesCashFlowStatement : MultiPeriod /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeinInsuranceContractLiabilities_ThreeMonths); + [Obsolete("ChangeinInsuranceContractLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("ChangeinInsuranceContractLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeinInsuranceContractLiabilities_SixMonths); + [Obsolete("ChangeinInsuranceContractLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("ChangeinInsuranceContractLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeinInsuranceContractLiabilities_NineMonths); + [Obsolete("ChangeinInsuranceContractLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("ChangeinInsuranceContractLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeinInsuranceContractLiabilities_TwelveMonths); + [Obsolete("ChangeinInsuranceContractLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("ChangeinInsuranceContractLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeinInsuranceContractLiabilities_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ChangeinInsuranceContractLiabilities_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("ChangeinInsuranceContractLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/ChangeinInsuranceLiabilitiesNetofReinsuranceIncomeStatement.cs b/Common/Data/Fundamental/Generated/ChangeinInsuranceLiabilitiesNetofReinsuranceIncomeStatement.cs index 3ae371631413..a092b48d0d91 100644 --- a/Common/Data/Fundamental/Generated/ChangeinInsuranceLiabilitiesNetofReinsuranceIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/ChangeinInsuranceLiabilitiesNetofReinsuranceIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class ChangeinInsuranceLiabilitiesNetofReinsuranceIncomeStatement : Multi /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ChangeinInsuranceLiabilitiesNetofReinsurance_ThreeMonths); + [Obsolete("ChangeinInsuranceLiabilitiesNetofReinsurance was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("ChangeinInsuranceLiabilitiesNetofReinsurance was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ChangeinInsuranceLiabilitiesNetofReinsurance_SixMonths); + [Obsolete("ChangeinInsuranceLiabilitiesNetofReinsurance was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("ChangeinInsuranceLiabilitiesNetofReinsurance was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ChangeinInsuranceLiabilitiesNetofReinsurance_NineMonths); + [Obsolete("ChangeinInsuranceLiabilitiesNetofReinsurance was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("ChangeinInsuranceLiabilitiesNetofReinsurance was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ChangeinInsuranceLiabilitiesNetofReinsurance_TwelveMonths); + [Obsolete("ChangeinInsuranceLiabilitiesNetofReinsurance was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("ChangeinInsuranceLiabilitiesNetofReinsurance was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ChangeinInsuranceLiabilitiesNetofReinsurance_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ChangeinInsuranceLiabilitiesNetofReinsurance_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("ChangeinInsuranceLiabilitiesNetofReinsurance was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/ChangeinInvestmentContractIncomeStatement.cs b/Common/Data/Fundamental/Generated/ChangeinInvestmentContractIncomeStatement.cs index 1af042531bd0..036cf39535cc 100644 --- a/Common/Data/Fundamental/Generated/ChangeinInvestmentContractIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/ChangeinInvestmentContractIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class ChangeinInvestmentContractIncomeStatement : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ChangeinInvestmentContract_ThreeMonths); + [Obsolete("ChangeinInvestmentContract was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("ChangeinInvestmentContract was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ChangeinInvestmentContract_SixMonths); + [Obsolete("ChangeinInvestmentContract was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("ChangeinInvestmentContract was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ChangeinInvestmentContract_NineMonths); + [Obsolete("ChangeinInvestmentContract was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("ChangeinInvestmentContract was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ChangeinInvestmentContract_TwelveMonths); + [Obsolete("ChangeinInvestmentContract was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("ChangeinInvestmentContract was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ChangeinInvestmentContract_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ChangeinInvestmentContract_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("ChangeinInvestmentContract was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/ClaimsOutstandingBalanceSheet.cs b/Common/Data/Fundamental/Generated/ClaimsOutstandingBalanceSheet.cs index 9e6df7c51b11..ca9c2f721f56 100644 --- a/Common/Data/Fundamental/Generated/ClaimsOutstandingBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/ClaimsOutstandingBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class ClaimsOutstandingBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ClaimsOutstanding_ThreeMonths); + [Obsolete("ClaimsOutstanding was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("ClaimsOutstanding was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ClaimsOutstanding_TwelveMonths); + [Obsolete("ClaimsOutstanding was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("ClaimsOutstanding was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ClaimsOutstanding_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ClaimsOutstanding_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("ClaimsOutstanding was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/ComTreShaNumBalanceSheet.cs b/Common/Data/Fundamental/Generated/ComTreShaNumBalanceSheet.cs index 06a72897ec10..62ef9febf547 100644 --- a/Common/Data/Fundamental/Generated/ComTreShaNumBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/ComTreShaNumBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class ComTreShaNumBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ComTreShaNum_ThreeMonths); + [Obsolete("ComTreShaNum was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("ComTreShaNum was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ComTreShaNum_TwelveMonths); + [Obsolete("ComTreShaNum was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("ComTreShaNum was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ComTreShaNum_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ComTreShaNum_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("ComTreShaNum was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/CommercialLoanBalanceSheet.cs b/Common/Data/Fundamental/Generated/CommercialLoanBalanceSheet.cs index 1b8c1a1e680d..87b3973f26dd 100644 --- a/Common/Data/Fundamental/Generated/CommercialLoanBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/CommercialLoanBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class CommercialLoanBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CommercialLoan_ThreeMonths); + [Obsolete("CommercialLoan was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("CommercialLoan was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CommercialLoan_SixMonths); + [Obsolete("CommercialLoan was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("CommercialLoan was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CommercialLoan_NineMonths); + [Obsolete("CommercialLoan was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("CommercialLoan was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CommercialLoan_TwelveMonths); + [Obsolete("CommercialLoan was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("CommercialLoan was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CommercialLoan_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CommercialLoan_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("CommercialLoan was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/CommercialPaperBalanceSheet.cs b/Common/Data/Fundamental/Generated/CommercialPaperBalanceSheet.cs index a7a22c33b793..563ee6e68eaf 100644 --- a/Common/Data/Fundamental/Generated/CommercialPaperBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/CommercialPaperBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class CommercialPaperBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CommercialPaper_ThreeMonths); + [Obsolete("CommercialPaper was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("CommercialPaper was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CommercialPaper_TwelveMonths); + [Obsolete("CommercialPaper was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("CommercialPaper was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CommercialPaper_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CommercialPaper_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("CommercialPaper was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/CommonEquityTier1Capital.cs b/Common/Data/Fundamental/Generated/CommonEquityTier1Capital.cs new file mode 100644 index 000000000000..9dfceca8cbe7 --- /dev/null +++ b/Common/Data/Fundamental/Generated/CommonEquityTier1Capital.cs @@ -0,0 +1,125 @@ +/* + * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. + * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * +*/ + +using System; +using System.Linq; +using Python.Runtime; +using Newtonsoft.Json; +using System.Collections.Generic; +using QuantConnect.Data.UniverseSelection; + +namespace QuantConnect.Data.Fundamental +{ + /// + /// Common equity tier 1 capital, the highest quality regulatory capital + /// + public class CommonEquityTier1Capital : MultiPeriodField + { + /// + /// The default period + /// + protected override string DefaultPeriod => "TwelveMonths"; + + /// + /// Gets/sets the OneMonth period value for the field + /// + [JsonProperty("1M")] + public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CommonEquityTier1Capital_OneMonth); + + /// + /// Gets/sets the ThreeMonths period value for the field + /// + [JsonProperty("3M")] + public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CommonEquityTier1Capital_ThreeMonths); + + /// + /// Gets/sets the SixMonths period value for the field + /// + [JsonProperty("6M")] + public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CommonEquityTier1Capital_SixMonths); + + /// + /// Gets/sets the NineMonths period value for the field + /// + [JsonProperty("9M")] + public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CommonEquityTier1Capital_NineMonths); + + /// + /// Gets/sets the TwelveMonths period value for the field + /// + [JsonProperty("12M")] + public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CommonEquityTier1Capital_TwelveMonths); + + /// + /// Returns true if the field contains a value for the default period + /// + public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CommonEquityTier1Capital_TwelveMonths)); + + /// + /// Returns the default value for the field + /// + public override double Value + { + get + { + var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CommonEquityTier1Capital_TwelveMonths); + if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) + { + return defaultValue; + } + return base.Value; + } + } + + /// + /// Gets a dictionary of period names and values for the field + /// + /// The dictionary of period names and values + public override IReadOnlyDictionary GetPeriodValues() + { + var result = new Dictionary(); + foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + { + if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) + { + result[kvp.Item1] = kvp.Item2; + } + } + return result; + } + + /// + /// Gets the value of the field for the requested period + /// + /// The requested period + /// The value for the period + public override double GetPeriodValue(string period) => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, Enum.Parse($"FinancialStatements_CommonEquityTier1Capital_{ConvertPeriod(period)}")); + + /// + /// Creates a new empty instance + /// + public CommonEquityTier1Capital() + { + } + + /// + /// Creates a new instance for the given time and security + /// + public CommonEquityTier1Capital(ITimeProvider timeProvider, SecurityIdentifier securityIdentifier) : base(timeProvider, securityIdentifier) + { + } + } +} diff --git a/Common/Data/Fundamental/Generated/CommonEquityTier1CapitalRatio.cs b/Common/Data/Fundamental/Generated/CommonEquityTier1CapitalRatio.cs new file mode 100644 index 000000000000..4c293e71a2a8 --- /dev/null +++ b/Common/Data/Fundamental/Generated/CommonEquityTier1CapitalRatio.cs @@ -0,0 +1,125 @@ +/* + * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. + * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * +*/ + +using System; +using System.Linq; +using Python.Runtime; +using Newtonsoft.Json; +using System.Collections.Generic; +using QuantConnect.Data.UniverseSelection; + +namespace QuantConnect.Data.Fundamental +{ + /// + /// Common equity tier 1 capital divided by risk weighted assets + /// + public class CommonEquityTier1CapitalRatio : MultiPeriodField + { + /// + /// The default period + /// + protected override string DefaultPeriod => "TwelveMonths"; + + /// + /// Gets/sets the OneMonth period value for the field + /// + [JsonProperty("1M")] + public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CommonEquityTier1CapitalRatio_OneMonth); + + /// + /// Gets/sets the ThreeMonths period value for the field + /// + [JsonProperty("3M")] + public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CommonEquityTier1CapitalRatio_ThreeMonths); + + /// + /// Gets/sets the SixMonths period value for the field + /// + [JsonProperty("6M")] + public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CommonEquityTier1CapitalRatio_SixMonths); + + /// + /// Gets/sets the NineMonths period value for the field + /// + [JsonProperty("9M")] + public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CommonEquityTier1CapitalRatio_NineMonths); + + /// + /// Gets/sets the TwelveMonths period value for the field + /// + [JsonProperty("12M")] + public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CommonEquityTier1CapitalRatio_TwelveMonths); + + /// + /// Returns true if the field contains a value for the default period + /// + public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CommonEquityTier1CapitalRatio_TwelveMonths)); + + /// + /// Returns the default value for the field + /// + public override double Value + { + get + { + var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CommonEquityTier1CapitalRatio_TwelveMonths); + if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) + { + return defaultValue; + } + return base.Value; + } + } + + /// + /// Gets a dictionary of period names and values for the field + /// + /// The dictionary of period names and values + public override IReadOnlyDictionary GetPeriodValues() + { + var result = new Dictionary(); + foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + { + if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) + { + result[kvp.Item1] = kvp.Item2; + } + } + return result; + } + + /// + /// Gets the value of the field for the requested period + /// + /// The requested period + /// The value for the period + public override double GetPeriodValue(string period) => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, Enum.Parse($"FinancialStatements_CommonEquityTier1CapitalRatio_{ConvertPeriod(period)}")); + + /// + /// Creates a new empty instance + /// + public CommonEquityTier1CapitalRatio() + { + } + + /// + /// Creates a new instance for the given time and security + /// + public CommonEquityTier1CapitalRatio(ITimeProvider timeProvider, SecurityIdentifier securityIdentifier) : base(timeProvider, securityIdentifier) + { + } + } +} diff --git a/Common/Data/Fundamental/Generated/CommonEquityToAssets.cs b/Common/Data/Fundamental/Generated/CommonEquityToAssets.cs index 37c76db79d63..1224c33fb7d3 100644 --- a/Common/Data/Fundamental/Generated/CommonEquityToAssets.cs +++ b/Common/Data/Fundamental/Generated/CommonEquityToAssets.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -67,7 +67,8 @@ public class CommonEquityToAssets : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_CommonEquityToAssets_NineMonths); + [Obsolete("CommonEquityToAssets.NineMonths was retired by Morningstar in 2026; use CommonEquityToAssets.ThreeMonths (also available: SixMonths, OneYear).")] + public double NineMonths => throw new NotSupportedException("CommonEquityToAssets.NineMonths was retired by Morningstar in 2026; use CommonEquityToAssets.ThreeMonths (also available: SixMonths, OneYear)."); /// /// Returns true if the field contains a value for the default period @@ -97,7 +98,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1Y",OneYear), new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths) }) + foreach (var kvp in new[] { new Tuple("1Y",OneYear), new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/CommonStockBalanceSheet.cs b/Common/Data/Fundamental/Generated/CommonStockBalanceSheet.cs index e95904cb2b53..03cd96b1d2e4 100644 --- a/Common/Data/Fundamental/Generated/CommonStockBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/CommonStockBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class CommonStockBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CommonStock_OneMonth); + [Obsolete("CommonStock was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("CommonStock was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CommonStock_TwoMonths); + [Obsolete("CommonStock was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("CommonStock was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CommonStock_ThreeMonths); + [Obsolete("CommonStock was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("CommonStock was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CommonStock_SixMonths); + [Obsolete("CommonStock was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("CommonStock was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CommonStock_NineMonths); + [Obsolete("CommonStock was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("CommonStock was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CommonStock_TwelveMonths); + [Obsolete("CommonStock was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("CommonStock was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CommonStock_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CommonStock_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("CommonStock was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/CommonStockEquityBalanceSheet.cs b/Common/Data/Fundamental/Generated/CommonStockEquityBalanceSheet.cs index ef2b6460b796..038acaef5107 100644 --- a/Common/Data/Fundamental/Generated/CommonStockEquityBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/CommonStockEquityBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class CommonStockEquityBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CommonStockEquity_OneMonth); + [Obsolete("CommonStockEquity was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("CommonStockEquity was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CommonStockEquity_TwoMonths); + [Obsolete("CommonStockEquity was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("CommonStockEquity was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CommonStockEquity_ThreeMonths); + [Obsolete("CommonStockEquity was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("CommonStockEquity was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CommonStockEquity_SixMonths); + [Obsolete("CommonStockEquity was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("CommonStockEquity was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CommonStockEquity_NineMonths); + [Obsolete("CommonStockEquity was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("CommonStockEquity was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CommonStockEquity_TwelveMonths); + [Obsolete("CommonStockEquity was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("CommonStockEquity was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CommonStockEquity_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CommonStockEquity_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("CommonStockEquity was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/CompanyProfile.cs b/Common/Data/Fundamental/Generated/CompanyProfile.cs index f6af36acadc2..d2bbffe99269 100644 --- a/Common/Data/Fundamental/Generated/CompanyProfile.cs +++ b/Common/Data/Fundamental/Generated/CompanyProfile.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -125,7 +125,8 @@ public class CompanyProfile : FundamentalTimeDependentProperty /// Morningstar DataId: 2110 /// [JsonProperty("2110")] - public string HeadquarterFax => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.CompanyProfile_HeadquarterFax); + [Obsolete("HeadquarterFax was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public string HeadquarterFax => throw new NotSupportedException("HeadquarterFax was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// The headquarters' website address as given in the latest report @@ -251,7 +252,8 @@ public class CompanyProfile : FundamentalTimeDependentProperty /// Morningstar DataId: 2125 /// [JsonProperty("2125")] - public string RegisteredFax => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.CompanyProfile_RegisteredFax); + [Obsolete("RegisteredFax was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public string RegisteredFax => throw new NotSupportedException("RegisteredFax was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Flag to denote whether head and registered offices are the same @@ -260,7 +262,8 @@ public class CompanyProfile : FundamentalTimeDependentProperty /// Morningstar DataId: 2126 /// [JsonProperty("2126")] - public bool IsHeadOfficeSameWithRegisteredOfficeFlag => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.CompanyProfile_IsHeadOfficeSameWithRegisteredOfficeFlag); + [Obsolete("IsHeadOfficeSameWithRegisteredOfficeFlag was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public bool IsHeadOfficeSameWithRegisteredOfficeFlag => throw new NotSupportedException("IsHeadOfficeSameWithRegisteredOfficeFlag was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// The latest total shares outstanding reported by the company; most common source of this information is from the cover of the 10K, 10Q, or 20F filing. This figure is an aggregated shares outstanding number for a company. It can be used to calculate the most accurate market cap, based on each individual share's trading price and the total aggregated shares outstanding figure. @@ -316,6 +319,63 @@ public class CompanyProfile : FundamentalTimeDependentProperty [JsonProperty("40010")] public string ReasonofSharesChange => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.CompanyProfile_ReasonofSharesChange); + /// + /// The market capitalisation of the company on a fully diluted basis, that is including the + /// shares that would exist if all convertible instruments were converted and all options and + /// warrants exercised. + /// + /// + /// Morningstar DataId: 40011 + /// + [JsonProperty("40011")] + public double DilutedMarketCap => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.CompanyProfile_DilutedMarketCap); + + /// + /// A description of the company's business, its history and its operations, in English. + /// + /// + /// Morningstar DataId: 2002 + /// + [JsonProperty("2002")] + public string LongDescription => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.CompanyProfile_LongDescription); + + /// + /// The number of shares available for public trading, that is the shares outstanding less + /// those held closely, by insiders or by the company itself. + /// + /// + /// Morningstar DataId: 42006 + /// + [JsonProperty("42006")] + public double Float => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.CompanyProfile_Float); + + /// + /// The number of full time employees + /// + /// + /// Morningstar DataId: 45005 + /// + [JsonProperty("45005")] + public int FullTimeEmployeeNumber => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.CompanyProfile_FullTimeEmployeeNumber); + + /// + /// The number of part time employees + /// + /// + /// Morningstar DataId: 45006 + /// + [JsonProperty("45006")] + public int PartTimeEmployeeNumber => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.CompanyProfile_PartTimeEmployeeNumber); + + /// + /// Shares the company holds in treasury + /// + /// + /// Morningstar DataId: 45007 + /// + [JsonProperty("45007")] + public long TreasuryShares => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.CompanyProfile_TreasuryShares); + /// /// Creates a new instance for the given time and security /// diff --git a/Common/Data/Fundamental/Generated/CompanyReference.cs b/Common/Data/Fundamental/Generated/CompanyReference.cs index 80291e172ebf..ebf861d1bc2c 100644 --- a/Common/Data/Fundamental/Generated/CompanyReference.cs +++ b/Common/Data/Fundamental/Generated/CompanyReference.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -161,7 +161,8 @@ public class CompanyReference : FundamentalTimeDependentProperty /// Morningstar DataId: 17 /// [JsonProperty("17")] - public string Auditor => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.CompanyReference_Auditor); + [Obsolete("Auditor was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public string Auditor => throw new NotSupportedException("Auditor was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// The ISO code denoting the language text for Auditor's name and contact information. @@ -170,7 +171,8 @@ public class CompanyReference : FundamentalTimeDependentProperty /// Morningstar DataId: 18 /// [JsonProperty("18")] - public string AuditorLanguageCode => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.CompanyReference_AuditorLanguageCode); + [Obsolete("AuditorLanguageCode was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public string AuditorLanguageCode => throw new NotSupportedException("AuditorLanguageCode was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// The legal (registered) name of the current legal Advisor of the company. @@ -179,7 +181,8 @@ public class CompanyReference : FundamentalTimeDependentProperty /// Morningstar DataId: 19 /// [JsonProperty("19")] - public string Advisor => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.CompanyReference_Advisor); + [Obsolete("Advisor was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public string Advisor => throw new NotSupportedException("Advisor was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// The ISO code denoting the language text for Advisor's name and contact information. @@ -188,7 +191,8 @@ public class CompanyReference : FundamentalTimeDependentProperty /// Morningstar DataId: 20 /// [JsonProperty("20")] - public string AdvisorLanguageCode => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.CompanyReference_AdvisorLanguageCode); + [Obsolete("AdvisorLanguageCode was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public string AdvisorLanguageCode => throw new NotSupportedException("AdvisorLanguageCode was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Indicator to denote if the company is a limited partnership, which is a form of business structure comprised of a general partner and limited partners. 1 denotes it is a LP; otherwise 0. @@ -215,7 +219,8 @@ public class CompanyReference : FundamentalTimeDependentProperty /// Morningstar DataId: 23 /// [JsonProperty("23")] - public string PrimaryMIC => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.CompanyReference_PrimaryMIC); + [Obsolete("PrimaryMIC was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public string PrimaryMIC => throw new NotSupportedException("PrimaryMIC was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// This refers to the financial template used to collect the company's financial statements. There are two report styles representing two different financial template structures. Report style "1" is most commonly used by US and Canadian companies, and Report style "3" is most commonly used by the rest of the universe. Contact your client manager for access to the respective templates. @@ -224,7 +229,8 @@ public class CompanyReference : FundamentalTimeDependentProperty /// Morningstar DataId: 24 /// [JsonProperty("24")] - public int ReportStyle => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.CompanyReference_ReportStyle); + [Obsolete("ReportStyle was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public int ReportStyle => throw new NotSupportedException("ReportStyle was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// The year a company was founded. @@ -253,6 +259,61 @@ public class CompanyReference : FundamentalTimeDependentProperty [JsonProperty("27")] public DateTime ExpectedFiscalYearEnd => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.CompanyReference_ExpectedFiscalYearEnd); + /// + /// Indicator to denote if the company is a special purpose acquisition company (SPAC). + /// + /// + /// Morningstar DataId: 28 + /// + [JsonProperty("28")] + public bool IsSPAC => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.CompanyReference_IsSPAC); + + /// + /// Indicator to denote if the company is a master limited partnership (MLP). + /// + /// + /// Morningstar DataId: 29 + /// + [JsonProperty("29")] + public bool IsMLP => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.CompanyReference_IsMLP); + + /// + /// Indicator to denote if the company is a business development company (BDC). + /// + /// + /// Morningstar DataId: 30 + /// + [JsonProperty("30")] + public bool IsBDC => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.CompanyReference_IsBDC); + + /// + /// The Legal Entity Identifier (LEI), a twenty character code identifying the company as a + /// party to financial transactions. + /// + /// + /// Morningstar DataId: 31 + /// + [JsonProperty("31")] + public string LEI => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.CompanyReference_LEI); + + /// + /// Whether the company is a shell company + /// + /// + /// Morningstar DataId: 45003 + /// + [JsonProperty("45003")] + public bool IsShellCompany => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.CompanyReference_IsShellCompany); + + /// + /// The state or country the company is incorporated in + /// + /// + /// Morningstar DataId: 45004 + /// + [JsonProperty("45004")] + public string StateOrCountryOfIncorporation => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.CompanyReference_StateOrCountryOfIncorporation); + /// /// Creates a new instance for the given time and security /// diff --git a/Common/Data/Fundamental/Generated/ConstructionInProgressBalanceSheet.cs b/Common/Data/Fundamental/Generated/ConstructionInProgressBalanceSheet.cs index 722b690a1577..e8dad8c53c03 100644 --- a/Common/Data/Fundamental/Generated/ConstructionInProgressBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/ConstructionInProgressBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class ConstructionInProgressBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ConstructionInProgress_OneMonth); + [Obsolete("ConstructionInProgress was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("ConstructionInProgress was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ConstructionInProgress_TwoMonths); + [Obsolete("ConstructionInProgress was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("ConstructionInProgress was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ConstructionInProgress_ThreeMonths); + [Obsolete("ConstructionInProgress was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("ConstructionInProgress was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ConstructionInProgress_SixMonths); + [Obsolete("ConstructionInProgress was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("ConstructionInProgress was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ConstructionInProgress_NineMonths); + [Obsolete("ConstructionInProgress was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("ConstructionInProgress was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ConstructionInProgress_TwelveMonths); + [Obsolete("ConstructionInProgress was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("ConstructionInProgress was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ConstructionInProgress_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ConstructionInProgress_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("ConstructionInProgress was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/ConsumerLoanBalanceSheet.cs b/Common/Data/Fundamental/Generated/ConsumerLoanBalanceSheet.cs index 689d8dde79ff..ef35b4d4f0e1 100644 --- a/Common/Data/Fundamental/Generated/ConsumerLoanBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/ConsumerLoanBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class ConsumerLoanBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ConsumerLoan_ThreeMonths); + [Obsolete("ConsumerLoan was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("ConsumerLoan was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ConsumerLoan_SixMonths); + [Obsolete("ConsumerLoan was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("ConsumerLoan was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ConsumerLoan_NineMonths); + [Obsolete("ConsumerLoan was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("ConsumerLoan was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ConsumerLoan_TwelveMonths); + [Obsolete("ConsumerLoan was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("ConsumerLoan was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ConsumerLoan_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ConsumerLoan_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("ConsumerLoan was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/ConvertibleLoansCurrentBalanceSheet.cs b/Common/Data/Fundamental/Generated/ConvertibleLoansCurrentBalanceSheet.cs index 12318c59983b..467c8f1b10b1 100644 --- a/Common/Data/Fundamental/Generated/ConvertibleLoansCurrentBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/ConvertibleLoansCurrentBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,28 +37,18 @@ public class ConvertibleLoansCurrentBalanceSheet : MultiPeriodField /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ConvertibleLoansCurrent_TwelveMonths); + [Obsolete("ConvertibleLoansCurrent was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("ConvertibleLoansCurrent was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ConvertibleLoansCurrent_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ConvertibleLoansCurrent_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("ConvertibleLoansCurrent was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -67,7 +57,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/ConvertibleLoansNonCurrentBalanceSheet.cs b/Common/Data/Fundamental/Generated/ConvertibleLoansNonCurrentBalanceSheet.cs index f2b410791bf3..5f88c6809b6a 100644 --- a/Common/Data/Fundamental/Generated/ConvertibleLoansNonCurrentBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/ConvertibleLoansNonCurrentBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class ConvertibleLoansNonCurrentBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ConvertibleLoansNonCurrent_ThreeMonths); + [Obsolete("ConvertibleLoansNonCurrent was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("ConvertibleLoansNonCurrent was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ConvertibleLoansNonCurrent_TwelveMonths); + [Obsolete("ConvertibleLoansNonCurrent was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("ConvertibleLoansNonCurrent was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ConvertibleLoansNonCurrent_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ConvertibleLoansNonCurrent_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("ConvertibleLoansNonCurrent was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/ConvertibleLoansTotalBalanceSheet.cs b/Common/Data/Fundamental/Generated/ConvertibleLoansTotalBalanceSheet.cs index ae9acf9a5ef2..211d142ab00a 100644 --- a/Common/Data/Fundamental/Generated/ConvertibleLoansTotalBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/ConvertibleLoansTotalBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class ConvertibleLoansTotalBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ConvertibleLoansTotal_ThreeMonths); + [Obsolete("ConvertibleLoansTotal was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("ConvertibleLoansTotal was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ConvertibleLoansTotal_TwelveMonths); + [Obsolete("ConvertibleLoansTotal was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("ConvertibleLoansTotal was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ConvertibleLoansTotal_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ConvertibleLoansTotal_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("ConvertibleLoansTotal was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/CreditCardIncomeStatement.cs b/Common/Data/Fundamental/Generated/CreditCardIncomeStatement.cs index b1064db10127..5da5342bb5a4 100644 --- a/Common/Data/Fundamental/Generated/CreditCardIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/CreditCardIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class CreditCardIncomeStatement : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_CreditCard_ThreeMonths); + [Obsolete("CreditCard was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("CreditCard was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_CreditCard_SixMonths); + [Obsolete("CreditCard was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("CreditCard was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_CreditCard_NineMonths); + [Obsolete("CreditCard was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("CreditCard was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_CreditCard_TwelveMonths); + [Obsolete("CreditCard was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("CreditCard was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_CreditCard_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_CreditCard_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("CreditCard was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/CurrentAccruedExpensesBalanceSheet.cs b/Common/Data/Fundamental/Generated/CurrentAccruedExpensesBalanceSheet.cs index 32724fbc1be3..9de8217a6bd9 100644 --- a/Common/Data/Fundamental/Generated/CurrentAccruedExpensesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/CurrentAccruedExpensesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class CurrentAccruedExpensesBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CurrentAccruedExpenses_OneMonth); + [Obsolete("CurrentAccruedExpenses.OneMonth was retired by Morningstar in 2026; use CurrentAccruedExpenses.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("CurrentAccruedExpenses.OneMonth was retired by Morningstar in 2026; use CurrentAccruedExpenses.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CurrentAccruedExpenses_TwoMonths); + [Obsolete("CurrentAccruedExpenses.TwoMonths was retired by Morningstar in 2026; use CurrentAccruedExpenses.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("CurrentAccruedExpenses.TwoMonths was retired by Morningstar in 2026; use CurrentAccruedExpenses.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class CurrentAccruedExpensesBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CurrentAccruedExpenses_NineMonths); + [Obsolete("CurrentAccruedExpenses.NineMonths was retired by Morningstar in 2026; use CurrentAccruedExpenses.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("CurrentAccruedExpenses.NineMonths was retired by Morningstar in 2026; use CurrentAccruedExpenses.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/CurrentAssetsBalanceSheet.cs b/Common/Data/Fundamental/Generated/CurrentAssetsBalanceSheet.cs index fc8e66731ca4..5743073e9f04 100644 --- a/Common/Data/Fundamental/Generated/CurrentAssetsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/CurrentAssetsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class CurrentAssetsBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CurrentAssets_OneMonth); + [Obsolete("CurrentAssets.OneMonth was retired by Morningstar in 2026; use CurrentAssets.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("CurrentAssets.OneMonth was retired by Morningstar in 2026; use CurrentAssets.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CurrentAssets_TwoMonths); + [Obsolete("CurrentAssets.TwoMonths was retired by Morningstar in 2026; use CurrentAssets.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("CurrentAssets.TwoMonths was retired by Morningstar in 2026; use CurrentAssets.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class CurrentAssetsBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CurrentAssets_NineMonths); + [Obsolete("CurrentAssets.NineMonths was retired by Morningstar in 2026; use CurrentAssets.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("CurrentAssets.NineMonths was retired by Morningstar in 2026; use CurrentAssets.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/CurrentCapitalLeaseObligationBalanceSheet.cs b/Common/Data/Fundamental/Generated/CurrentCapitalLeaseObligationBalanceSheet.cs index cb7d30195cdb..e31e01a3302d 100644 --- a/Common/Data/Fundamental/Generated/CurrentCapitalLeaseObligationBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/CurrentCapitalLeaseObligationBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -43,7 +43,8 @@ public class CurrentCapitalLeaseObligationBalanceSheet : MultiPeriodField /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CurrentCapitalLeaseObligation_TwoMonths); + [Obsolete("CurrentCapitalLeaseObligation.TwoMonths was retired by Morningstar in 2026; use CurrentCapitalLeaseObligation.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("CurrentCapitalLeaseObligation.TwoMonths was retired by Morningstar in 2026; use CurrentCapitalLeaseObligation.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +62,8 @@ public class CurrentCapitalLeaseObligationBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CurrentCapitalLeaseObligation_NineMonths); + [Obsolete("CurrentCapitalLeaseObligation.NineMonths was retired by Morningstar in 2026; use CurrentCapitalLeaseObligation.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("CurrentCapitalLeaseObligation.NineMonths was retired by Morningstar in 2026; use CurrentCapitalLeaseObligation.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +99,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/CurrentDebtAndCapitalLeaseObligationBalanceSheet.cs b/Common/Data/Fundamental/Generated/CurrentDebtAndCapitalLeaseObligationBalanceSheet.cs index 8ebe83604240..7718ec2e1e6d 100644 --- a/Common/Data/Fundamental/Generated/CurrentDebtAndCapitalLeaseObligationBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/CurrentDebtAndCapitalLeaseObligationBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class CurrentDebtAndCapitalLeaseObligationBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CurrentDebtAndCapitalLeaseObligation_OneMonth); + [Obsolete("CurrentDebtAndCapitalLeaseObligation.OneMonth was retired by Morningstar in 2026; use CurrentDebtAndCapitalLeaseObligation.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("CurrentDebtAndCapitalLeaseObligation.OneMonth was retired by Morningstar in 2026; use CurrentDebtAndCapitalLeaseObligation.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CurrentDebtAndCapitalLeaseObligation_TwoMonths); + [Obsolete("CurrentDebtAndCapitalLeaseObligation.TwoMonths was retired by Morningstar in 2026; use CurrentDebtAndCapitalLeaseObligation.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("CurrentDebtAndCapitalLeaseObligation.TwoMonths was retired by Morningstar in 2026; use CurrentDebtAndCapitalLeaseObligation.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class CurrentDebtAndCapitalLeaseObligationBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CurrentDebtAndCapitalLeaseObligation_NineMonths); + [Obsolete("CurrentDebtAndCapitalLeaseObligation.NineMonths was retired by Morningstar in 2026; use CurrentDebtAndCapitalLeaseObligation.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("CurrentDebtAndCapitalLeaseObligation.NineMonths was retired by Morningstar in 2026; use CurrentDebtAndCapitalLeaseObligation.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/CurrentDebtBalanceSheet.cs b/Common/Data/Fundamental/Generated/CurrentDebtBalanceSheet.cs index 13528420f8a0..23ebd8459711 100644 --- a/Common/Data/Fundamental/Generated/CurrentDebtBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/CurrentDebtBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class CurrentDebtBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CurrentDebt_OneMonth); + [Obsolete("CurrentDebt.OneMonth was retired by Morningstar in 2026; use CurrentDebt.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("CurrentDebt.OneMonth was retired by Morningstar in 2026; use CurrentDebt.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CurrentDebt_TwoMonths); + [Obsolete("CurrentDebt.TwoMonths was retired by Morningstar in 2026; use CurrentDebt.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("CurrentDebt.TwoMonths was retired by Morningstar in 2026; use CurrentDebt.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class CurrentDebtBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CurrentDebt_NineMonths); + [Obsolete("CurrentDebt.NineMonths was retired by Morningstar in 2026; use CurrentDebt.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("CurrentDebt.NineMonths was retired by Morningstar in 2026; use CurrentDebt.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/CurrentDeferredAssetsBalanceSheet.cs b/Common/Data/Fundamental/Generated/CurrentDeferredAssetsBalanceSheet.cs index dd73284ac16f..3516c02901f0 100644 --- a/Common/Data/Fundamental/Generated/CurrentDeferredAssetsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/CurrentDeferredAssetsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -61,7 +61,8 @@ public class CurrentDeferredAssetsBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CurrentDeferredAssets_NineMonths); + [Obsolete("CurrentDeferredAssets.NineMonths was retired by Morningstar in 2026; use CurrentDeferredAssets.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("CurrentDeferredAssets.NineMonths was retired by Morningstar in 2026; use CurrentDeferredAssets.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +98,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/CurrentDeferredLiabilitiesBalanceSheet.cs b/Common/Data/Fundamental/Generated/CurrentDeferredLiabilitiesBalanceSheet.cs index e32857438c54..eb43720cd92c 100644 --- a/Common/Data/Fundamental/Generated/CurrentDeferredLiabilitiesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/CurrentDeferredLiabilitiesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class CurrentDeferredLiabilitiesBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CurrentDeferredLiabilities_OneMonth); + [Obsolete("CurrentDeferredLiabilities.OneMonth was retired by Morningstar in 2026; use CurrentDeferredLiabilities.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("CurrentDeferredLiabilities.OneMonth was retired by Morningstar in 2026; use CurrentDeferredLiabilities.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CurrentDeferredLiabilities_TwoMonths); + [Obsolete("CurrentDeferredLiabilities.TwoMonths was retired by Morningstar in 2026; use CurrentDeferredLiabilities.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("CurrentDeferredLiabilities.TwoMonths was retired by Morningstar in 2026; use CurrentDeferredLiabilities.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class CurrentDeferredLiabilitiesBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CurrentDeferredLiabilities_NineMonths); + [Obsolete("CurrentDeferredLiabilities.NineMonths was retired by Morningstar in 2026; use CurrentDeferredLiabilities.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("CurrentDeferredLiabilities.NineMonths was retired by Morningstar in 2026; use CurrentDeferredLiabilities.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/CurrentDeferredRevenueBalanceSheet.cs b/Common/Data/Fundamental/Generated/CurrentDeferredRevenueBalanceSheet.cs index c32395251e00..5335f32ddd7f 100644 --- a/Common/Data/Fundamental/Generated/CurrentDeferredRevenueBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/CurrentDeferredRevenueBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class CurrentDeferredRevenueBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CurrentDeferredRevenue_OneMonth); + [Obsolete("CurrentDeferredRevenue.OneMonth was retired by Morningstar in 2026; use CurrentDeferredRevenue.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("CurrentDeferredRevenue.OneMonth was retired by Morningstar in 2026; use CurrentDeferredRevenue.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CurrentDeferredRevenue_TwoMonths); + [Obsolete("CurrentDeferredRevenue.TwoMonths was retired by Morningstar in 2026; use CurrentDeferredRevenue.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("CurrentDeferredRevenue.TwoMonths was retired by Morningstar in 2026; use CurrentDeferredRevenue.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class CurrentDeferredRevenueBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CurrentDeferredRevenue_NineMonths); + [Obsolete("CurrentDeferredRevenue.NineMonths was retired by Morningstar in 2026; use CurrentDeferredRevenue.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("CurrentDeferredRevenue.NineMonths was retired by Morningstar in 2026; use CurrentDeferredRevenue.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/CurrentDeferredTaxesAssetsBalanceSheet.cs b/Common/Data/Fundamental/Generated/CurrentDeferredTaxesAssetsBalanceSheet.cs index 8feb36fadc95..927c69475d76 100644 --- a/Common/Data/Fundamental/Generated/CurrentDeferredTaxesAssetsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/CurrentDeferredTaxesAssetsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -61,7 +61,8 @@ public class CurrentDeferredTaxesAssetsBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CurrentDeferredTaxesAssets_NineMonths); + [Obsolete("CurrentDeferredTaxesAssets.NineMonths was retired by Morningstar in 2026; use CurrentDeferredTaxesAssets.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("CurrentDeferredTaxesAssets.NineMonths was retired by Morningstar in 2026; use CurrentDeferredTaxesAssets.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +98,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/CurrentDeferredTaxesLiabilitiesBalanceSheet.cs b/Common/Data/Fundamental/Generated/CurrentDeferredTaxesLiabilitiesBalanceSheet.cs index 004701ce889c..f63bfc0699e4 100644 --- a/Common/Data/Fundamental/Generated/CurrentDeferredTaxesLiabilitiesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/CurrentDeferredTaxesLiabilitiesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class CurrentDeferredTaxesLiabilitiesBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CurrentDeferredTaxesLiabilities_ThreeMonths); + [Obsolete("CurrentDeferredTaxesLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("CurrentDeferredTaxesLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CurrentDeferredTaxesLiabilities_SixMonths); + [Obsolete("CurrentDeferredTaxesLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("CurrentDeferredTaxesLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CurrentDeferredTaxesLiabilities_NineMonths); + [Obsolete("CurrentDeferredTaxesLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("CurrentDeferredTaxesLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CurrentDeferredTaxesLiabilities_TwelveMonths); + [Obsolete("CurrentDeferredTaxesLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("CurrentDeferredTaxesLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CurrentDeferredTaxesLiabilities_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CurrentDeferredTaxesLiabilities_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("CurrentDeferredTaxesLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/CurrentLiabilitiesBalanceSheet.cs b/Common/Data/Fundamental/Generated/CurrentLiabilitiesBalanceSheet.cs index 96029fa1d6f5..42ac36764b76 100644 --- a/Common/Data/Fundamental/Generated/CurrentLiabilitiesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/CurrentLiabilitiesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class CurrentLiabilitiesBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CurrentLiabilities_OneMonth); + [Obsolete("CurrentLiabilities.OneMonth was retired by Morningstar in 2026; use CurrentLiabilities.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("CurrentLiabilities.OneMonth was retired by Morningstar in 2026; use CurrentLiabilities.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CurrentLiabilities_TwoMonths); + [Obsolete("CurrentLiabilities.TwoMonths was retired by Morningstar in 2026; use CurrentLiabilities.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("CurrentLiabilities.TwoMonths was retired by Morningstar in 2026; use CurrentLiabilities.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class CurrentLiabilitiesBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CurrentLiabilities_NineMonths); + [Obsolete("CurrentLiabilities.NineMonths was retired by Morningstar in 2026; use CurrentLiabilities.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("CurrentLiabilities.NineMonths was retired by Morningstar in 2026; use CurrentLiabilities.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/CurrentNotesPayableBalanceSheet.cs b/Common/Data/Fundamental/Generated/CurrentNotesPayableBalanceSheet.cs index e8e7a9693f6c..74afe21f685a 100644 --- a/Common/Data/Fundamental/Generated/CurrentNotesPayableBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/CurrentNotesPayableBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class CurrentNotesPayableBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CurrentNotesPayable_OneMonth); + [Obsolete("CurrentNotesPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("CurrentNotesPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CurrentNotesPayable_TwoMonths); + [Obsolete("CurrentNotesPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("CurrentNotesPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CurrentNotesPayable_ThreeMonths); + [Obsolete("CurrentNotesPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("CurrentNotesPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CurrentNotesPayable_SixMonths); + [Obsolete("CurrentNotesPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("CurrentNotesPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CurrentNotesPayable_NineMonths); + [Obsolete("CurrentNotesPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("CurrentNotesPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CurrentNotesPayable_TwelveMonths); + [Obsolete("CurrentNotesPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("CurrentNotesPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CurrentNotesPayable_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CurrentNotesPayable_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("CurrentNotesPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/CurrentProvisionsBalanceSheet.cs b/Common/Data/Fundamental/Generated/CurrentProvisionsBalanceSheet.cs index 0b254b4c00df..caf5471a68f3 100644 --- a/Common/Data/Fundamental/Generated/CurrentProvisionsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/CurrentProvisionsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/CurrentRatio.cs b/Common/Data/Fundamental/Generated/CurrentRatio.cs index b356e2954c76..b9392f42e17e 100644 --- a/Common/Data/Fundamental/Generated/CurrentRatio.cs +++ b/Common/Data/Fundamental/Generated/CurrentRatio.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -67,7 +67,8 @@ public class CurrentRatio : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_CurrentRatio_NineMonths); + [Obsolete("CurrentRatio.NineMonths was retired by Morningstar in 2026; use CurrentRatio.ThreeMonths (also available: SixMonths, OneYear).")] + public double NineMonths => throw new NotSupportedException("CurrentRatio.NineMonths was retired by Morningstar in 2026; use CurrentRatio.ThreeMonths (also available: SixMonths, OneYear)."); /// /// Returns true if the field contains a value for the default period @@ -97,7 +98,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1Y",OneYear), new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths) }) + foreach (var kvp in new[] { new Tuple("1Y",OneYear), new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/CustomerAccountsBalanceSheet.cs b/Common/Data/Fundamental/Generated/CustomerAccountsBalanceSheet.cs index f8fedcbc729a..27620b16823d 100644 --- a/Common/Data/Fundamental/Generated/CustomerAccountsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/CustomerAccountsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class CustomerAccountsBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CustomerAccounts_ThreeMonths); + [Obsolete("CustomerAccounts was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("CustomerAccounts was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CustomerAccounts_TwelveMonths); + [Obsolete("CustomerAccounts was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("CustomerAccounts was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CustomerAccounts_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_CustomerAccounts_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("CustomerAccounts was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/DDACostofRevenueIncomeStatement.cs b/Common/Data/Fundamental/Generated/DDACostofRevenueIncomeStatement.cs index 45fe2be2759e..a50afa203148 100644 --- a/Common/Data/Fundamental/Generated/DDACostofRevenueIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/DDACostofRevenueIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class DDACostofRevenueIncomeStatement : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DDACostofRevenue_ThreeMonths); + [Obsolete("DDACostofRevenue was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("DDACostofRevenue was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DDACostofRevenue_SixMonths); + [Obsolete("DDACostofRevenue was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("DDACostofRevenue was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DDACostofRevenue_NineMonths); + [Obsolete("DDACostofRevenue was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("DDACostofRevenue was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DDACostofRevenue_TwelveMonths); + [Obsolete("DDACostofRevenue was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("DDACostofRevenue was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DDACostofRevenue_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DDACostofRevenue_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("DDACostofRevenue was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/DaysInInventory.cs b/Common/Data/Fundamental/Generated/DaysInInventory.cs index c0590a319b3b..4dde4b68f16d 100644 --- a/Common/Data/Fundamental/Generated/DaysInInventory.cs +++ b/Common/Data/Fundamental/Generated/DaysInInventory.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -43,13 +43,15 @@ public class DaysInInventory : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_DaysInInventory_ThreeMonths); + [Obsolete("DaysInInventory.ThreeMonths was retired by Morningstar in 2026; use DaysInInventory.OneYear.")] + public double ThreeMonths => throw new NotSupportedException("DaysInInventory.ThreeMonths was retired by Morningstar in 2026; use DaysInInventory.OneYear."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_DaysInInventory_SixMonths); + [Obsolete("DaysInInventory.SixMonths was retired by Morningstar in 2026; use DaysInInventory.OneYear.")] + public double SixMonths => throw new NotSupportedException("DaysInInventory.SixMonths was retired by Morningstar in 2026; use DaysInInventory.OneYear."); /// /// Returns true if the field contains a value for the default period @@ -79,7 +81,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1Y",OneYear), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths) }) + foreach (var kvp in new[] { new Tuple("1Y",OneYear) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/DaysInPayment.cs b/Common/Data/Fundamental/Generated/DaysInPayment.cs index fe8840e368d0..5b7210951189 100644 --- a/Common/Data/Fundamental/Generated/DaysInPayment.cs +++ b/Common/Data/Fundamental/Generated/DaysInPayment.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -43,13 +43,15 @@ public class DaysInPayment : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_DaysInPayment_ThreeMonths); + [Obsolete("DaysInPayment.ThreeMonths was retired by Morningstar in 2026; use DaysInPayment.OneYear.")] + public double ThreeMonths => throw new NotSupportedException("DaysInPayment.ThreeMonths was retired by Morningstar in 2026; use DaysInPayment.OneYear."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_DaysInPayment_SixMonths); + [Obsolete("DaysInPayment.SixMonths was retired by Morningstar in 2026; use DaysInPayment.OneYear.")] + public double SixMonths => throw new NotSupportedException("DaysInPayment.SixMonths was retired by Morningstar in 2026; use DaysInPayment.OneYear."); /// /// Returns true if the field contains a value for the default period @@ -79,7 +81,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1Y",OneYear), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths) }) + foreach (var kvp in new[] { new Tuple("1Y",OneYear) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/DaysInSales.cs b/Common/Data/Fundamental/Generated/DaysInSales.cs index fd67b1cd4241..fbd0f45343d6 100644 --- a/Common/Data/Fundamental/Generated/DaysInSales.cs +++ b/Common/Data/Fundamental/Generated/DaysInSales.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -43,13 +43,15 @@ public class DaysInSales : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_DaysInSales_ThreeMonths); + [Obsolete("DaysInSales.ThreeMonths was retired by Morningstar in 2026; use DaysInSales.OneYear.")] + public double ThreeMonths => throw new NotSupportedException("DaysInSales.ThreeMonths was retired by Morningstar in 2026; use DaysInSales.OneYear."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_DaysInSales_SixMonths); + [Obsolete("DaysInSales.SixMonths was retired by Morningstar in 2026; use DaysInSales.OneYear.")] + public double SixMonths => throw new NotSupportedException("DaysInSales.SixMonths was retired by Morningstar in 2026; use DaysInSales.OneYear."); /// /// Returns true if the field contains a value for the default period @@ -79,7 +81,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1Y",OneYear), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths) }) + foreach (var kvp in new[] { new Tuple("1Y",OneYear) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/DebtDueBeyondBalanceSheet.cs b/Common/Data/Fundamental/Generated/DebtDueBeyondBalanceSheet.cs index 9b3921af6c26..38e1d9218910 100644 --- a/Common/Data/Fundamental/Generated/DebtDueBeyondBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/DebtDueBeyondBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class DebtDueBeyondBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DebtDueBeyond_ThreeMonths); + [Obsolete("DebtDueBeyond was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("DebtDueBeyond was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DebtDueBeyond_TwelveMonths); + [Obsolete("DebtDueBeyond was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("DebtDueBeyond was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DebtDueBeyond_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DebtDueBeyond_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("DebtDueBeyond was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/DebtDueInYear1BalanceSheet.cs b/Common/Data/Fundamental/Generated/DebtDueInYear1BalanceSheet.cs index 310067141705..5c25453cb8d6 100644 --- a/Common/Data/Fundamental/Generated/DebtDueInYear1BalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/DebtDueInYear1BalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/DebtDueInYear2BalanceSheet.cs b/Common/Data/Fundamental/Generated/DebtDueInYear2BalanceSheet.cs index 1226a165a0cc..50fd6d08ca5b 100644 --- a/Common/Data/Fundamental/Generated/DebtDueInYear2BalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/DebtDueInYear2BalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/DebtDueInYear5BalanceSheet.cs b/Common/Data/Fundamental/Generated/DebtDueInYear5BalanceSheet.cs index 78b818145139..a0cfff9373aa 100644 --- a/Common/Data/Fundamental/Generated/DebtDueInYear5BalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/DebtDueInYear5BalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/DebtRestructuringSupplementalIncomeStatement.cs b/Common/Data/Fundamental/Generated/DebtRestructuringSupplementalIncomeStatement.cs new file mode 100644 index 000000000000..89ed458f49cf --- /dev/null +++ b/Common/Data/Fundamental/Generated/DebtRestructuringSupplementalIncomeStatement.cs @@ -0,0 +1,119 @@ +/* + * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. + * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * +*/ + +using System; +using System.Linq; +using Python.Runtime; +using Newtonsoft.Json; +using System.Collections.Generic; +using QuantConnect.Data.UniverseSelection; + +namespace QuantConnect.Data.Fundamental +{ + /// + /// Income or expense arising from the restructuring of debt. It is a supplemental value which would be reported outside consolidated statements. + /// + public class DebtRestructuringSupplementalIncomeStatement : MultiPeriodField + { + /// + /// The default period + /// + protected override string DefaultPeriod => "TwelveMonths"; + + /// + /// Gets/sets the ThreeMonths period value for the field + /// + [JsonProperty("3M")] + public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DebtRestructuringSupplemental_ThreeMonths); + + /// + /// Gets/sets the SixMonths period value for the field + /// + [JsonProperty("6M")] + public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DebtRestructuringSupplemental_SixMonths); + + /// + /// Gets/sets the NineMonths period value for the field + /// + [JsonProperty("9M")] + public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DebtRestructuringSupplemental_NineMonths); + + /// + /// Gets/sets the TwelveMonths period value for the field + /// + [JsonProperty("12M")] + public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DebtRestructuringSupplemental_TwelveMonths); + + /// + /// Returns true if the field contains a value for the default period + /// + public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DebtRestructuringSupplemental_TwelveMonths)); + + /// + /// Returns the default value for the field + /// + public override double Value + { + get + { + var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DebtRestructuringSupplemental_TwelveMonths); + if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) + { + return defaultValue; + } + return base.Value; + } + } + + /// + /// Gets a dictionary of period names and values for the field + /// + /// The dictionary of period names and values + public override IReadOnlyDictionary GetPeriodValues() + { + var result = new Dictionary(); + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + { + if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) + { + result[kvp.Item1] = kvp.Item2; + } + } + return result; + } + + /// + /// Gets the value of the field for the requested period + /// + /// The requested period + /// The value for the period + public override double GetPeriodValue(string period) => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, Enum.Parse($"FinancialStatements_IncomeStatement_DebtRestructuringSupplemental_{ConvertPeriod(period)}")); + + /// + /// Creates a new empty instance + /// + public DebtRestructuringSupplementalIncomeStatement() + { + } + + /// + /// Creates a new instance for the given time and security + /// + public DebtRestructuringSupplementalIncomeStatement(ITimeProvider timeProvider, SecurityIdentifier securityIdentifier) : base(timeProvider, securityIdentifier) + { + } + } +} diff --git a/Common/Data/Fundamental/Generated/DebtSecuritiesBalanceSheet.cs b/Common/Data/Fundamental/Generated/DebtSecuritiesBalanceSheet.cs index 07e9992e1bc1..cc9ad524cd79 100644 --- a/Common/Data/Fundamental/Generated/DebtSecuritiesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/DebtSecuritiesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class DebtSecuritiesBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DebtSecurities_ThreeMonths); + [Obsolete("DebtSecurities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("DebtSecurities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DebtSecurities_TwelveMonths); + [Obsolete("DebtSecurities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("DebtSecurities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DebtSecurities_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DebtSecurities_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("DebtSecurities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/DebtSecuritiesinIssueBalanceSheet.cs b/Common/Data/Fundamental/Generated/DebtSecuritiesinIssueBalanceSheet.cs index d93c467c34da..d7c8144a2027 100644 --- a/Common/Data/Fundamental/Generated/DebtSecuritiesinIssueBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/DebtSecuritiesinIssueBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class DebtSecuritiesinIssueBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DebtSecuritiesinIssue_ThreeMonths); + [Obsolete("DebtSecuritiesinIssue was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("DebtSecuritiesinIssue was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DebtSecuritiesinIssue_TwelveMonths); + [Obsolete("DebtSecuritiesinIssue was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("DebtSecuritiesinIssue was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DebtSecuritiesinIssue_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DebtSecuritiesinIssue_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("DebtSecuritiesinIssue was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/DebtTotalBalanceSheet.cs b/Common/Data/Fundamental/Generated/DebtTotalBalanceSheet.cs index bd5e04d95e5f..8a299eeca700 100644 --- a/Common/Data/Fundamental/Generated/DebtTotalBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/DebtTotalBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/DebttoAssets.cs b/Common/Data/Fundamental/Generated/DebttoAssets.cs index 45aca4a485ff..797e0366b6a2 100644 --- a/Common/Data/Fundamental/Generated/DebttoAssets.cs +++ b/Common/Data/Fundamental/Generated/DebttoAssets.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -67,7 +67,8 @@ public class DebtToAssets : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_DebtToAssets_NineMonths); + [Obsolete("DebtToAssets.NineMonths was retired by Morningstar in 2026; use DebtToAssets.ThreeMonths (also available: SixMonths, OneYear).")] + public double NineMonths => throw new NotSupportedException("DebtToAssets.NineMonths was retired by Morningstar in 2026; use DebtToAssets.ThreeMonths (also available: SixMonths, OneYear)."); /// /// Returns true if the field contains a value for the default period @@ -97,7 +98,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1Y",OneYear), new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths) }) + foreach (var kvp in new[] { new Tuple("1Y",OneYear), new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/DeferredCostsBalanceSheet.cs b/Common/Data/Fundamental/Generated/DeferredCostsBalanceSheet.cs index ffac1250b9ed..73ac81ad9f00 100644 --- a/Common/Data/Fundamental/Generated/DeferredCostsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/DeferredCostsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -43,7 +43,8 @@ public class DeferredCostsBalanceSheet : MultiPeriodField /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DeferredCosts_TwoMonths); + [Obsolete("DeferredCosts.TwoMonths was retired by Morningstar in 2026; use DeferredCosts.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("DeferredCosts.TwoMonths was retired by Morningstar in 2026; use DeferredCosts.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +62,8 @@ public class DeferredCostsBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DeferredCosts_NineMonths); + [Obsolete("DeferredCosts.NineMonths was retired by Morningstar in 2026; use DeferredCosts.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("DeferredCosts.NineMonths was retired by Morningstar in 2026; use DeferredCosts.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +99,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/DeferredTaxLiabilitiesTotalBalanceSheet.cs b/Common/Data/Fundamental/Generated/DeferredTaxLiabilitiesTotalBalanceSheet.cs index 8151d3ed79a0..2a63f3d0a604 100644 --- a/Common/Data/Fundamental/Generated/DeferredTaxLiabilitiesTotalBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/DeferredTaxLiabilitiesTotalBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/DepletionCashFlowStatement.cs b/Common/Data/Fundamental/Generated/DepletionCashFlowStatement.cs index 8abb76db5ab6..4cb0ac8b4159 100644 --- a/Common/Data/Fundamental/Generated/DepletionCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/DepletionCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class DepletionCashFlowStatement : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_Depletion_ThreeMonths); + [Obsolete("Depletion was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("Depletion was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_Depletion_SixMonths); + [Obsolete("Depletion was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("Depletion was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_Depletion_NineMonths); + [Obsolete("Depletion was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("Depletion was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_Depletion_TwelveMonths); + [Obsolete("Depletion was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("Depletion was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_Depletion_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_Depletion_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("Depletion was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/DepletionIncomeStatement.cs b/Common/Data/Fundamental/Generated/DepletionIncomeStatement.cs index ab39b9c3d27f..0a2d714929bc 100644 --- a/Common/Data/Fundamental/Generated/DepletionIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/DepletionIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class DepletionIncomeStatement : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_Depletion_ThreeMonths); + [Obsolete("Depletion was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("Depletion was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_Depletion_SixMonths); + [Obsolete("Depletion was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("Depletion was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_Depletion_NineMonths); + [Obsolete("Depletion was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("Depletion was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_Depletion_TwelveMonths); + [Obsolete("Depletion was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("Depletion was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_Depletion_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_Depletion_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("Depletion was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/DepositCertificatesBalanceSheet.cs b/Common/Data/Fundamental/Generated/DepositCertificatesBalanceSheet.cs index 6164c1cfbb7d..6dc1b42b8636 100644 --- a/Common/Data/Fundamental/Generated/DepositCertificatesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/DepositCertificatesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class DepositCertificatesBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DepositCertificates_ThreeMonths); + [Obsolete("DepositCertificates was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("DepositCertificates was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DepositCertificates_TwelveMonths); + [Obsolete("DepositCertificates was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("DepositCertificates was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DepositCertificates_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DepositCertificates_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("DepositCertificates was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/DepositsMadeunderAssumedReinsuranceContractBalanceSheet.cs b/Common/Data/Fundamental/Generated/DepositsMadeunderAssumedReinsuranceContractBalanceSheet.cs index 6c558a4fde12..5c30256669fb 100644 --- a/Common/Data/Fundamental/Generated/DepositsMadeunderAssumedReinsuranceContractBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/DepositsMadeunderAssumedReinsuranceContractBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class DepositsMadeunderAssumedReinsuranceContractBalanceSheet : MultiPeri /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DepositsMadeunderAssumedReinsuranceContract_ThreeMonths); + [Obsolete("DepositsMadeunderAssumedReinsuranceContract was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("DepositsMadeunderAssumedReinsuranceContract was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DepositsMadeunderAssumedReinsuranceContract_TwelveMonths); + [Obsolete("DepositsMadeunderAssumedReinsuranceContract was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("DepositsMadeunderAssumedReinsuranceContract was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DepositsMadeunderAssumedReinsuranceContract_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DepositsMadeunderAssumedReinsuranceContract_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("DepositsMadeunderAssumedReinsuranceContract was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/DepositsReceivedunderCededInsuranceContractBalanceSheet.cs b/Common/Data/Fundamental/Generated/DepositsReceivedunderCededInsuranceContractBalanceSheet.cs index 02263a5931a3..cc1af2602489 100644 --- a/Common/Data/Fundamental/Generated/DepositsReceivedunderCededInsuranceContractBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/DepositsReceivedunderCededInsuranceContractBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class DepositsReceivedunderCededInsuranceContractBalanceSheet : MultiPeri /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DepositsReceivedunderCededInsuranceContract_ThreeMonths); + [Obsolete("DepositsReceivedunderCededInsuranceContract was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("DepositsReceivedunderCededInsuranceContract was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DepositsReceivedunderCededInsuranceContract_TwelveMonths); + [Obsolete("DepositsReceivedunderCededInsuranceContract was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("DepositsReceivedunderCededInsuranceContract was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DepositsReceivedunderCededInsuranceContract_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DepositsReceivedunderCededInsuranceContract_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("DepositsReceivedunderCededInsuranceContract was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/DepositsbyBankBalanceSheet.cs b/Common/Data/Fundamental/Generated/DepositsbyBankBalanceSheet.cs index a29aef2b92a3..5587c4c61340 100644 --- a/Common/Data/Fundamental/Generated/DepositsbyBankBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/DepositsbyBankBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class DepositsbyBankBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DepositsbyBank_ThreeMonths); + [Obsolete("DepositsbyBank was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("DepositsbyBank was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DepositsbyBank_TwelveMonths); + [Obsolete("DepositsbyBank was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("DepositsbyBank was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DepositsbyBank_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DepositsbyBank_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("DepositsbyBank was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/DepreciationAndAmortizationCashFlowStatement.cs b/Common/Data/Fundamental/Generated/DepreciationAndAmortizationCashFlowStatement.cs index f6fc271a272b..e24ad25907e0 100644 --- a/Common/Data/Fundamental/Generated/DepreciationAndAmortizationCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/DepreciationAndAmortizationCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class DepreciationAndAmortizationCashFlowStatement : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_DepreciationAndAmortization_OneMonth); + [Obsolete("DepreciationAndAmortization was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("DepreciationAndAmortization was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_DepreciationAndAmortization_TwoMonths); + [Obsolete("DepreciationAndAmortization was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("DepreciationAndAmortization was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_DepreciationAndAmortization_ThreeMonths); + [Obsolete("DepreciationAndAmortization was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("DepreciationAndAmortization was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_DepreciationAndAmortization_SixMonths); + [Obsolete("DepreciationAndAmortization was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("DepreciationAndAmortization was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_DepreciationAndAmortization_NineMonths); + [Obsolete("DepreciationAndAmortization was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("DepreciationAndAmortization was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_DepreciationAndAmortization_TwelveMonths); + [Obsolete("DepreciationAndAmortization was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("DepreciationAndAmortization was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_DepreciationAndAmortization_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_DepreciationAndAmortization_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("DepreciationAndAmortization was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/DepreciationAndAmortizationIncomeStatement.cs b/Common/Data/Fundamental/Generated/DepreciationAndAmortizationIncomeStatement.cs index 4e0def63df37..87f23ed14d7a 100644 --- a/Common/Data/Fundamental/Generated/DepreciationAndAmortizationIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/DepreciationAndAmortizationIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class DepreciationAndAmortizationIncomeStatement : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DepreciationAndAmortization_OneMonth); + [Obsolete("DepreciationAndAmortization was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("DepreciationAndAmortization was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DepreciationAndAmortization_TwoMonths); + [Obsolete("DepreciationAndAmortization was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("DepreciationAndAmortization was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DepreciationAndAmortization_ThreeMonths); + [Obsolete("DepreciationAndAmortization was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("DepreciationAndAmortization was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DepreciationAndAmortization_SixMonths); + [Obsolete("DepreciationAndAmortization was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("DepreciationAndAmortization was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DepreciationAndAmortization_NineMonths); + [Obsolete("DepreciationAndAmortization was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("DepreciationAndAmortization was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DepreciationAndAmortization_TwelveMonths); + [Obsolete("DepreciationAndAmortization was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("DepreciationAndAmortization was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DepreciationAndAmortization_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DepreciationAndAmortization_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("DepreciationAndAmortization was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/DepreciationCashFlowStatement.cs b/Common/Data/Fundamental/Generated/DepreciationCashFlowStatement.cs index 702ae1cdd0ed..06075d4da7d7 100644 --- a/Common/Data/Fundamental/Generated/DepreciationCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/DepreciationCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class DepreciationCashFlowStatement : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_Depreciation_OneMonth); + [Obsolete("Depreciation was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("Depreciation was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_Depreciation_TwoMonths); + [Obsolete("Depreciation was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("Depreciation was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_Depreciation_ThreeMonths); + [Obsolete("Depreciation was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("Depreciation was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_Depreciation_SixMonths); + [Obsolete("Depreciation was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("Depreciation was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_Depreciation_NineMonths); + [Obsolete("Depreciation was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("Depreciation was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_Depreciation_TwelveMonths); + [Obsolete("Depreciation was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("Depreciation was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_Depreciation_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_Depreciation_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("Depreciation was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/DepreciationIncomeStatement.cs b/Common/Data/Fundamental/Generated/DepreciationIncomeStatement.cs index 27dea51f972a..d5453be04de1 100644 --- a/Common/Data/Fundamental/Generated/DepreciationIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/DepreciationIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,52 +37,46 @@ public class DepreciationIncomeStatement : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_Depreciation_OneMonth); + [Obsolete("Depreciation was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("Depreciation was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_Depreciation_ThreeMonths); + [Obsolete("Depreciation was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("Depreciation was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_Depreciation_SixMonths); + [Obsolete("Depreciation was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("Depreciation was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_Depreciation_NineMonths); + [Obsolete("Depreciation was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("Depreciation was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_Depreciation_TwelveMonths); + [Obsolete("Depreciation was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("Depreciation was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_Depreciation_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_Depreciation_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("Depreciation was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -91,7 +85,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/DepreciationSupplementalIncomeStatement.cs b/Common/Data/Fundamental/Generated/DepreciationSupplementalIncomeStatement.cs index 3be7e2cb8ea7..a7c79859028c 100644 --- a/Common/Data/Fundamental/Generated/DepreciationSupplementalIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/DepreciationSupplementalIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class DepreciationSupplementalIncomeStatement : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DepreciationSupplemental_ThreeMonths); + [Obsolete("DepreciationSupplemental was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("DepreciationSupplemental was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DepreciationSupplemental_SixMonths); + [Obsolete("DepreciationSupplemental was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("DepreciationSupplemental was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DepreciationSupplemental_NineMonths); + [Obsolete("DepreciationSupplemental was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("DepreciationSupplemental was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DepreciationSupplemental_TwelveMonths); + [Obsolete("DepreciationSupplemental was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("DepreciationSupplemental was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DepreciationSupplemental_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DepreciationSupplemental_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("DepreciationSupplemental was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/DerivativeAssetsBalanceSheet.cs b/Common/Data/Fundamental/Generated/DerivativeAssetsBalanceSheet.cs index 4fadc9e12d40..aa93afc6a2f8 100644 --- a/Common/Data/Fundamental/Generated/DerivativeAssetsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/DerivativeAssetsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,40 +37,32 @@ public class DerivativeAssetsBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DerivativeAssets_ThreeMonths); + [Obsolete("DerivativeAssets was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("DerivativeAssets was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DerivativeAssets_SixMonths); + [Obsolete("DerivativeAssets was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("DerivativeAssets was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DerivativeAssets_TwelveMonths); + [Obsolete("DerivativeAssets was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("DerivativeAssets was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DerivativeAssets_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DerivativeAssets_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("DerivativeAssets was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -79,7 +71,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/DerivativeProductLiabilitiesBalanceSheet.cs b/Common/Data/Fundamental/Generated/DerivativeProductLiabilitiesBalanceSheet.cs index c06802594bef..3a087521cc6d 100644 --- a/Common/Data/Fundamental/Generated/DerivativeProductLiabilitiesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/DerivativeProductLiabilitiesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class DerivativeProductLiabilitiesBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DerivativeProductLiabilities_OneMonth); + [Obsolete("DerivativeProductLiabilities.OneMonth was retired by Morningstar in 2026; use DerivativeProductLiabilities.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("DerivativeProductLiabilities.OneMonth was retired by Morningstar in 2026; use DerivativeProductLiabilities.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DerivativeProductLiabilities_TwoMonths); + [Obsolete("DerivativeProductLiabilities.TwoMonths was retired by Morningstar in 2026; use DerivativeProductLiabilities.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("DerivativeProductLiabilities.TwoMonths was retired by Morningstar in 2026; use DerivativeProductLiabilities.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class DerivativeProductLiabilitiesBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DerivativeProductLiabilities_NineMonths); + [Obsolete("DerivativeProductLiabilities.NineMonths was retired by Morningstar in 2026; use DerivativeProductLiabilities.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("DerivativeProductLiabilities.NineMonths was retired by Morningstar in 2026; use DerivativeProductLiabilities.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/DilutedAccountingChange.cs b/Common/Data/Fundamental/Generated/DilutedAccountingChange.cs index af8364750b5c..95c4543a7886 100644 --- a/Common/Data/Fundamental/Generated/DilutedAccountingChange.cs +++ b/Common/Data/Fundamental/Generated/DilutedAccountingChange.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class DilutedAccountingChange : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_DilutedAccountingChange_ThreeMonths); + [Obsolete("DilutedAccountingChange was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("DilutedAccountingChange was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_DilutedAccountingChange_SixMonths); + [Obsolete("DilutedAccountingChange was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("DilutedAccountingChange was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_DilutedAccountingChange_NineMonths); + [Obsolete("DilutedAccountingChange was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("DilutedAccountingChange was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_DilutedAccountingChange_TwelveMonths); + [Obsolete("DilutedAccountingChange was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("DilutedAccountingChange was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_DilutedAccountingChange_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_DilutedAccountingChange_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("DilutedAccountingChange was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/DilutedEPSOtherGainsLosses.cs b/Common/Data/Fundamental/Generated/DilutedEPSOtherGainsLosses.cs index 95b7e15a5be8..4530a50688bd 100644 --- a/Common/Data/Fundamental/Generated/DilutedEPSOtherGainsLosses.cs +++ b/Common/Data/Fundamental/Generated/DilutedEPSOtherGainsLosses.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class DilutedEPSOtherGainsLosses : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_DilutedEPSOtherGainsLosses_ThreeMonths); + [Obsolete("DilutedEPSOtherGainsLosses was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("DilutedEPSOtherGainsLosses was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_DilutedEPSOtherGainsLosses_SixMonths); + [Obsolete("DilutedEPSOtherGainsLosses was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("DilutedEPSOtherGainsLosses was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_DilutedEPSOtherGainsLosses_NineMonths); + [Obsolete("DilutedEPSOtherGainsLosses was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("DilutedEPSOtherGainsLosses was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_DilutedEPSOtherGainsLosses_TwelveMonths); + [Obsolete("DilutedEPSOtherGainsLosses was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("DilutedEPSOtherGainsLosses was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_DilutedEPSOtherGainsLosses_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_DilutedEPSOtherGainsLosses_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("DilutedEPSOtherGainsLosses was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/DilutedExtraordinary.cs b/Common/Data/Fundamental/Generated/DilutedExtraordinary.cs index 572b37cb8338..5e38ee50155b 100644 --- a/Common/Data/Fundamental/Generated/DilutedExtraordinary.cs +++ b/Common/Data/Fundamental/Generated/DilutedExtraordinary.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class DilutedExtraordinary : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_DilutedExtraordinary_OneMonth); + [Obsolete("DilutedExtraordinary was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("DilutedExtraordinary was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_DilutedExtraordinary_TwoMonths); + [Obsolete("DilutedExtraordinary was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("DilutedExtraordinary was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_DilutedExtraordinary_ThreeMonths); + [Obsolete("DilutedExtraordinary was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("DilutedExtraordinary was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_DilutedExtraordinary_SixMonths); + [Obsolete("DilutedExtraordinary was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("DilutedExtraordinary was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_DilutedExtraordinary_NineMonths); + [Obsolete("DilutedExtraordinary was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("DilutedExtraordinary was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_DilutedExtraordinary_TwelveMonths); + [Obsolete("DilutedExtraordinary was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("DilutedExtraordinary was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_DilutedExtraordinary_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_DilutedExtraordinary_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("DilutedExtraordinary was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/DilutedNIAvailtoComStockholdersIncomeStatement.cs b/Common/Data/Fundamental/Generated/DilutedNIAvailtoComStockholdersIncomeStatement.cs index 9b31bc2f3773..656af384c41e 100644 --- a/Common/Data/Fundamental/Generated/DilutedNIAvailtoComStockholdersIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/DilutedNIAvailtoComStockholdersIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/DiscontinuedOperationsSupplementalIncomeStatement.cs b/Common/Data/Fundamental/Generated/DiscontinuedOperationsSupplementalIncomeStatement.cs new file mode 100644 index 000000000000..f2ceae5ac054 --- /dev/null +++ b/Common/Data/Fundamental/Generated/DiscontinuedOperationsSupplementalIncomeStatement.cs @@ -0,0 +1,119 @@ +/* + * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. + * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * +*/ + +using System; +using System.Linq; +using Python.Runtime; +using Newtonsoft.Json; +using System.Collections.Generic; +using QuantConnect.Data.UniverseSelection; + +namespace QuantConnect.Data.Fundamental +{ + /// + /// Income or expense from operations that have been discontinued. It is a supplemental value which would be reported outside consolidated statements. + /// + public class DiscontinuedOperationsSupplementalIncomeStatement : MultiPeriodField + { + /// + /// The default period + /// + protected override string DefaultPeriod => "TwelveMonths"; + + /// + /// Gets/sets the ThreeMonths period value for the field + /// + [JsonProperty("3M")] + public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DiscontinuedOperationsSupplemental_ThreeMonths); + + /// + /// Gets/sets the SixMonths period value for the field + /// + [JsonProperty("6M")] + public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DiscontinuedOperationsSupplemental_SixMonths); + + /// + /// Gets/sets the NineMonths period value for the field + /// + [JsonProperty("9M")] + public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DiscontinuedOperationsSupplemental_NineMonths); + + /// + /// Gets/sets the TwelveMonths period value for the field + /// + [JsonProperty("12M")] + public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DiscontinuedOperationsSupplemental_TwelveMonths); + + /// + /// Returns true if the field contains a value for the default period + /// + public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DiscontinuedOperationsSupplemental_TwelveMonths)); + + /// + /// Returns the default value for the field + /// + public override double Value + { + get + { + var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DiscontinuedOperationsSupplemental_TwelveMonths); + if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) + { + return defaultValue; + } + return base.Value; + } + } + + /// + /// Gets a dictionary of period names and values for the field + /// + /// The dictionary of period names and values + public override IReadOnlyDictionary GetPeriodValues() + { + var result = new Dictionary(); + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + { + if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) + { + result[kvp.Item1] = kvp.Item2; + } + } + return result; + } + + /// + /// Gets the value of the field for the requested period + /// + /// The requested period + /// The value for the period + public override double GetPeriodValue(string period) => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, Enum.Parse($"FinancialStatements_IncomeStatement_DiscontinuedOperationsSupplemental_{ConvertPeriod(period)}")); + + /// + /// Creates a new empty instance + /// + public DiscontinuedOperationsSupplementalIncomeStatement() + { + } + + /// + /// Creates a new instance for the given time and security + /// + public DiscontinuedOperationsSupplementalIncomeStatement(ITimeProvider timeProvider, SecurityIdentifier securityIdentifier) : base(timeProvider, securityIdentifier) + { + } + } +} diff --git a/Common/Data/Fundamental/Generated/DisposalofBusinessesSupplementalIncomeStatement.cs b/Common/Data/Fundamental/Generated/DisposalofBusinessesSupplementalIncomeStatement.cs new file mode 100644 index 000000000000..5ec7f74ffaa1 --- /dev/null +++ b/Common/Data/Fundamental/Generated/DisposalofBusinessesSupplementalIncomeStatement.cs @@ -0,0 +1,119 @@ +/* + * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. + * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * +*/ + +using System; +using System.Linq; +using Python.Runtime; +using Newtonsoft.Json; +using System.Collections.Generic; +using QuantConnect.Data.UniverseSelection; + +namespace QuantConnect.Data.Fundamental +{ + /// + /// Gains or losses on the disposal of businesses. It is a supplemental value which would be reported outside consolidated statements. + /// + public class DisposalofBusinessesSupplementalIncomeStatement : MultiPeriodField + { + /// + /// The default period + /// + protected override string DefaultPeriod => "TwelveMonths"; + + /// + /// Gets/sets the ThreeMonths period value for the field + /// + [JsonProperty("3M")] + public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DisposalofBusinessesSupplemental_ThreeMonths); + + /// + /// Gets/sets the SixMonths period value for the field + /// + [JsonProperty("6M")] + public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DisposalofBusinessesSupplemental_SixMonths); + + /// + /// Gets/sets the NineMonths period value for the field + /// + [JsonProperty("9M")] + public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DisposalofBusinessesSupplemental_NineMonths); + + /// + /// Gets/sets the TwelveMonths period value for the field + /// + [JsonProperty("12M")] + public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DisposalofBusinessesSupplemental_TwelveMonths); + + /// + /// Returns true if the field contains a value for the default period + /// + public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DisposalofBusinessesSupplemental_TwelveMonths)); + + /// + /// Returns the default value for the field + /// + public override double Value + { + get + { + var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DisposalofBusinessesSupplemental_TwelveMonths); + if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) + { + return defaultValue; + } + return base.Value; + } + } + + /// + /// Gets a dictionary of period names and values for the field + /// + /// The dictionary of period names and values + public override IReadOnlyDictionary GetPeriodValues() + { + var result = new Dictionary(); + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + { + if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) + { + result[kvp.Item1] = kvp.Item2; + } + } + return result; + } + + /// + /// Gets the value of the field for the requested period + /// + /// The requested period + /// The value for the period + public override double GetPeriodValue(string period) => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, Enum.Parse($"FinancialStatements_IncomeStatement_DisposalofBusinessesSupplemental_{ConvertPeriod(period)}")); + + /// + /// Creates a new empty instance + /// + public DisposalofBusinessesSupplementalIncomeStatement() + { + } + + /// + /// Creates a new instance for the given time and security + /// + public DisposalofBusinessesSupplementalIncomeStatement(ITimeProvider timeProvider, SecurityIdentifier securityIdentifier) : base(timeProvider, securityIdentifier) + { + } + } +} diff --git a/Common/Data/Fundamental/Generated/DividendCoverageRatio.cs b/Common/Data/Fundamental/Generated/DividendCoverageRatio.cs index 8bab1098c575..1e5d23f4ce97 100644 --- a/Common/Data/Fundamental/Generated/DividendCoverageRatio.cs +++ b/Common/Data/Fundamental/Generated/DividendCoverageRatio.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,19 +37,22 @@ public class DividendCoverageRatio : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_DividendCoverageRatio_ThreeMonths); + [Obsolete("DividendCoverageRatio.ThreeMonths was retired by Morningstar in 2026; use DividendCoverageRatio.TwelveMonths.")] + public double ThreeMonths => throw new NotSupportedException("DividendCoverageRatio.ThreeMonths was retired by Morningstar in 2026; use DividendCoverageRatio.TwelveMonths."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_DividendCoverageRatio_SixMonths); + [Obsolete("DividendCoverageRatio.SixMonths was retired by Morningstar in 2026; use DividendCoverageRatio.TwelveMonths.")] + public double SixMonths => throw new NotSupportedException("DividendCoverageRatio.SixMonths was retired by Morningstar in 2026; use DividendCoverageRatio.TwelveMonths."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_DividendCoverageRatio_NineMonths); + [Obsolete("DividendCoverageRatio.NineMonths was retired by Morningstar in 2026; use DividendCoverageRatio.TwelveMonths.")] + public double NineMonths => throw new NotSupportedException("DividendCoverageRatio.NineMonths was retired by Morningstar in 2026; use DividendCoverageRatio.TwelveMonths."); /// /// Gets/sets the TwelveMonths period value for the field @@ -85,7 +88,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/DividendIncomeIncomeStatement.cs b/Common/Data/Fundamental/Generated/DividendIncomeIncomeStatement.cs index 0f434402a22b..6ad8d33fa623 100644 --- a/Common/Data/Fundamental/Generated/DividendIncomeIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/DividendIncomeIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class DividendIncomeIncomeStatement : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DividendIncome_OneMonth); + [Obsolete("DividendIncome was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("DividendIncome was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DividendIncome_TwoMonths); + [Obsolete("DividendIncome was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("DividendIncome was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DividendIncome_ThreeMonths); + [Obsolete("DividendIncome was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("DividendIncome was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DividendIncome_SixMonths); + [Obsolete("DividendIncome was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("DividendIncome was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DividendIncome_NineMonths); + [Obsolete("DividendIncome was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("DividendIncome was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DividendIncome_TwelveMonths); + [Obsolete("DividendIncome was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("DividendIncome was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DividendIncome_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_DividendIncome_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("DividendIncome was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/DividendPaidCFOCashFlowStatement.cs b/Common/Data/Fundamental/Generated/DividendPaidCFOCashFlowStatement.cs index fe87275d00ce..4dc71246315f 100644 --- a/Common/Data/Fundamental/Generated/DividendPaidCFOCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/DividendPaidCFOCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/DividendPerShare.cs b/Common/Data/Fundamental/Generated/DividendPerShare.cs index 822be821269c..ca04e74bdf50 100644 --- a/Common/Data/Fundamental/Generated/DividendPerShare.cs +++ b/Common/Data/Fundamental/Generated/DividendPerShare.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class DividendPerShare : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_DividendPerShare_OneMonth); + [Obsolete("DividendPerShare.OneMonth was retired by Morningstar in 2026; use DividendPerShare.ThreeMonths (also available: SixMonths, NineMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("DividendPerShare.OneMonth was retired by Morningstar in 2026; use DividendPerShare.ThreeMonths (also available: SixMonths, NineMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_DividendPerShare_TwoMonths); + [Obsolete("DividendPerShare.TwoMonths was retired by Morningstar in 2026; use DividendPerShare.ThreeMonths (also available: SixMonths, NineMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("DividendPerShare.TwoMonths was retired by Morningstar in 2026; use DividendPerShare.ThreeMonths (also available: SixMonths, NineMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -97,7 +99,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/DividendReceivedCFOCashFlowStatement.cs b/Common/Data/Fundamental/Generated/DividendReceivedCFOCashFlowStatement.cs index b2f65a343e86..d0f5f6f04ccd 100644 --- a/Common/Data/Fundamental/Generated/DividendReceivedCFOCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/DividendReceivedCFOCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/DividendsPaidDirectCashFlowStatement.cs b/Common/Data/Fundamental/Generated/DividendsPaidDirectCashFlowStatement.cs index 228d1ed8de39..d4fcaa68ce61 100644 --- a/Common/Data/Fundamental/Generated/DividendsPaidDirectCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/DividendsPaidDirectCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,28 +37,18 @@ public class DividendsPaidDirectCashFlowStatement : MultiPeriodField /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_DividendsPaidDirect_TwelveMonths); + [Obsolete("DividendsPaidDirect was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("DividendsPaidDirect was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_DividendsPaidDirect_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_DividendsPaidDirect_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("DividendsPaidDirect was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -67,7 +57,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/DividendsPayableBalanceSheet.cs b/Common/Data/Fundamental/Generated/DividendsPayableBalanceSheet.cs index 27c7c8d3227d..7655b0838430 100644 --- a/Common/Data/Fundamental/Generated/DividendsPayableBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/DividendsPayableBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,52 +37,46 @@ public class DividendsPayableBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DividendsPayable_OneMonth); + [Obsolete("DividendsPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("DividendsPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DividendsPayable_TwoMonths); + [Obsolete("DividendsPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("DividendsPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DividendsPayable_ThreeMonths); + [Obsolete("DividendsPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("DividendsPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DividendsPayable_NineMonths); + [Obsolete("DividendsPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("DividendsPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DividendsPayable_TwelveMonths); + [Obsolete("DividendsPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("DividendsPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DividendsPayable_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DividendsPayable_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("DividendsPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -91,7 +85,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/DividendsReceivedCFICashFlowStatement.cs b/Common/Data/Fundamental/Generated/DividendsReceivedCFICashFlowStatement.cs index 9b074f0d357e..e884a0a00854 100644 --- a/Common/Data/Fundamental/Generated/DividendsReceivedCFICashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/DividendsReceivedCFICashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/DividendsReceivedDirectCashFlowStatement.cs b/Common/Data/Fundamental/Generated/DividendsReceivedDirectCashFlowStatement.cs index 5107def68b50..8db1049b41da 100644 --- a/Common/Data/Fundamental/Generated/DividendsReceivedDirectCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/DividendsReceivedDirectCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class DividendsReceivedDirectCashFlowStatement : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_DividendsReceivedDirect_ThreeMonths); + [Obsolete("DividendsReceivedDirect was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("DividendsReceivedDirect was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_DividendsReceivedDirect_SixMonths); + [Obsolete("DividendsReceivedDirect was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("DividendsReceivedDirect was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_DividendsReceivedDirect_NineMonths); + [Obsolete("DividendsReceivedDirect was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("DividendsReceivedDirect was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_DividendsReceivedDirect_TwelveMonths); + [Obsolete("DividendsReceivedDirect was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("DividendsReceivedDirect was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_DividendsReceivedDirect_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_DividendsReceivedDirect_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("DividendsReceivedDirect was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/DueFromRelatedPartiesBalanceSheet.cs b/Common/Data/Fundamental/Generated/DueFromRelatedPartiesBalanceSheet.cs index ef1c1388a7e7..6927cea97bcc 100644 --- a/Common/Data/Fundamental/Generated/DueFromRelatedPartiesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/DueFromRelatedPartiesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class DueFromRelatedPartiesBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DueFromRelatedParties_ThreeMonths); + [Obsolete("DueFromRelatedParties was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("DueFromRelatedParties was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DueFromRelatedParties_TwelveMonths); + [Obsolete("DueFromRelatedParties was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("DueFromRelatedParties was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DueFromRelatedParties_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DueFromRelatedParties_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("DueFromRelatedParties was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/DuefromRelatedPartiesCurrentBalanceSheet.cs b/Common/Data/Fundamental/Generated/DuefromRelatedPartiesCurrentBalanceSheet.cs index 30de89b46f67..374d36f03fd5 100644 --- a/Common/Data/Fundamental/Generated/DuefromRelatedPartiesCurrentBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/DuefromRelatedPartiesCurrentBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class DuefromRelatedPartiesCurrentBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DuefromRelatedPartiesCurrent_ThreeMonths); + [Obsolete("DuefromRelatedPartiesCurrent was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("DuefromRelatedPartiesCurrent was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DuefromRelatedPartiesCurrent_TwelveMonths); + [Obsolete("DuefromRelatedPartiesCurrent was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("DuefromRelatedPartiesCurrent was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DuefromRelatedPartiesCurrent_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DuefromRelatedPartiesCurrent_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("DuefromRelatedPartiesCurrent was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/DuefromRelatedPartiesNonCurrentBalanceSheet.cs b/Common/Data/Fundamental/Generated/DuefromRelatedPartiesNonCurrentBalanceSheet.cs index 8930ea1f681e..88edd3b91ba0 100644 --- a/Common/Data/Fundamental/Generated/DuefromRelatedPartiesNonCurrentBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/DuefromRelatedPartiesNonCurrentBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/DuetoRelatedPartiesBalanceSheet.cs b/Common/Data/Fundamental/Generated/DuetoRelatedPartiesBalanceSheet.cs index fa63f0b75bb4..f6e31322868f 100644 --- a/Common/Data/Fundamental/Generated/DuetoRelatedPartiesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/DuetoRelatedPartiesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class DuetoRelatedPartiesBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DuetoRelatedParties_ThreeMonths); + [Obsolete("DuetoRelatedParties was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("DuetoRelatedParties was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DuetoRelatedParties_TwelveMonths); + [Obsolete("DuetoRelatedParties was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("DuetoRelatedParties was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DuetoRelatedParties_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DuetoRelatedParties_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("DuetoRelatedParties was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/DuetoRelatedPartiesCurrentBalanceSheet.cs b/Common/Data/Fundamental/Generated/DuetoRelatedPartiesCurrentBalanceSheet.cs index cc21527fceff..4de2784557ce 100644 --- a/Common/Data/Fundamental/Generated/DuetoRelatedPartiesCurrentBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/DuetoRelatedPartiesCurrentBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class DuetoRelatedPartiesCurrentBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DuetoRelatedPartiesCurrent_ThreeMonths); + [Obsolete("DuetoRelatedPartiesCurrent was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("DuetoRelatedPartiesCurrent was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DuetoRelatedPartiesCurrent_TwelveMonths); + [Obsolete("DuetoRelatedPartiesCurrent was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("DuetoRelatedPartiesCurrent was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DuetoRelatedPartiesCurrent_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DuetoRelatedPartiesCurrent_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("DuetoRelatedPartiesCurrent was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/DuetoRelatedPartiesNonCurrentBalanceSheet.cs b/Common/Data/Fundamental/Generated/DuetoRelatedPartiesNonCurrentBalanceSheet.cs index a393ebd27f66..1bc930e7b6fd 100644 --- a/Common/Data/Fundamental/Generated/DuetoRelatedPartiesNonCurrentBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/DuetoRelatedPartiesNonCurrentBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class DuetoRelatedPartiesNonCurrentBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DuetoRelatedPartiesNonCurrent_ThreeMonths); + [Obsolete("DuetoRelatedPartiesNonCurrent was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("DuetoRelatedPartiesNonCurrent was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DuetoRelatedPartiesNonCurrent_TwelveMonths); + [Obsolete("DuetoRelatedPartiesNonCurrent was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("DuetoRelatedPartiesNonCurrent was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DuetoRelatedPartiesNonCurrent_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_DuetoRelatedPartiesNonCurrent_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("DuetoRelatedPartiesNonCurrent was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/EPRANetDisposalValue.cs b/Common/Data/Fundamental/Generated/EPRANetDisposalValue.cs new file mode 100644 index 000000000000..f8786d4d1efd --- /dev/null +++ b/Common/Data/Fundamental/Generated/EPRANetDisposalValue.cs @@ -0,0 +1,125 @@ +/* + * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. + * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * +*/ + +using System; +using System.Linq; +using Python.Runtime; +using Newtonsoft.Json; +using System.Collections.Generic; +using QuantConnect.Data.UniverseSelection; + +namespace QuantConnect.Data.Fundamental +{ + /// + /// EPRA net disposal value, the shareholder value if assets were sold + /// + public class EPRANetDisposalValue : MultiPeriodField + { + /// + /// The default period + /// + protected override string DefaultPeriod => "TwelveMonths"; + + /// + /// Gets/sets the OneMonth period value for the field + /// + [JsonProperty("1M")] + public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_EPRANetDisposalValue_OneMonth); + + /// + /// Gets/sets the ThreeMonths period value for the field + /// + [JsonProperty("3M")] + public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_EPRANetDisposalValue_ThreeMonths); + + /// + /// Gets/sets the SixMonths period value for the field + /// + [JsonProperty("6M")] + public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_EPRANetDisposalValue_SixMonths); + + /// + /// Gets/sets the NineMonths period value for the field + /// + [JsonProperty("9M")] + public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_EPRANetDisposalValue_NineMonths); + + /// + /// Gets/sets the TwelveMonths period value for the field + /// + [JsonProperty("12M")] + public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_EPRANetDisposalValue_TwelveMonths); + + /// + /// Returns true if the field contains a value for the default period + /// + public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_EPRANetDisposalValue_TwelveMonths)); + + /// + /// Returns the default value for the field + /// + public override double Value + { + get + { + var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_EPRANetDisposalValue_TwelveMonths); + if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) + { + return defaultValue; + } + return base.Value; + } + } + + /// + /// Gets a dictionary of period names and values for the field + /// + /// The dictionary of period names and values + public override IReadOnlyDictionary GetPeriodValues() + { + var result = new Dictionary(); + foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + { + if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) + { + result[kvp.Item1] = kvp.Item2; + } + } + return result; + } + + /// + /// Gets the value of the field for the requested period + /// + /// The requested period + /// The value for the period + public override double GetPeriodValue(string period) => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, Enum.Parse($"FinancialStatements_EPRANetDisposalValue_{ConvertPeriod(period)}")); + + /// + /// Creates a new empty instance + /// + public EPRANetDisposalValue() + { + } + + /// + /// Creates a new instance for the given time and security + /// + public EPRANetDisposalValue(ITimeProvider timeProvider, SecurityIdentifier securityIdentifier) : base(timeProvider, securityIdentifier) + { + } + } +} diff --git a/Common/Data/Fundamental/Generated/EPRANetDisposalValuePerShare.cs b/Common/Data/Fundamental/Generated/EPRANetDisposalValuePerShare.cs new file mode 100644 index 000000000000..b53d57c32ce9 --- /dev/null +++ b/Common/Data/Fundamental/Generated/EPRANetDisposalValuePerShare.cs @@ -0,0 +1,125 @@ +/* + * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. + * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * +*/ + +using System; +using System.Linq; +using Python.Runtime; +using Newtonsoft.Json; +using System.Collections.Generic; +using QuantConnect.Data.UniverseSelection; + +namespace QuantConnect.Data.Fundamental +{ + /// + /// EPRA net disposal value per share + /// + public class EPRANetDisposalValuePerShare : MultiPeriodField + { + /// + /// The default period + /// + protected override string DefaultPeriod => "TwelveMonths"; + + /// + /// Gets/sets the OneMonth period value for the field + /// + [JsonProperty("1M")] + public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_EPRANetDisposalValuePerShare_OneMonth); + + /// + /// Gets/sets the ThreeMonths period value for the field + /// + [JsonProperty("3M")] + public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_EPRANetDisposalValuePerShare_ThreeMonths); + + /// + /// Gets/sets the SixMonths period value for the field + /// + [JsonProperty("6M")] + public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_EPRANetDisposalValuePerShare_SixMonths); + + /// + /// Gets/sets the NineMonths period value for the field + /// + [JsonProperty("9M")] + public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_EPRANetDisposalValuePerShare_NineMonths); + + /// + /// Gets/sets the TwelveMonths period value for the field + /// + [JsonProperty("12M")] + public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_EPRANetDisposalValuePerShare_TwelveMonths); + + /// + /// Returns true if the field contains a value for the default period + /// + public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_EPRANetDisposalValuePerShare_TwelveMonths)); + + /// + /// Returns the default value for the field + /// + public override double Value + { + get + { + var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_EPRANetDisposalValuePerShare_TwelveMonths); + if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) + { + return defaultValue; + } + return base.Value; + } + } + + /// + /// Gets a dictionary of period names and values for the field + /// + /// The dictionary of period names and values + public override IReadOnlyDictionary GetPeriodValues() + { + var result = new Dictionary(); + foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + { + if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) + { + result[kvp.Item1] = kvp.Item2; + } + } + return result; + } + + /// + /// Gets the value of the field for the requested period + /// + /// The requested period + /// The value for the period + public override double GetPeriodValue(string period) => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, Enum.Parse($"FinancialStatements_EPRANetDisposalValuePerShare_{ConvertPeriod(period)}")); + + /// + /// Creates a new empty instance + /// + public EPRANetDisposalValuePerShare() + { + } + + /// + /// Creates a new instance for the given time and security + /// + public EPRANetDisposalValuePerShare(ITimeProvider timeProvider, SecurityIdentifier securityIdentifier) : base(timeProvider, securityIdentifier) + { + } + } +} diff --git a/Common/Data/Fundamental/Generated/EPRANetReinstatementValue.cs b/Common/Data/Fundamental/Generated/EPRANetReinstatementValue.cs new file mode 100644 index 000000000000..215fd71dcd2d --- /dev/null +++ b/Common/Data/Fundamental/Generated/EPRANetReinstatementValue.cs @@ -0,0 +1,125 @@ +/* + * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. + * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * +*/ + +using System; +using System.Linq; +using Python.Runtime; +using Newtonsoft.Json; +using System.Collections.Generic; +using QuantConnect.Data.UniverseSelection; + +namespace QuantConnect.Data.Fundamental +{ + /// + /// EPRA net reinstatement value, the value required to rebuild the entity + /// + public class EPRANetReinstatementValue : MultiPeriodField + { + /// + /// The default period + /// + protected override string DefaultPeriod => "TwelveMonths"; + + /// + /// Gets/sets the OneMonth period value for the field + /// + [JsonProperty("1M")] + public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_EPRANetReinstatementValue_OneMonth); + + /// + /// Gets/sets the ThreeMonths period value for the field + /// + [JsonProperty("3M")] + public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_EPRANetReinstatementValue_ThreeMonths); + + /// + /// Gets/sets the SixMonths period value for the field + /// + [JsonProperty("6M")] + public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_EPRANetReinstatementValue_SixMonths); + + /// + /// Gets/sets the NineMonths period value for the field + /// + [JsonProperty("9M")] + public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_EPRANetReinstatementValue_NineMonths); + + /// + /// Gets/sets the TwelveMonths period value for the field + /// + [JsonProperty("12M")] + public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_EPRANetReinstatementValue_TwelveMonths); + + /// + /// Returns true if the field contains a value for the default period + /// + public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_EPRANetReinstatementValue_TwelveMonths)); + + /// + /// Returns the default value for the field + /// + public override double Value + { + get + { + var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_EPRANetReinstatementValue_TwelveMonths); + if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) + { + return defaultValue; + } + return base.Value; + } + } + + /// + /// Gets a dictionary of period names and values for the field + /// + /// The dictionary of period names and values + public override IReadOnlyDictionary GetPeriodValues() + { + var result = new Dictionary(); + foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + { + if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) + { + result[kvp.Item1] = kvp.Item2; + } + } + return result; + } + + /// + /// Gets the value of the field for the requested period + /// + /// The requested period + /// The value for the period + public override double GetPeriodValue(string period) => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, Enum.Parse($"FinancialStatements_EPRANetReinstatementValue_{ConvertPeriod(period)}")); + + /// + /// Creates a new empty instance + /// + public EPRANetReinstatementValue() + { + } + + /// + /// Creates a new instance for the given time and security + /// + public EPRANetReinstatementValue(ITimeProvider timeProvider, SecurityIdentifier securityIdentifier) : base(timeProvider, securityIdentifier) + { + } + } +} diff --git a/Common/Data/Fundamental/Generated/EPRANetReinstatementValuePerShare.cs b/Common/Data/Fundamental/Generated/EPRANetReinstatementValuePerShare.cs new file mode 100644 index 000000000000..d4d5d733a699 --- /dev/null +++ b/Common/Data/Fundamental/Generated/EPRANetReinstatementValuePerShare.cs @@ -0,0 +1,125 @@ +/* + * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. + * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * +*/ + +using System; +using System.Linq; +using Python.Runtime; +using Newtonsoft.Json; +using System.Collections.Generic; +using QuantConnect.Data.UniverseSelection; + +namespace QuantConnect.Data.Fundamental +{ + /// + /// EPRA net reinstatement value per share + /// + public class EPRANetReinstatementValuePerShare : MultiPeriodField + { + /// + /// The default period + /// + protected override string DefaultPeriod => "TwelveMonths"; + + /// + /// Gets/sets the OneMonth period value for the field + /// + [JsonProperty("1M")] + public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_EPRANetReinstatementValuePerShare_OneMonth); + + /// + /// Gets/sets the ThreeMonths period value for the field + /// + [JsonProperty("3M")] + public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_EPRANetReinstatementValuePerShare_ThreeMonths); + + /// + /// Gets/sets the SixMonths period value for the field + /// + [JsonProperty("6M")] + public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_EPRANetReinstatementValuePerShare_SixMonths); + + /// + /// Gets/sets the NineMonths period value for the field + /// + [JsonProperty("9M")] + public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_EPRANetReinstatementValuePerShare_NineMonths); + + /// + /// Gets/sets the TwelveMonths period value for the field + /// + [JsonProperty("12M")] + public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_EPRANetReinstatementValuePerShare_TwelveMonths); + + /// + /// Returns true if the field contains a value for the default period + /// + public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_EPRANetReinstatementValuePerShare_TwelveMonths)); + + /// + /// Returns the default value for the field + /// + public override double Value + { + get + { + var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_EPRANetReinstatementValuePerShare_TwelveMonths); + if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) + { + return defaultValue; + } + return base.Value; + } + } + + /// + /// Gets a dictionary of period names and values for the field + /// + /// The dictionary of period names and values + public override IReadOnlyDictionary GetPeriodValues() + { + var result = new Dictionary(); + foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + { + if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) + { + result[kvp.Item1] = kvp.Item2; + } + } + return result; + } + + /// + /// Gets the value of the field for the requested period + /// + /// The requested period + /// The value for the period + public override double GetPeriodValue(string period) => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, Enum.Parse($"FinancialStatements_EPRANetReinstatementValuePerShare_{ConvertPeriod(period)}")); + + /// + /// Creates a new empty instance + /// + public EPRANetReinstatementValuePerShare() + { + } + + /// + /// Creates a new instance for the given time and security + /// + public EPRANetReinstatementValuePerShare(ITimeProvider timeProvider, SecurityIdentifier securityIdentifier) : base(timeProvider, securityIdentifier) + { + } + } +} diff --git a/Common/Data/Fundamental/Generated/EPRANetTangibleAssets.cs b/Common/Data/Fundamental/Generated/EPRANetTangibleAssets.cs new file mode 100644 index 000000000000..7fa220fc6f68 --- /dev/null +++ b/Common/Data/Fundamental/Generated/EPRANetTangibleAssets.cs @@ -0,0 +1,125 @@ +/* + * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. + * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * +*/ + +using System; +using System.Linq; +using Python.Runtime; +using Newtonsoft.Json; +using System.Collections.Generic; +using QuantConnect.Data.UniverseSelection; + +namespace QuantConnect.Data.Fundamental +{ + /// + /// EPRA net tangible assets, assuming the entity buys and sells assets over time + /// + public class EPRANetTangibleAssets : MultiPeriodField + { + /// + /// The default period + /// + protected override string DefaultPeriod => "TwelveMonths"; + + /// + /// Gets/sets the OneMonth period value for the field + /// + [JsonProperty("1M")] + public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_EPRANetTangibleAssets_OneMonth); + + /// + /// Gets/sets the ThreeMonths period value for the field + /// + [JsonProperty("3M")] + public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_EPRANetTangibleAssets_ThreeMonths); + + /// + /// Gets/sets the SixMonths period value for the field + /// + [JsonProperty("6M")] + public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_EPRANetTangibleAssets_SixMonths); + + /// + /// Gets/sets the NineMonths period value for the field + /// + [JsonProperty("9M")] + public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_EPRANetTangibleAssets_NineMonths); + + /// + /// Gets/sets the TwelveMonths period value for the field + /// + [JsonProperty("12M")] + public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_EPRANetTangibleAssets_TwelveMonths); + + /// + /// Returns true if the field contains a value for the default period + /// + public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_EPRANetTangibleAssets_TwelveMonths)); + + /// + /// Returns the default value for the field + /// + public override double Value + { + get + { + var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_EPRANetTangibleAssets_TwelveMonths); + if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) + { + return defaultValue; + } + return base.Value; + } + } + + /// + /// Gets a dictionary of period names and values for the field + /// + /// The dictionary of period names and values + public override IReadOnlyDictionary GetPeriodValues() + { + var result = new Dictionary(); + foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + { + if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) + { + result[kvp.Item1] = kvp.Item2; + } + } + return result; + } + + /// + /// Gets the value of the field for the requested period + /// + /// The requested period + /// The value for the period + public override double GetPeriodValue(string period) => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, Enum.Parse($"FinancialStatements_EPRANetTangibleAssets_{ConvertPeriod(period)}")); + + /// + /// Creates a new empty instance + /// + public EPRANetTangibleAssets() + { + } + + /// + /// Creates a new instance for the given time and security + /// + public EPRANetTangibleAssets(ITimeProvider timeProvider, SecurityIdentifier securityIdentifier) : base(timeProvider, securityIdentifier) + { + } + } +} diff --git a/Common/Data/Fundamental/Generated/EPRANetTangibleAssetsPerShare.cs b/Common/Data/Fundamental/Generated/EPRANetTangibleAssetsPerShare.cs new file mode 100644 index 000000000000..efb4a7b7984f --- /dev/null +++ b/Common/Data/Fundamental/Generated/EPRANetTangibleAssetsPerShare.cs @@ -0,0 +1,125 @@ +/* + * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. + * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * +*/ + +using System; +using System.Linq; +using Python.Runtime; +using Newtonsoft.Json; +using System.Collections.Generic; +using QuantConnect.Data.UniverseSelection; + +namespace QuantConnect.Data.Fundamental +{ + /// + /// EPRA net tangible assets per share + /// + public class EPRANetTangibleAssetsPerShare : MultiPeriodField + { + /// + /// The default period + /// + protected override string DefaultPeriod => "TwelveMonths"; + + /// + /// Gets/sets the OneMonth period value for the field + /// + [JsonProperty("1M")] + public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_EPRANetTangibleAssetsPerShare_OneMonth); + + /// + /// Gets/sets the ThreeMonths period value for the field + /// + [JsonProperty("3M")] + public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_EPRANetTangibleAssetsPerShare_ThreeMonths); + + /// + /// Gets/sets the SixMonths period value for the field + /// + [JsonProperty("6M")] + public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_EPRANetTangibleAssetsPerShare_SixMonths); + + /// + /// Gets/sets the NineMonths period value for the field + /// + [JsonProperty("9M")] + public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_EPRANetTangibleAssetsPerShare_NineMonths); + + /// + /// Gets/sets the TwelveMonths period value for the field + /// + [JsonProperty("12M")] + public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_EPRANetTangibleAssetsPerShare_TwelveMonths); + + /// + /// Returns true if the field contains a value for the default period + /// + public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_EPRANetTangibleAssetsPerShare_TwelveMonths)); + + /// + /// Returns the default value for the field + /// + public override double Value + { + get + { + var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_EPRANetTangibleAssetsPerShare_TwelveMonths); + if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) + { + return defaultValue; + } + return base.Value; + } + } + + /// + /// Gets a dictionary of period names and values for the field + /// + /// The dictionary of period names and values + public override IReadOnlyDictionary GetPeriodValues() + { + var result = new Dictionary(); + foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + { + if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) + { + result[kvp.Item1] = kvp.Item2; + } + } + return result; + } + + /// + /// Gets the value of the field for the requested period + /// + /// The requested period + /// The value for the period + public override double GetPeriodValue(string period) => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, Enum.Parse($"FinancialStatements_EPRANetTangibleAssetsPerShare_{ConvertPeriod(period)}")); + + /// + /// Creates a new empty instance + /// + public EPRANetTangibleAssetsPerShare() + { + } + + /// + /// Creates a new instance for the given time and security + /// + public EPRANetTangibleAssetsPerShare(ITimeProvider timeProvider, SecurityIdentifier securityIdentifier) : base(timeProvider, securityIdentifier) + { + } + } +} diff --git a/Common/Data/Fundamental/Generated/EarningRatios.cs b/Common/Data/Fundamental/Generated/EarningRatios.cs index 5aee8f2f3ba5..cfabe8eb783f 100644 --- a/Common/Data/Fundamental/Generated/EarningRatios.cs +++ b/Common/Data/Fundamental/Generated/EarningRatios.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -75,6 +75,7 @@ public class EarningRatios : FundamentalTimeDependentProperty /// Morningstar DataId: 13019 /// [JsonProperty("13019")] + [Obsolete("RegressionGrowthofDividends5Years was retired by Morningstar in 2026 for all periods; no replacement is available.")] public RegressionGrowthofDividends5Years RegressionGrowthofDividends5Years => _regressionGrowthofDividends5Years ??= new(_timeProvider, _securityIdentifier); private RegressionGrowthofDividends5Years _regressionGrowthofDividends5Years; @@ -105,6 +106,7 @@ public class EarningRatios : FundamentalTimeDependentProperty /// Morningstar DataId: 13022 /// [JsonProperty("13022")] + [Obsolete("NormalizedDilutedEPSGrowth was retired by Morningstar in 2026 for all periods; no replacement is available.")] public NormalizedDilutedEPSGrowth NormalizedDilutedEPSGrowth => _normalizedDilutedEPSGrowth ??= new(_timeProvider, _securityIdentifier); private NormalizedDilutedEPSGrowth _normalizedDilutedEPSGrowth; diff --git a/Common/Data/Fundamental/Generated/EarningReports.cs b/Common/Data/Fundamental/Generated/EarningReports.cs index d7c71e1342bb..9d3e87e3f5d9 100644 --- a/Common/Data/Fundamental/Generated/EarningReports.cs +++ b/Common/Data/Fundamental/Generated/EarningReports.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -105,6 +105,7 @@ public class EarningReports : FundamentalTimeDependentProperty /// Morningstar DataId: 29002 /// [JsonProperty("29002")] + [Obsolete("BasicExtraordinary was retired by Morningstar in 2026 for all periods; no replacement is available.")] public BasicExtraordinary BasicExtraordinary => _basicExtraordinary ??= new(_timeProvider, _securityIdentifier); private BasicExtraordinary _basicExtraordinary; @@ -115,6 +116,7 @@ public class EarningReports : FundamentalTimeDependentProperty /// Morningstar DataId: 29003 /// [JsonProperty("29003")] + [Obsolete("BasicAccountingChange was retired by Morningstar in 2026 for all periods; no replacement is available.")] public BasicAccountingChange BasicAccountingChange => _basicAccountingChange ??= new(_timeProvider, _securityIdentifier); private BasicAccountingChange _basicAccountingChange; @@ -155,6 +157,7 @@ public class EarningReports : FundamentalTimeDependentProperty /// Morningstar DataId: 29007 /// [JsonProperty("29007")] + [Obsolete("DilutedExtraordinary was retired by Morningstar in 2026 for all periods; no replacement is available.")] public DilutedExtraordinary DilutedExtraordinary => _dilutedExtraordinary ??= new(_timeProvider, _securityIdentifier); private DilutedExtraordinary _dilutedExtraordinary; @@ -165,6 +168,7 @@ public class EarningReports : FundamentalTimeDependentProperty /// Morningstar DataId: 29008 /// [JsonProperty("29008")] + [Obsolete("DilutedAccountingChange was retired by Morningstar in 2026 for all periods; no replacement is available.")] public DilutedAccountingChange DilutedAccountingChange => _dilutedAccountingChange ??= new(_timeProvider, _securityIdentifier); private DilutedAccountingChange _dilutedAccountingChange; @@ -215,6 +219,7 @@ public class EarningReports : FundamentalTimeDependentProperty /// Morningstar DataId: 29013 /// [JsonProperty("29013")] + [Obsolete("BasicEPSOtherGainsLosses was retired by Morningstar in 2026 for all periods; no replacement is available.")] public BasicEPSOtherGainsLosses BasicEPSOtherGainsLosses => _basicEPSOtherGainsLosses ??= new(_timeProvider, _securityIdentifier); private BasicEPSOtherGainsLosses _basicEPSOtherGainsLosses; @@ -235,6 +240,7 @@ public class EarningReports : FundamentalTimeDependentProperty /// Morningstar DataId: 29015 /// [JsonProperty("29015")] + [Obsolete("TaxLossCarryforwardBasicEPS was retired by Morningstar in 2026 for all periods; no replacement is available.")] public TaxLossCarryforwardBasicEPS TaxLossCarryforwardBasicEPS => _taxLossCarryforwardBasicEPS ??= new(_timeProvider, _securityIdentifier); private TaxLossCarryforwardBasicEPS _taxLossCarryforwardBasicEPS; @@ -245,6 +251,7 @@ public class EarningReports : FundamentalTimeDependentProperty /// Morningstar DataId: 29016 /// [JsonProperty("29016")] + [Obsolete("DilutedEPSOtherGainsLosses was retired by Morningstar in 2026 for all periods; no replacement is available.")] public DilutedEPSOtherGainsLosses DilutedEPSOtherGainsLosses => _dilutedEPSOtherGainsLosses ??= new(_timeProvider, _securityIdentifier); private DilutedEPSOtherGainsLosses _dilutedEPSOtherGainsLosses; @@ -265,6 +272,7 @@ public class EarningReports : FundamentalTimeDependentProperty /// Morningstar DataId: 29018 /// [JsonProperty("29018")] + [Obsolete("TaxLossCarryforwardDilutedEPS was retired by Morningstar in 2026 for all periods; no replacement is available.")] public TaxLossCarryforwardDilutedEPS TaxLossCarryforwardDilutedEPS => _taxLossCarryforwardDilutedEPS ??= new(_timeProvider, _securityIdentifier); private TaxLossCarryforwardDilutedEPS _taxLossCarryforwardDilutedEPS; diff --git a/Common/Data/Fundamental/Generated/EarningReportsAccessionNumber.cs b/Common/Data/Fundamental/Generated/EarningReportsAccessionNumber.cs index 95611ab1adfe..961b01b134c2 100644 --- a/Common/Data/Fundamental/Generated/EarningReportsAccessionNumber.cs +++ b/Common/Data/Fundamental/Generated/EarningReportsAccessionNumber.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/EffectiveTaxRateAsReportedIncomeStatement.cs b/Common/Data/Fundamental/Generated/EffectiveTaxRateAsReportedIncomeStatement.cs index 86f24b65b59a..e7dabf74c875 100644 --- a/Common/Data/Fundamental/Generated/EffectiveTaxRateAsReportedIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/EffectiveTaxRateAsReportedIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/EmployeeBenefitsBalanceSheet.cs b/Common/Data/Fundamental/Generated/EmployeeBenefitsBalanceSheet.cs index d3ccd37aa104..b0484bc157b9 100644 --- a/Common/Data/Fundamental/Generated/EmployeeBenefitsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/EmployeeBenefitsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,52 +37,46 @@ public class EmployeeBenefitsBalanceSheet : MultiPeriodField /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_EmployeeBenefits_TwoMonths); + [Obsolete("EmployeeBenefits was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("EmployeeBenefits was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_EmployeeBenefits_ThreeMonths); + [Obsolete("EmployeeBenefits was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("EmployeeBenefits was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_EmployeeBenefits_SixMonths); + [Obsolete("EmployeeBenefits was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("EmployeeBenefits was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_EmployeeBenefits_NineMonths); + [Obsolete("EmployeeBenefits was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("EmployeeBenefits was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_EmployeeBenefits_TwelveMonths); + [Obsolete("EmployeeBenefits was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("EmployeeBenefits was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_EmployeeBenefits_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_EmployeeBenefits_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("EmployeeBenefits was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -91,7 +85,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/EquityInvestmentsBalanceSheet.cs b/Common/Data/Fundamental/Generated/EquityInvestmentsBalanceSheet.cs index 0e9e5f9da77b..e009517479ea 100644 --- a/Common/Data/Fundamental/Generated/EquityInvestmentsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/EquityInvestmentsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,40 +37,32 @@ public class EquityInvestmentsBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_EquityInvestments_ThreeMonths); + [Obsolete("EquityInvestments was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("EquityInvestments was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_EquityInvestments_NineMonths); + [Obsolete("EquityInvestments was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("EquityInvestments was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_EquityInvestments_TwelveMonths); + [Obsolete("EquityInvestments was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("EquityInvestments was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_EquityInvestments_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_EquityInvestments_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("EquityInvestments was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -79,7 +71,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/EquityPerShareGrowth.cs b/Common/Data/Fundamental/Generated/EquityPerShareGrowth.cs index 0f49f712d6db..5f2e1e114700 100644 --- a/Common/Data/Fundamental/Generated/EquityPerShareGrowth.cs +++ b/Common/Data/Fundamental/Generated/EquityPerShareGrowth.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -43,7 +43,8 @@ public class EquityPerShareGrowth : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningRatios_EquityPerShareGrowth_ThreeMonths); + [Obsolete("EquityPerShareGrowth.ThreeMonths was retired by Morningstar in 2026; use EquityPerShareGrowth.OneYear (also available: ThreeYears, FiveYears).")] + public double ThreeMonths => throw new NotSupportedException("EquityPerShareGrowth.ThreeMonths was retired by Morningstar in 2026; use EquityPerShareGrowth.OneYear (also available: ThreeYears, FiveYears)."); /// /// Gets/sets the ThreeYears period value for the field @@ -85,7 +86,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1Y",OneYear), new Tuple("3M",ThreeMonths), new Tuple("3Y",ThreeYears), new Tuple("5Y",FiveYears) }) + foreach (var kvp in new[] { new Tuple("1Y",OneYear), new Tuple("3Y",ThreeYears), new Tuple("5Y",FiveYears) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/EquitySharesInvestmentsBalanceSheet.cs b/Common/Data/Fundamental/Generated/EquitySharesInvestmentsBalanceSheet.cs index b4c999610690..6e41052f2152 100644 --- a/Common/Data/Fundamental/Generated/EquitySharesInvestmentsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/EquitySharesInvestmentsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class EquitySharesInvestmentsBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_EquitySharesInvestments_ThreeMonths); + [Obsolete("EquitySharesInvestments was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("EquitySharesInvestments was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_EquitySharesInvestments_TwelveMonths); + [Obsolete("EquitySharesInvestments was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("EquitySharesInvestments was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_EquitySharesInvestments_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_EquitySharesInvestments_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("EquitySharesInvestments was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/ExcessTaxBenefitFromStockBasedCompensationCashFlowStatement.cs b/Common/Data/Fundamental/Generated/ExcessTaxBenefitFromStockBasedCompensationCashFlowStatement.cs index 2b9b1e967fb7..f10c889212ad 100644 --- a/Common/Data/Fundamental/Generated/ExcessTaxBenefitFromStockBasedCompensationCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/ExcessTaxBenefitFromStockBasedCompensationCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/ExciseTaxesIncomeStatement.cs b/Common/Data/Fundamental/Generated/ExciseTaxesIncomeStatement.cs index 4bf61e9d38fb..605d5064cfa1 100644 --- a/Common/Data/Fundamental/Generated/ExciseTaxesIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/ExciseTaxesIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/ExpenseRatio.cs b/Common/Data/Fundamental/Generated/ExpenseRatio.cs index c5c598f11d26..5d84208623f1 100644 --- a/Common/Data/Fundamental/Generated/ExpenseRatio.cs +++ b/Common/Data/Fundamental/Generated/ExpenseRatio.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/ExplorationDevelopmentAndMineralPropertyLeaseExpensesIncomeStatement.cs b/Common/Data/Fundamental/Generated/ExplorationDevelopmentAndMineralPropertyLeaseExpensesIncomeStatement.cs index d9b42490ef2f..1188d341a0ad 100644 --- a/Common/Data/Fundamental/Generated/ExplorationDevelopmentAndMineralPropertyLeaseExpensesIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/ExplorationDevelopmentAndMineralPropertyLeaseExpensesIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/FederalFundsPurchasedAndSecuritiesSoldUnderAgreementToRepurchaseBalanceSheet.cs b/Common/Data/Fundamental/Generated/FederalFundsPurchasedAndSecuritiesSoldUnderAgreementToRepurchaseBalanceSheet.cs index df054d5fc6c5..600cff85eee6 100644 --- a/Common/Data/Fundamental/Generated/FederalFundsPurchasedAndSecuritiesSoldUnderAgreementToRepurchaseBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/FederalFundsPurchasedAndSecuritiesSoldUnderAgreementToRepurchaseBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,40 +37,32 @@ public class FederalFundsPurchasedAndSecuritiesSoldUnderAgreementToRepurchaseBal /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_FederalFundsPurchasedAndSecuritiesSoldUnderAgreementToRepurchase_ThreeMonths); + [Obsolete("FederalFundsPurchasedAndSecuritiesSoldUnderAgreementToRepurchase was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("FederalFundsPurchasedAndSecuritiesSoldUnderAgreementToRepurchase was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_FederalFundsPurchasedAndSecuritiesSoldUnderAgreementToRepurchase_SixMonths); + [Obsolete("FederalFundsPurchasedAndSecuritiesSoldUnderAgreementToRepurchase was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("FederalFundsPurchasedAndSecuritiesSoldUnderAgreementToRepurchase was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_FederalFundsPurchasedAndSecuritiesSoldUnderAgreementToRepurchase_TwelveMonths); + [Obsolete("FederalFundsPurchasedAndSecuritiesSoldUnderAgreementToRepurchase was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("FederalFundsPurchasedAndSecuritiesSoldUnderAgreementToRepurchase was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_FederalFundsPurchasedAndSecuritiesSoldUnderAgreementToRepurchase_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_FederalFundsPurchasedAndSecuritiesSoldUnderAgreementToRepurchase_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("FederalFundsPurchasedAndSecuritiesSoldUnderAgreementToRepurchase was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -79,7 +71,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/FederalFundsPurchasedBalanceSheet.cs b/Common/Data/Fundamental/Generated/FederalFundsPurchasedBalanceSheet.cs index 9ae133b72dc1..c733d02c2c2f 100644 --- a/Common/Data/Fundamental/Generated/FederalFundsPurchasedBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/FederalFundsPurchasedBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/FederalHomeLoanBankStockBalanceSheet.cs b/Common/Data/Fundamental/Generated/FederalHomeLoanBankStockBalanceSheet.cs index da4e6e849efe..49be0706206b 100644 --- a/Common/Data/Fundamental/Generated/FederalHomeLoanBankStockBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/FederalHomeLoanBankStockBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -49,7 +49,8 @@ public class FederalHomeLoanBankStockBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_FederalHomeLoanBankStock_NineMonths); + [Obsolete("FederalHomeLoanBankStock.NineMonths was retired by Morningstar in 2026; use FederalHomeLoanBankStock.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("FederalHomeLoanBankStock.NineMonths was retired by Morningstar in 2026; use FederalHomeLoanBankStock.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -85,7 +86,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/FeeRevenueAndOtherIncomeIncomeStatement.cs b/Common/Data/Fundamental/Generated/FeeRevenueAndOtherIncomeIncomeStatement.cs index e0a0f8ae0f81..5d4c7333392b 100644 --- a/Common/Data/Fundamental/Generated/FeeRevenueAndOtherIncomeIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/FeeRevenueAndOtherIncomeIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/FeesAndCommissionsIncomeStatement.cs b/Common/Data/Fundamental/Generated/FeesAndCommissionsIncomeStatement.cs index c71b6b7cd7dd..5a701ba2c170 100644 --- a/Common/Data/Fundamental/Generated/FeesAndCommissionsIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/FeesAndCommissionsIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/FeesandCommissionExpenseIncomeStatement.cs b/Common/Data/Fundamental/Generated/FeesandCommissionExpenseIncomeStatement.cs index 8c6ba9484d05..818ea0eb959a 100644 --- a/Common/Data/Fundamental/Generated/FeesandCommissionExpenseIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/FeesandCommissionExpenseIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/FeesandCommissionIncomeIncomeStatement.cs b/Common/Data/Fundamental/Generated/FeesandCommissionIncomeIncomeStatement.cs index 292530f70b9a..a4a9630f3c4e 100644 --- a/Common/Data/Fundamental/Generated/FeesandCommissionIncomeIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/FeesandCommissionIncomeIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/FinanceLeaseReceivablesBalanceSheet.cs b/Common/Data/Fundamental/Generated/FinanceLeaseReceivablesBalanceSheet.cs index 14046a1a08af..2b9644c25a6f 100644 --- a/Common/Data/Fundamental/Generated/FinanceLeaseReceivablesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/FinanceLeaseReceivablesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class FinanceLeaseReceivablesBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_FinanceLeaseReceivables_ThreeMonths); + [Obsolete("FinanceLeaseReceivables was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("FinanceLeaseReceivables was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_FinanceLeaseReceivables_TwelveMonths); + [Obsolete("FinanceLeaseReceivables was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("FinanceLeaseReceivables was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_FinanceLeaseReceivables_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_FinanceLeaseReceivables_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("FinanceLeaseReceivables was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/FinanceLeaseReceivablesCurrentBalanceSheet.cs b/Common/Data/Fundamental/Generated/FinanceLeaseReceivablesCurrentBalanceSheet.cs index 39dec3fe4719..e55f8ff5832a 100644 --- a/Common/Data/Fundamental/Generated/FinanceLeaseReceivablesCurrentBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/FinanceLeaseReceivablesCurrentBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class FinanceLeaseReceivablesCurrentBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_FinanceLeaseReceivablesCurrent_ThreeMonths); + [Obsolete("FinanceLeaseReceivablesCurrent was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("FinanceLeaseReceivablesCurrent was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_FinanceLeaseReceivablesCurrent_TwelveMonths); + [Obsolete("FinanceLeaseReceivablesCurrent was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("FinanceLeaseReceivablesCurrent was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_FinanceLeaseReceivablesCurrent_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_FinanceLeaseReceivablesCurrent_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("FinanceLeaseReceivablesCurrent was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/FinanceLeaseReceivablesNonCurrentBalanceSheet.cs b/Common/Data/Fundamental/Generated/FinanceLeaseReceivablesNonCurrentBalanceSheet.cs index 6d71ced2342a..3945f0ff6cf9 100644 --- a/Common/Data/Fundamental/Generated/FinanceLeaseReceivablesNonCurrentBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/FinanceLeaseReceivablesNonCurrentBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class FinanceLeaseReceivablesNonCurrentBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_FinanceLeaseReceivablesNonCurrent_ThreeMonths); + [Obsolete("FinanceLeaseReceivablesNonCurrent was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("FinanceLeaseReceivablesNonCurrent was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_FinanceLeaseReceivablesNonCurrent_TwelveMonths); + [Obsolete("FinanceLeaseReceivablesNonCurrent was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("FinanceLeaseReceivablesNonCurrent was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_FinanceLeaseReceivablesNonCurrent_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_FinanceLeaseReceivablesNonCurrent_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("FinanceLeaseReceivablesNonCurrent was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/FinancialAssetsBalanceSheet.cs b/Common/Data/Fundamental/Generated/FinancialAssetsBalanceSheet.cs index 4160f21ff75b..bfacae566bd2 100644 --- a/Common/Data/Fundamental/Generated/FinancialAssetsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/FinancialAssetsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -43,7 +43,8 @@ public class FinancialAssetsBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_FinancialAssets_NineMonths); + [Obsolete("FinancialAssets.NineMonths was retired by Morningstar in 2026; use FinancialAssets.ThreeMonths (also available: TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("FinancialAssets.NineMonths was retired by Morningstar in 2026; use FinancialAssets.ThreeMonths (also available: TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -79,7 +80,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/FinancialAssetsDesignatedasFairValueThroughProfitorLossTotalBalanceSheet.cs b/Common/Data/Fundamental/Generated/FinancialAssetsDesignatedasFairValueThroughProfitorLossTotalBalanceSheet.cs index 0ead6afe4cef..177a61c4cf0e 100644 --- a/Common/Data/Fundamental/Generated/FinancialAssetsDesignatedasFairValueThroughProfitorLossTotalBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/FinancialAssetsDesignatedasFairValueThroughProfitorLossTotalBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class FinancialAssetsDesignatedasFairValueThroughProfitorLossTotalBalance /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_FinancialAssetsDesignatedasFairValueThroughProfitorLossTotal_ThreeMonths); + [Obsolete("FinancialAssetsDesignatedasFairValueThroughProfitorLossTotal was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("FinancialAssetsDesignatedasFairValueThroughProfitorLossTotal was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_FinancialAssetsDesignatedasFairValueThroughProfitorLossTotal_TwelveMonths); + [Obsolete("FinancialAssetsDesignatedasFairValueThroughProfitorLossTotal was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("FinancialAssetsDesignatedasFairValueThroughProfitorLossTotal was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_FinancialAssetsDesignatedasFairValueThroughProfitorLossTotal_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_FinancialAssetsDesignatedasFairValueThroughProfitorLossTotal_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("FinancialAssetsDesignatedasFairValueThroughProfitorLossTotal was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/FinancialLeverage.cs b/Common/Data/Fundamental/Generated/FinancialLeverage.cs index 1e3695fec2a2..4d7c3bc09c7c 100644 --- a/Common/Data/Fundamental/Generated/FinancialLeverage.cs +++ b/Common/Data/Fundamental/Generated/FinancialLeverage.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -55,19 +55,22 @@ public class FinancialLeverage : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_FinancialLeverage_ThreeMonths); + [Obsolete("FinancialLeverage.ThreeMonths was retired by Morningstar in 2026; use FinancialLeverage.OneYear.")] + public double ThreeMonths => throw new NotSupportedException("FinancialLeverage.ThreeMonths was retired by Morningstar in 2026; use FinancialLeverage.OneYear."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_FinancialLeverage_SixMonths); + [Obsolete("FinancialLeverage.SixMonths was retired by Morningstar in 2026; use FinancialLeverage.OneYear.")] + public double SixMonths => throw new NotSupportedException("FinancialLeverage.SixMonths was retired by Morningstar in 2026; use FinancialLeverage.OneYear."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_FinancialLeverage_NineMonths); + [Obsolete("FinancialLeverage.NineMonths was retired by Morningstar in 2026; use FinancialLeverage.OneYear.")] + public double NineMonths => throw new NotSupportedException("FinancialLeverage.NineMonths was retired by Morningstar in 2026; use FinancialLeverage.OneYear."); /// /// Returns true if the field contains a value for the default period @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1Y",OneYear), new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths) }) + foreach (var kvp in new[] { new Tuple("1Y",OneYear), new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/FinancialLiabilitiesCurrentBalanceSheet.cs b/Common/Data/Fundamental/Generated/FinancialLiabilitiesCurrentBalanceSheet.cs index baee4c24e6e0..c27f82327bd1 100644 --- a/Common/Data/Fundamental/Generated/FinancialLiabilitiesCurrentBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/FinancialLiabilitiesCurrentBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/FinancialLiabilitiesDesignatedasFairValueThroughProfitorLossTotalBalanceSheet.cs b/Common/Data/Fundamental/Generated/FinancialLiabilitiesDesignatedasFairValueThroughProfitorLossTotalBalanceSheet.cs index e294d1bcfc1b..2d4cbd481154 100644 --- a/Common/Data/Fundamental/Generated/FinancialLiabilitiesDesignatedasFairValueThroughProfitorLossTotalBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/FinancialLiabilitiesDesignatedasFairValueThroughProfitorLossTotalBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/FinancialLiabilitiesNonCurrentBalanceSheet.cs b/Common/Data/Fundamental/Generated/FinancialLiabilitiesNonCurrentBalanceSheet.cs index 691b39cfbc0e..041b5a9a2fff 100644 --- a/Common/Data/Fundamental/Generated/FinancialLiabilitiesNonCurrentBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/FinancialLiabilitiesNonCurrentBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/FinancialOrDerivativeInvestmentCurrentLiabilitiesBalanceSheet.cs b/Common/Data/Fundamental/Generated/FinancialOrDerivativeInvestmentCurrentLiabilitiesBalanceSheet.cs index 545563e17f3c..8b2e88db7488 100644 --- a/Common/Data/Fundamental/Generated/FinancialOrDerivativeInvestmentCurrentLiabilitiesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/FinancialOrDerivativeInvestmentCurrentLiabilitiesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/FinancialStatements.cs b/Common/Data/Fundamental/Generated/FinancialStatements.cs index 35928cf155df..2f41fb769bfd 100644 --- a/Common/Data/Fundamental/Generated/FinancialStatements.cs +++ b/Common/Data/Fundamental/Generated/FinancialStatements.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -75,6 +75,7 @@ public class FinancialStatements : FundamentalTimeDependentProperty /// Morningstar DataId: 28000 /// [JsonProperty("28000")] + [Obsolete("PeriodAuditor was retired by Morningstar in 2026 for all periods; no replacement is available.")] public PeriodAuditor PeriodAuditor => _periodAuditor ??= new(_timeProvider, _securityIdentifier); private PeriodAuditor _periodAuditor; @@ -95,6 +96,7 @@ public class FinancialStatements : FundamentalTimeDependentProperty /// Morningstar DataId: 28002 /// [JsonProperty("28002")] + [Obsolete("InventoryValuationMethod was retired by Morningstar in 2026 for all periods; no replacement is available.")] public InventoryValuationMethod InventoryValuationMethod => _inventoryValuationMethod ??= new(_timeProvider, _securityIdentifier); private InventoryValuationMethod _inventoryValuationMethod; @@ -105,6 +107,7 @@ public class FinancialStatements : FundamentalTimeDependentProperty /// Morningstar DataId: 28003 /// [JsonProperty("28003")] + [Obsolete("NumberOfShareHolders was retired by Morningstar in 2026 for all periods; no replacement is available.")] public NumberOfShareHolders NumberOfShareHolders => _numberOfShareHolders ??= new(_timeProvider, _securityIdentifier); private NumberOfShareHolders _numberOfShareHolders; @@ -149,6 +152,306 @@ public class FinancialStatements : FundamentalTimeDependentProperty public CashFlowStatement CashFlowStatement => _cashFlowStatement ??= new(_timeProvider, _securityIdentifier); private CashFlowStatement _cashFlowStatement; + /// + /// Common equity tier 1 capital divided by risk weighted assets + /// + /// + /// Morningstar DataId: 45031 + /// + [JsonProperty("45031")] + public CommonEquityTier1CapitalRatio CommonEquityTier1CapitalRatio => _commonEquityTier1CapitalRatio ??= new(_timeProvider, _securityIdentifier); + private CommonEquityTier1CapitalRatio _commonEquityTier1CapitalRatio; + + /// + /// Common equity tier 1 capital, the highest quality regulatory capital + /// + /// + /// Morningstar DataId: 45032 + /// + [JsonProperty("45032")] + public CommonEquityTier1Capital CommonEquityTier1Capital => _commonEquityTier1Capital ??= new(_timeProvider, _securityIdentifier); + private CommonEquityTier1Capital _commonEquityTier1Capital; + + /// + /// High quality liquid assets divided by projected net cash outflows over thirty days + /// + /// + /// Morningstar DataId: 45033 + /// + [JsonProperty("45033")] + public LiquidityCoverageRatio LiquidityCoverageRatio => _liquidityCoverageRatio ??= new(_timeProvider, _securityIdentifier); + private LiquidityCoverageRatio _liquidityCoverageRatio; + + /// + /// Net interest income divided by average earning assets + /// + /// + /// Morningstar DataId: 45034 + /// + [JsonProperty("45034")] + public NetInterestMargin NetInterestMargin => _netInterestMargin ??= new(_timeProvider, _securityIdentifier); + private NetInterestMargin _netInterestMargin; + + /// + /// The difference between the yield on earning assets and the rate paid on funding + /// + /// + /// Morningstar DataId: 45035 + /// + [JsonProperty("45035")] + public NetInterestSpread NetInterestSpread => _netInterestSpread ??= new(_timeProvider, _securityIdentifier); + private NetInterestSpread _netInterestSpread; + + /// + /// Loans on which the borrower is not making interest or principal payments as scheduled + /// + /// + /// Morningstar DataId: 45036 + /// + [JsonProperty("45036")] + public NonPerformingAssetsLoans NonPerformingAssetsLoans => _nonPerformingAssetsLoans ??= new(_timeProvider, _securityIdentifier); + private NonPerformingAssetsLoans _nonPerformingAssetsLoans; + + /// + /// Assets weighted by credit risk, the denominator of the regulatory capital ratios + /// + /// + /// Morningstar DataId: 45037 + /// + [JsonProperty("45037")] + public RiskWeightedAsset RiskWeightedAsset => _riskWeightedAsset ??= new(_timeProvider, _securityIdentifier); + private RiskWeightedAsset _riskWeightedAsset; + + /// + /// Tier 1 capital divided by risk weighted assets + /// + /// + /// Morningstar DataId: 45038 + /// + [JsonProperty("45038")] + public Tier1CapitalRatio Tier1CapitalRatio => _tier1CapitalRatio ??= new(_timeProvider, _securityIdentifier); + private Tier1CapitalRatio _tier1CapitalRatio; + + /// + /// Tier 1 capital: common equity, qualifying preferred equity and retained earnings + /// + /// + /// Morningstar DataId: 45039 + /// + [JsonProperty("45039")] + public Tier1Capital Tier1Capital => _tier1Capital ??= new(_timeProvider, _securityIdentifier); + private Tier1Capital _tier1Capital; + + /// + /// Tier 1 capital divided by average total consolidated assets + /// + /// + /// Morningstar DataId: 45040 + /// + [JsonProperty("45040")] + public Tier1LeverageRatio Tier1LeverageRatio => _tier1LeverageRatio ??= new(_timeProvider, _securityIdentifier); + private Tier1LeverageRatio _tier1LeverageRatio; + + /// + /// Tier 2 capital divided by risk weighted assets + /// + /// + /// Morningstar DataId: 45041 + /// + [JsonProperty("45041")] + public Tier2CapitalRatio Tier2CapitalRatio => _tier2CapitalRatio ??= new(_timeProvider, _securityIdentifier); + private Tier2CapitalRatio _tier2CapitalRatio; + + /// + /// Tier 2 capital: subordinated debt, cumulative preferred stock and loan loss allowances + /// + /// + /// Morningstar DataId: 45042 + /// + [JsonProperty("45042")] + public Tier2Capital Tier2Capital => _tier2Capital ??= new(_timeProvider, _securityIdentifier); + private Tier2Capital _tier2Capital; + + /// + /// The sum of tier 1 and tier 2 capital, in currency rather than as a ratio + /// + /// + /// Morningstar DataId: 45043 + /// + [JsonProperty("45043")] + public TotalCapital TotalCapital => _totalCapital ??= new(_timeProvider, _securityIdentifier); + private TotalCapital _totalCapital; + + /// + /// Net asset value adjusted per the reporting standard, on a basic share basis + /// + /// + /// Morningstar DataId: 45044 + /// + [JsonProperty("45044")] + public AdjustedBasicNetAssetValue AdjustedBasicNetAssetValue => _adjustedBasicNetAssetValue ??= new(_timeProvider, _securityIdentifier); + private AdjustedBasicNetAssetValue _adjustedBasicNetAssetValue; + + /// + /// Net asset value adjusted per the reporting standard, on a diluted share basis + /// + /// + /// Morningstar DataId: 45045 + /// + [JsonProperty("45045")] + public AdjustedDilutedNetAssetValue AdjustedDilutedNetAssetValue => _adjustedDilutedNetAssetValue ??= new(_timeProvider, _securityIdentifier); + private AdjustedDilutedNetAssetValue _adjustedDilutedNetAssetValue; + + /// + /// EPRA net disposal value, the shareholder value if assets were sold + /// + /// + /// Morningstar DataId: 45046 + /// + [JsonProperty("45046")] + public EPRANetDisposalValue EPRANetDisposalValue => _ePRANetDisposalValue ??= new(_timeProvider, _securityIdentifier); + private EPRANetDisposalValue _ePRANetDisposalValue; + + /// + /// EPRA net reinstatement value, the value required to rebuild the entity + /// + /// + /// Morningstar DataId: 45047 + /// + [JsonProperty("45047")] + public EPRANetReinstatementValue EPRANetReinstatementValue => _ePRANetReinstatementValue ??= new(_timeProvider, _securityIdentifier); + private EPRANetReinstatementValue _ePRANetReinstatementValue; + + /// + /// EPRA net tangible assets, assuming the entity buys and sells assets over time + /// + /// + /// Morningstar DataId: 45048 + /// + [JsonProperty("45048")] + public EPRANetTangibleAssets EPRANetTangibleAssets => _ePRANetTangibleAssets ??= new(_timeProvider, _securityIdentifier); + private EPRANetTangibleAssets _ePRANetTangibleAssets; + + /// + /// Adjusted funds from operations as reported, on a basic share basis + /// + /// + /// Morningstar DataId: 45049 + /// + [JsonProperty("45049")] + public ReportedBasicAdjustedFundFromOperations ReportedBasicAdjustedFundFromOperations => _reportedBasicAdjustedFundFromOperations ??= new(_timeProvider, _securityIdentifier); + private ReportedBasicAdjustedFundFromOperations _reportedBasicAdjustedFundFromOperations; + + /// + /// Adjusted funds from operations as reported, on a diluted share basis + /// + /// + /// Morningstar DataId: 45050 + /// + [JsonProperty("45050")] + public ReportedDilutedAdjustedFundFromOperations ReportedDilutedAdjustedFundFromOperations => _reportedDilutedAdjustedFundFromOperations ??= new(_timeProvider, _securityIdentifier); + private ReportedDilutedAdjustedFundFromOperations _reportedDilutedAdjustedFundFromOperations; + + /// + /// Funds from operations as reported, on a diluted share basis + /// + /// + /// Morningstar DataId: 45051 + /// + [JsonProperty("45051")] + public ReportedDilutedFundFromOperations ReportedDilutedFundFromOperations => _reportedDilutedFundFromOperations ??= new(_timeProvider, _securityIdentifier); + private ReportedDilutedFundFromOperations _reportedDilutedFundFromOperations; + + /// + /// Adjusted net asset value per basic share + /// + /// + /// Morningstar DataId: 45052 + /// + [JsonProperty("45052")] + public AdjustedBasicNetAssetValuePerShare AdjustedBasicNetAssetValuePerShare => _adjustedBasicNetAssetValuePerShare ??= new(_timeProvider, _securityIdentifier); + private AdjustedBasicNetAssetValuePerShare _adjustedBasicNetAssetValuePerShare; + + /// + /// Adjusted net asset value per diluted share + /// + /// + /// Morningstar DataId: 45053 + /// + [JsonProperty("45053")] + public AdjustedDilutedNetAssetValuePerShare AdjustedDilutedNetAssetValuePerShare => _adjustedDilutedNetAssetValuePerShare ??= new(_timeProvider, _securityIdentifier); + private AdjustedDilutedNetAssetValuePerShare _adjustedDilutedNetAssetValuePerShare; + + /// + /// EPRA net disposal value per share + /// + /// + /// Morningstar DataId: 45054 + /// + [JsonProperty("45054")] + public EPRANetDisposalValuePerShare EPRANetDisposalValuePerShare => _ePRANetDisposalValuePerShare ??= new(_timeProvider, _securityIdentifier); + private EPRANetDisposalValuePerShare _ePRANetDisposalValuePerShare; + + /// + /// EPRA net reinstatement value per share + /// + /// + /// Morningstar DataId: 45055 + /// + [JsonProperty("45055")] + public EPRANetReinstatementValuePerShare EPRANetReinstatementValuePerShare => _ePRANetReinstatementValuePerShare ??= new(_timeProvider, _securityIdentifier); + private EPRANetReinstatementValuePerShare _ePRANetReinstatementValuePerShare; + + /// + /// EPRA net tangible assets per share + /// + /// + /// Morningstar DataId: 45056 + /// + [JsonProperty("45056")] + public EPRANetTangibleAssetsPerShare EPRANetTangibleAssetsPerShare => _ePRANetTangibleAssetsPerShare ??= new(_timeProvider, _securityIdentifier); + private EPRANetTangibleAssetsPerShare _ePRANetTangibleAssetsPerShare; + + /// + /// Adjusted funds from operations per basic share, as reported + /// + /// + /// Morningstar DataId: 45057 + /// + [JsonProperty("45057")] + public ReportedBasicAdjustedFundFromOperationsPerShare ReportedBasicAdjustedFundFromOperationsPerShare => _reportedBasicAdjustedFundFromOperationsPerShare ??= new(_timeProvider, _securityIdentifier); + private ReportedBasicAdjustedFundFromOperationsPerShare _reportedBasicAdjustedFundFromOperationsPerShare; + + /// + /// Funds from operations per basic share, as reported + /// + /// + /// Morningstar DataId: 45058 + /// + [JsonProperty("45058")] + public ReportedBasicFundFromOperationsPerShare ReportedBasicFundFromOperationsPerShare => _reportedBasicFundFromOperationsPerShare ??= new(_timeProvider, _securityIdentifier); + private ReportedBasicFundFromOperationsPerShare _reportedBasicFundFromOperationsPerShare; + + /// + /// Adjusted funds from operations per diluted share, as reported + /// + /// + /// Morningstar DataId: 45059 + /// + [JsonProperty("45059")] + public ReportedDilutedAdjustedFundFromOperationsPerShare ReportedDilutedAdjustedFundFromOperationsPerShare => _reportedDilutedAdjustedFundFromOperationsPerShare ??= new(_timeProvider, _securityIdentifier); + private ReportedDilutedAdjustedFundFromOperationsPerShare _reportedDilutedAdjustedFundFromOperationsPerShare; + + /// + /// Funds from operations per diluted share, as reported + /// + /// + /// Morningstar DataId: 45060 + /// + [JsonProperty("45060")] + public ReportedDilutedFundFromOperationsPerShare ReportedDilutedFundFromOperationsPerShare => _reportedDilutedFundFromOperationsPerShare ??= new(_timeProvider, _securityIdentifier); + private ReportedDilutedFundFromOperationsPerShare _reportedDilutedFundFromOperationsPerShare; + /// /// Creates a new instance for the given time and security /// diff --git a/Common/Data/Fundamental/Generated/FinancialStatementsAccessionNumber.cs b/Common/Data/Fundamental/Generated/FinancialStatementsAccessionNumber.cs index 9a6dad123565..73dd695e1118 100644 --- a/Common/Data/Fundamental/Generated/FinancialStatementsAccessionNumber.cs +++ b/Common/Data/Fundamental/Generated/FinancialStatementsAccessionNumber.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/FinancialStatementsFileDate.cs b/Common/Data/Fundamental/Generated/FinancialStatementsFileDate.cs index 3e759f3f8697..f48db6d73dde 100644 --- a/Common/Data/Fundamental/Generated/FinancialStatementsFileDate.cs +++ b/Common/Data/Fundamental/Generated/FinancialStatementsFileDate.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class FinancialStatementsFileDate : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public DateTime OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_FileDate_OneMonth); + [Obsolete("FileDate.OneMonth was retired by Morningstar in 2026; use FileDate.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public DateTime OneMonth => throw new NotSupportedException("FileDate.OneMonth was retired by Morningstar in 2026; use FileDate.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public DateTime TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_FileDate_TwoMonths); + [Obsolete("FileDate.TwoMonths was retired by Morningstar in 2026; use FileDate.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public DateTime TwoMonths => throw new NotSupportedException("FileDate.TwoMonths was retired by Morningstar in 2026; use FileDate.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class FinancialStatementsFileDate : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public DateTime NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_FileDate_NineMonths); + [Obsolete("FileDate.NineMonths was retired by Morningstar in 2026; use FileDate.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public DateTime NineMonths => throw new NotSupportedException("FileDate.NineMonths was retired by Morningstar in 2026; use FileDate.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field diff --git a/Common/Data/Fundamental/Generated/FinishedGoodsBalanceSheet.cs b/Common/Data/Fundamental/Generated/FinishedGoodsBalanceSheet.cs index 99fd332c417d..7e1b44275a91 100644 --- a/Common/Data/Fundamental/Generated/FinishedGoodsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/FinishedGoodsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class FinishedGoodsBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_FinishedGoods_OneMonth); + [Obsolete("FinishedGoods was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("FinishedGoods was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_FinishedGoods_TwoMonths); + [Obsolete("FinishedGoods was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("FinishedGoods was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_FinishedGoods_ThreeMonths); + [Obsolete("FinishedGoods was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("FinishedGoods was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_FinishedGoods_SixMonths); + [Obsolete("FinishedGoods was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("FinishedGoods was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_FinishedGoods_NineMonths); + [Obsolete("FinishedGoods was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("FinishedGoods was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_FinishedGoods_TwelveMonths); + [Obsolete("FinishedGoods was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("FinishedGoods was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_FinishedGoods_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_FinishedGoods_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("FinishedGoods was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/FixAssetsTuronver.cs b/Common/Data/Fundamental/Generated/FixAssetsTuronver.cs index f2496ff7533f..d2fdeb8dc059 100644 --- a/Common/Data/Fundamental/Generated/FixAssetsTuronver.cs +++ b/Common/Data/Fundamental/Generated/FixAssetsTuronver.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -43,13 +43,15 @@ public class FixAssetsTuronver : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_FixAssetsTuronver_ThreeMonths); + [Obsolete("FixAssetsTuronver.ThreeMonths was retired by Morningstar in 2026; use FixAssetsTuronver.OneYear.")] + public double ThreeMonths => throw new NotSupportedException("FixAssetsTuronver.ThreeMonths was retired by Morningstar in 2026; use FixAssetsTuronver.OneYear."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_FixAssetsTuronver_SixMonths); + [Obsolete("FixAssetsTuronver.SixMonths was retired by Morningstar in 2026; use FixAssetsTuronver.OneYear.")] + public double SixMonths => throw new NotSupportedException("FixAssetsTuronver.SixMonths was retired by Morningstar in 2026; use FixAssetsTuronver.OneYear."); /// /// Returns true if the field contains a value for the default period @@ -79,7 +81,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1Y",OneYear), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths) }) + foreach (var kvp in new[] { new Tuple("1Y",OneYear) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/FixedAssetsRevaluationReserveBalanceSheet.cs b/Common/Data/Fundamental/Generated/FixedAssetsRevaluationReserveBalanceSheet.cs index b957f4a5a422..c3a423921e7d 100644 --- a/Common/Data/Fundamental/Generated/FixedAssetsRevaluationReserveBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/FixedAssetsRevaluationReserveBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class FixedAssetsRevaluationReserveBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_FixedAssetsRevaluationReserve_ThreeMonths); + [Obsolete("FixedAssetsRevaluationReserve was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("FixedAssetsRevaluationReserve was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_FixedAssetsRevaluationReserve_TwelveMonths); + [Obsolete("FixedAssetsRevaluationReserve was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("FixedAssetsRevaluationReserve was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_FixedAssetsRevaluationReserve_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_FixedAssetsRevaluationReserve_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("FixedAssetsRevaluationReserve was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/FlightFleetVehicleAndRelatedEquipmentsBalanceSheet.cs b/Common/Data/Fundamental/Generated/FlightFleetVehicleAndRelatedEquipmentsBalanceSheet.cs index 6350bdeba4cf..b73b7fdb029b 100644 --- a/Common/Data/Fundamental/Generated/FlightFleetVehicleAndRelatedEquipmentsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/FlightFleetVehicleAndRelatedEquipmentsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,40 +37,32 @@ public class FlightFleetVehicleAndRelatedEquipmentsBalanceSheet : MultiPeriodFie /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_FlightFleetVehicleAndRelatedEquipments_ThreeMonths); + [Obsolete("FlightFleetVehicleAndRelatedEquipments was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("FlightFleetVehicleAndRelatedEquipments was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_FlightFleetVehicleAndRelatedEquipments_SixMonths); + [Obsolete("FlightFleetVehicleAndRelatedEquipments was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("FlightFleetVehicleAndRelatedEquipments was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_FlightFleetVehicleAndRelatedEquipments_TwelveMonths); + [Obsolete("FlightFleetVehicleAndRelatedEquipments was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("FlightFleetVehicleAndRelatedEquipments was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_FlightFleetVehicleAndRelatedEquipments_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_FlightFleetVehicleAndRelatedEquipments_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("FlightFleetVehicleAndRelatedEquipments was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -79,7 +71,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/ForeclosedAssetsBalanceSheet.cs b/Common/Data/Fundamental/Generated/ForeclosedAssetsBalanceSheet.cs index 46053c8aa5bf..f3951df21e79 100644 --- a/Common/Data/Fundamental/Generated/ForeclosedAssetsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/ForeclosedAssetsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/ForeignCurrencyTranslationAdjustmentsBalanceSheet.cs b/Common/Data/Fundamental/Generated/ForeignCurrencyTranslationAdjustmentsBalanceSheet.cs index bb55c303f15c..98c1eb1e47da 100644 --- a/Common/Data/Fundamental/Generated/ForeignCurrencyTranslationAdjustmentsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/ForeignCurrencyTranslationAdjustmentsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,52 +37,46 @@ public class ForeignCurrencyTranslationAdjustmentsBalanceSheet : MultiPeriodFiel /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ForeignCurrencyTranslationAdjustments_TwoMonths); + [Obsolete("ForeignCurrencyTranslationAdjustments was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("ForeignCurrencyTranslationAdjustments was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ForeignCurrencyTranslationAdjustments_ThreeMonths); + [Obsolete("ForeignCurrencyTranslationAdjustments was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("ForeignCurrencyTranslationAdjustments was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ForeignCurrencyTranslationAdjustments_SixMonths); + [Obsolete("ForeignCurrencyTranslationAdjustments was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("ForeignCurrencyTranslationAdjustments was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ForeignCurrencyTranslationAdjustments_NineMonths); + [Obsolete("ForeignCurrencyTranslationAdjustments was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("ForeignCurrencyTranslationAdjustments was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ForeignCurrencyTranslationAdjustments_TwelveMonths); + [Obsolete("ForeignCurrencyTranslationAdjustments was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("ForeignCurrencyTranslationAdjustments was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ForeignCurrencyTranslationAdjustments_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ForeignCurrencyTranslationAdjustments_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("ForeignCurrencyTranslationAdjustments was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -91,7 +85,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/FuelAndPurchasePowerIncomeStatement.cs b/Common/Data/Fundamental/Generated/FuelAndPurchasePowerIncomeStatement.cs index faaa32ad4819..9565c95a35c3 100644 --- a/Common/Data/Fundamental/Generated/FuelAndPurchasePowerIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/FuelAndPurchasePowerIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class FuelAndPurchasePowerIncomeStatement : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_FuelAndPurchasePower_ThreeMonths); + [Obsolete("FuelAndPurchasePower was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("FuelAndPurchasePower was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_FuelAndPurchasePower_SixMonths); + [Obsolete("FuelAndPurchasePower was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("FuelAndPurchasePower was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_FuelAndPurchasePower_NineMonths); + [Obsolete("FuelAndPurchasePower was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("FuelAndPurchasePower was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_FuelAndPurchasePower_TwelveMonths); + [Obsolete("FuelAndPurchasePower was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("FuelAndPurchasePower was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_FuelAndPurchasePower_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_FuelAndPurchasePower_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("FuelAndPurchasePower was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/FuelIncomeStatement.cs b/Common/Data/Fundamental/Generated/FuelIncomeStatement.cs index 4578f6fe45ab..48d463723ee1 100644 --- a/Common/Data/Fundamental/Generated/FuelIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/FuelIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class FuelIncomeStatement : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_Fuel_OneMonth); + [Obsolete("Fuel was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("Fuel was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_Fuel_TwoMonths); + [Obsolete("Fuel was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("Fuel was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_Fuel_ThreeMonths); + [Obsolete("Fuel was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("Fuel was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_Fuel_SixMonths); + [Obsolete("Fuel was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("Fuel was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_Fuel_NineMonths); + [Obsolete("Fuel was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("Fuel was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_Fuel_TwelveMonths); + [Obsolete("Fuel was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("Fuel was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_Fuel_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_Fuel_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("Fuel was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/FundFromOperationCashFlowStatement.cs b/Common/Data/Fundamental/Generated/FundFromOperationCashFlowStatement.cs index 0df8e8bd4a73..746a398907e7 100644 --- a/Common/Data/Fundamental/Generated/FundFromOperationCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/FundFromOperationCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/FuturePolicyBenefitsBalanceSheet.cs b/Common/Data/Fundamental/Generated/FuturePolicyBenefitsBalanceSheet.cs index c277e63c2f28..76518cd608a4 100644 --- a/Common/Data/Fundamental/Generated/FuturePolicyBenefitsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/FuturePolicyBenefitsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class FuturePolicyBenefitsBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_FuturePolicyBenefits_ThreeMonths); + [Obsolete("FuturePolicyBenefits was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("FuturePolicyBenefits was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_FuturePolicyBenefits_TwelveMonths); + [Obsolete("FuturePolicyBenefits was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("FuturePolicyBenefits was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_FuturePolicyBenefits_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_FuturePolicyBenefits_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("FuturePolicyBenefits was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/GainLossOnExtinguishmentofDebtSupplementalIncomeStatement.cs b/Common/Data/Fundamental/Generated/GainLossOnExtinguishmentofDebtSupplementalIncomeStatement.cs new file mode 100644 index 000000000000..7f444d5c237b --- /dev/null +++ b/Common/Data/Fundamental/Generated/GainLossOnExtinguishmentofDebtSupplementalIncomeStatement.cs @@ -0,0 +1,119 @@ +/* + * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. + * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * +*/ + +using System; +using System.Linq; +using Python.Runtime; +using Newtonsoft.Json; +using System.Collections.Generic; +using QuantConnect.Data.UniverseSelection; + +namespace QuantConnect.Data.Fundamental +{ + /// + /// Gains or losses arising from the extinguishment of debt. It is a supplemental value which would be reported outside consolidated statements. + /// + public class GainLossOnExtinguishmentofDebtSupplementalIncomeStatement : MultiPeriodField + { + /// + /// The default period + /// + protected override string DefaultPeriod => "TwelveMonths"; + + /// + /// Gets/sets the ThreeMonths period value for the field + /// + [JsonProperty("3M")] + public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainLossOnExtinguishmentofDebtSupplemental_ThreeMonths); + + /// + /// Gets/sets the SixMonths period value for the field + /// + [JsonProperty("6M")] + public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainLossOnExtinguishmentofDebtSupplemental_SixMonths); + + /// + /// Gets/sets the NineMonths period value for the field + /// + [JsonProperty("9M")] + public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainLossOnExtinguishmentofDebtSupplemental_NineMonths); + + /// + /// Gets/sets the TwelveMonths period value for the field + /// + [JsonProperty("12M")] + public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainLossOnExtinguishmentofDebtSupplemental_TwelveMonths); + + /// + /// Returns true if the field contains a value for the default period + /// + public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainLossOnExtinguishmentofDebtSupplemental_TwelveMonths)); + + /// + /// Returns the default value for the field + /// + public override double Value + { + get + { + var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainLossOnExtinguishmentofDebtSupplemental_TwelveMonths); + if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) + { + return defaultValue; + } + return base.Value; + } + } + + /// + /// Gets a dictionary of period names and values for the field + /// + /// The dictionary of period names and values + public override IReadOnlyDictionary GetPeriodValues() + { + var result = new Dictionary(); + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + { + if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) + { + result[kvp.Item1] = kvp.Item2; + } + } + return result; + } + + /// + /// Gets the value of the field for the requested period + /// + /// The requested period + /// The value for the period + public override double GetPeriodValue(string period) => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, Enum.Parse($"FinancialStatements_IncomeStatement_GainLossOnExtinguishmentofDebtSupplemental_{ConvertPeriod(period)}")); + + /// + /// Creates a new empty instance + /// + public GainLossOnExtinguishmentofDebtSupplementalIncomeStatement() + { + } + + /// + /// Creates a new instance for the given time and security + /// + public GainLossOnExtinguishmentofDebtSupplementalIncomeStatement(ITimeProvider timeProvider, SecurityIdentifier securityIdentifier) : base(timeProvider, securityIdentifier) + { + } + } +} diff --git a/Common/Data/Fundamental/Generated/GainLossonDerecognitionofAvailableForSaleFinancialAssetsIncomeStatement.cs b/Common/Data/Fundamental/Generated/GainLossonDerecognitionofAvailableForSaleFinancialAssetsIncomeStatement.cs index a2465e057eb8..e513d458a16f 100644 --- a/Common/Data/Fundamental/Generated/GainLossonDerecognitionofAvailableForSaleFinancialAssetsIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/GainLossonDerecognitionofAvailableForSaleFinancialAssetsIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class GainLossonDerecognitionofAvailableForSaleFinancialAssetsIncomeState /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainLossonDerecognitionofAvailableForSaleFinancialAssets_ThreeMonths); + [Obsolete("GainLossonDerecognitionofAvailableForSaleFinancialAssets was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("GainLossonDerecognitionofAvailableForSaleFinancialAssets was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainLossonDerecognitionofAvailableForSaleFinancialAssets_SixMonths); + [Obsolete("GainLossonDerecognitionofAvailableForSaleFinancialAssets was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("GainLossonDerecognitionofAvailableForSaleFinancialAssets was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainLossonDerecognitionofAvailableForSaleFinancialAssets_NineMonths); + [Obsolete("GainLossonDerecognitionofAvailableForSaleFinancialAssets was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("GainLossonDerecognitionofAvailableForSaleFinancialAssets was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainLossonDerecognitionofAvailableForSaleFinancialAssets_TwelveMonths); + [Obsolete("GainLossonDerecognitionofAvailableForSaleFinancialAssets was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("GainLossonDerecognitionofAvailableForSaleFinancialAssets was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainLossonDerecognitionofAvailableForSaleFinancialAssets_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainLossonDerecognitionofAvailableForSaleFinancialAssets_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("GainLossonDerecognitionofAvailableForSaleFinancialAssets was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/GainLossonFinancialInstrumentsDesignatedasCashFlowHedgesIncomeStatement.cs b/Common/Data/Fundamental/Generated/GainLossonFinancialInstrumentsDesignatedasCashFlowHedgesIncomeStatement.cs index eb0f5a16eeaf..f29889ccecea 100644 --- a/Common/Data/Fundamental/Generated/GainLossonFinancialInstrumentsDesignatedasCashFlowHedgesIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/GainLossonFinancialInstrumentsDesignatedasCashFlowHedgesIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class GainLossonFinancialInstrumentsDesignatedasCashFlowHedgesIncomeState /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainLossonFinancialInstrumentsDesignatedasCashFlowHedges_ThreeMonths); + [Obsolete("GainLossonFinancialInstrumentsDesignatedasCashFlowHedges was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("GainLossonFinancialInstrumentsDesignatedasCashFlowHedges was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainLossonFinancialInstrumentsDesignatedasCashFlowHedges_SixMonths); + [Obsolete("GainLossonFinancialInstrumentsDesignatedasCashFlowHedges was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("GainLossonFinancialInstrumentsDesignatedasCashFlowHedges was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainLossonFinancialInstrumentsDesignatedasCashFlowHedges_NineMonths); + [Obsolete("GainLossonFinancialInstrumentsDesignatedasCashFlowHedges was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("GainLossonFinancialInstrumentsDesignatedasCashFlowHedges was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainLossonFinancialInstrumentsDesignatedasCashFlowHedges_TwelveMonths); + [Obsolete("GainLossonFinancialInstrumentsDesignatedasCashFlowHedges was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("GainLossonFinancialInstrumentsDesignatedasCashFlowHedges was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainLossonFinancialInstrumentsDesignatedasCashFlowHedges_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainLossonFinancialInstrumentsDesignatedasCashFlowHedges_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("GainLossonFinancialInstrumentsDesignatedasCashFlowHedges was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/GainLossonSaleofAssetsIncomeStatement.cs b/Common/Data/Fundamental/Generated/GainLossonSaleofAssetsIncomeStatement.cs index a1cea8b6a84b..35916a465346 100644 --- a/Common/Data/Fundamental/Generated/GainLossonSaleofAssetsIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/GainLossonSaleofAssetsIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,52 +37,46 @@ public class GainLossonSaleofAssetsIncomeStatement : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainLossonSaleofAssets_OneMonth); + [Obsolete("GainLossonSaleofAssets was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("GainLossonSaleofAssets was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainLossonSaleofAssets_ThreeMonths); + [Obsolete("GainLossonSaleofAssets was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("GainLossonSaleofAssets was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainLossonSaleofAssets_SixMonths); + [Obsolete("GainLossonSaleofAssets was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("GainLossonSaleofAssets was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainLossonSaleofAssets_NineMonths); + [Obsolete("GainLossonSaleofAssets was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("GainLossonSaleofAssets was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainLossonSaleofAssets_TwelveMonths); + [Obsolete("GainLossonSaleofAssets was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("GainLossonSaleofAssets was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainLossonSaleofAssets_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainLossonSaleofAssets_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("GainLossonSaleofAssets was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -91,7 +85,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/GainOnSaleOfBusinessIncomeStatement.cs b/Common/Data/Fundamental/Generated/GainOnSaleOfBusinessIncomeStatement.cs index 18cd28f04eec..2d7656207818 100644 --- a/Common/Data/Fundamental/Generated/GainOnSaleOfBusinessIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/GainOnSaleOfBusinessIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class GainOnSaleOfBusinessIncomeStatement : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainOnSaleOfBusiness_OneMonth); + [Obsolete("GainOnSaleOfBusiness was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("GainOnSaleOfBusiness was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainOnSaleOfBusiness_TwoMonths); + [Obsolete("GainOnSaleOfBusiness was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("GainOnSaleOfBusiness was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainOnSaleOfBusiness_ThreeMonths); + [Obsolete("GainOnSaleOfBusiness was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("GainOnSaleOfBusiness was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainOnSaleOfBusiness_SixMonths); + [Obsolete("GainOnSaleOfBusiness was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("GainOnSaleOfBusiness was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainOnSaleOfBusiness_NineMonths); + [Obsolete("GainOnSaleOfBusiness was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("GainOnSaleOfBusiness was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainOnSaleOfBusiness_TwelveMonths); + [Obsolete("GainOnSaleOfBusiness was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("GainOnSaleOfBusiness was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainOnSaleOfBusiness_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainOnSaleOfBusiness_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("GainOnSaleOfBusiness was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/GainOnSaleOfPPEIncomeStatement.cs b/Common/Data/Fundamental/Generated/GainOnSaleOfPPEIncomeStatement.cs index 30d90e530e66..53fca71431c1 100644 --- a/Common/Data/Fundamental/Generated/GainOnSaleOfPPEIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/GainOnSaleOfPPEIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,52 +37,46 @@ public class GainOnSaleOfPPEIncomeStatement : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainOnSaleOfPPE_OneMonth); + [Obsolete("GainOnSaleOfPPE was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("GainOnSaleOfPPE was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainOnSaleOfPPE_ThreeMonths); + [Obsolete("GainOnSaleOfPPE was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("GainOnSaleOfPPE was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainOnSaleOfPPE_SixMonths); + [Obsolete("GainOnSaleOfPPE was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("GainOnSaleOfPPE was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainOnSaleOfPPE_NineMonths); + [Obsolete("GainOnSaleOfPPE was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("GainOnSaleOfPPE was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainOnSaleOfPPE_TwelveMonths); + [Obsolete("GainOnSaleOfPPE was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("GainOnSaleOfPPE was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainOnSaleOfPPE_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainOnSaleOfPPE_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("GainOnSaleOfPPE was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -91,7 +85,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/GainOnSaleOfSecurityIncomeStatement.cs b/Common/Data/Fundamental/Generated/GainOnSaleOfSecurityIncomeStatement.cs index 6a5150d939e6..dbc43ab3c40b 100644 --- a/Common/Data/Fundamental/Generated/GainOnSaleOfSecurityIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/GainOnSaleOfSecurityIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class GainOnSaleOfSecurityIncomeStatement : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainOnSaleOfSecurity_OneMonth); + [Obsolete("GainOnSaleOfSecurity was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("GainOnSaleOfSecurity was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainOnSaleOfSecurity_TwoMonths); + [Obsolete("GainOnSaleOfSecurity was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("GainOnSaleOfSecurity was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainOnSaleOfSecurity_ThreeMonths); + [Obsolete("GainOnSaleOfSecurity was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("GainOnSaleOfSecurity was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainOnSaleOfSecurity_SixMonths); + [Obsolete("GainOnSaleOfSecurity was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("GainOnSaleOfSecurity was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainOnSaleOfSecurity_NineMonths); + [Obsolete("GainOnSaleOfSecurity was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("GainOnSaleOfSecurity was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainOnSaleOfSecurity_TwelveMonths); + [Obsolete("GainOnSaleOfSecurity was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("GainOnSaleOfSecurity was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainOnSaleOfSecurity_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GainOnSaleOfSecurity_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("GainOnSaleOfSecurity was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/GainonSaleofLoansIncomeStatement.cs b/Common/Data/Fundamental/Generated/GainonSaleofLoansIncomeStatement.cs index 128fc5248049..b495f6f037fa 100644 --- a/Common/Data/Fundamental/Generated/GainonSaleofLoansIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/GainonSaleofLoansIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/GainsLossesNotAffectingRetainedEarningsBalanceSheet.cs b/Common/Data/Fundamental/Generated/GainsLossesNotAffectingRetainedEarningsBalanceSheet.cs index 8ce2b747aad0..8872b2539216 100644 --- a/Common/Data/Fundamental/Generated/GainsLossesNotAffectingRetainedEarningsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/GainsLossesNotAffectingRetainedEarningsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class GainsLossesNotAffectingRetainedEarningsBalanceSheet : MultiPeriodFi /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_GainsLossesNotAffectingRetainedEarnings_OneMonth); + [Obsolete("GainsLossesNotAffectingRetainedEarnings.OneMonth was retired by Morningstar in 2026; use GainsLossesNotAffectingRetainedEarnings.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("GainsLossesNotAffectingRetainedEarnings.OneMonth was retired by Morningstar in 2026; use GainsLossesNotAffectingRetainedEarnings.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_GainsLossesNotAffectingRetainedEarnings_TwoMonths); + [Obsolete("GainsLossesNotAffectingRetainedEarnings.TwoMonths was retired by Morningstar in 2026; use GainsLossesNotAffectingRetainedEarnings.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("GainsLossesNotAffectingRetainedEarnings.TwoMonths was retired by Morningstar in 2026; use GainsLossesNotAffectingRetainedEarnings.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class GainsLossesNotAffectingRetainedEarningsBalanceSheet : MultiPeriodFi /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_GainsLossesNotAffectingRetainedEarnings_NineMonths); + [Obsolete("GainsLossesNotAffectingRetainedEarnings.NineMonths was retired by Morningstar in 2026; use GainsLossesNotAffectingRetainedEarnings.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("GainsLossesNotAffectingRetainedEarnings.NineMonths was retired by Morningstar in 2026; use GainsLossesNotAffectingRetainedEarnings.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/GainsLossesonFinancialInstrumentsDuetoFairValueAdjustmentsinHedgeAccountingTotalIncomeStatement.cs b/Common/Data/Fundamental/Generated/GainsLossesonFinancialInstrumentsDuetoFairValueAdjustmentsinHedgeAccountingTotalIncomeStatement.cs index 965292c76d7d..c4b7e5527475 100644 --- a/Common/Data/Fundamental/Generated/GainsLossesonFinancialInstrumentsDuetoFairValueAdjustmentsinHedgeAccountingTotalIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/GainsLossesonFinancialInstrumentsDuetoFairValueAdjustmentsinHedgeAccountingTotalIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/GoodwillAndOtherIntangibleAssetsBalanceSheet.cs b/Common/Data/Fundamental/Generated/GoodwillAndOtherIntangibleAssetsBalanceSheet.cs index c4fc45ccd796..87f318343ea5 100644 --- a/Common/Data/Fundamental/Generated/GoodwillAndOtherIntangibleAssetsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/GoodwillAndOtherIntangibleAssetsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class GoodwillAndOtherIntangibleAssetsBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_GoodwillAndOtherIntangibleAssets_OneMonth); + [Obsolete("GoodwillAndOtherIntangibleAssets.OneMonth was retired by Morningstar in 2026; use GoodwillAndOtherIntangibleAssets.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("GoodwillAndOtherIntangibleAssets.OneMonth was retired by Morningstar in 2026; use GoodwillAndOtherIntangibleAssets.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_GoodwillAndOtherIntangibleAssets_TwoMonths); + [Obsolete("GoodwillAndOtherIntangibleAssets.TwoMonths was retired by Morningstar in 2026; use GoodwillAndOtherIntangibleAssets.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("GoodwillAndOtherIntangibleAssets.TwoMonths was retired by Morningstar in 2026; use GoodwillAndOtherIntangibleAssets.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class GoodwillAndOtherIntangibleAssetsBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_GoodwillAndOtherIntangibleAssets_NineMonths); + [Obsolete("GoodwillAndOtherIntangibleAssets.NineMonths was retired by Morningstar in 2026; use GoodwillAndOtherIntangibleAssets.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("GoodwillAndOtherIntangibleAssets.NineMonths was retired by Morningstar in 2026; use GoodwillAndOtherIntangibleAssets.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/GoodwillBalanceSheet.cs b/Common/Data/Fundamental/Generated/GoodwillBalanceSheet.cs index 11c352d6b0a4..383f41464900 100644 --- a/Common/Data/Fundamental/Generated/GoodwillBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/GoodwillBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class GoodwillBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_Goodwill_OneMonth); + [Obsolete("Goodwill was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("Goodwill was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_Goodwill_TwoMonths); + [Obsolete("Goodwill was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("Goodwill was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_Goodwill_ThreeMonths); + [Obsolete("Goodwill was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("Goodwill was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_Goodwill_SixMonths); + [Obsolete("Goodwill was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("Goodwill was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_Goodwill_NineMonths); + [Obsolete("Goodwill was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("Goodwill was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_Goodwill_TwelveMonths); + [Obsolete("Goodwill was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("Goodwill was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_Goodwill_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_Goodwill_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("Goodwill was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/GoodwillImpairmentWriteOffSupplementalIncomeStatement.cs b/Common/Data/Fundamental/Generated/GoodwillImpairmentWriteOffSupplementalIncomeStatement.cs new file mode 100644 index 000000000000..0c5da4205b7e --- /dev/null +++ b/Common/Data/Fundamental/Generated/GoodwillImpairmentWriteOffSupplementalIncomeStatement.cs @@ -0,0 +1,119 @@ +/* + * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. + * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * +*/ + +using System; +using System.Linq; +using Python.Runtime; +using Newtonsoft.Json; +using System.Collections.Generic; +using QuantConnect.Data.UniverseSelection; + +namespace QuantConnect.Data.Fundamental +{ + /// + /// Impairment or write off of goodwill. It is a supplemental value which would be reported outside consolidated statements. + /// + public class GoodwillImpairmentWriteOffSupplementalIncomeStatement : MultiPeriodField + { + /// + /// The default period + /// + protected override string DefaultPeriod => "TwelveMonths"; + + /// + /// Gets/sets the ThreeMonths period value for the field + /// + [JsonProperty("3M")] + public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GoodwillImpairmentWriteOffSupplemental_ThreeMonths); + + /// + /// Gets/sets the SixMonths period value for the field + /// + [JsonProperty("6M")] + public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GoodwillImpairmentWriteOffSupplemental_SixMonths); + + /// + /// Gets/sets the NineMonths period value for the field + /// + [JsonProperty("9M")] + public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GoodwillImpairmentWriteOffSupplemental_NineMonths); + + /// + /// Gets/sets the TwelveMonths period value for the field + /// + [JsonProperty("12M")] + public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GoodwillImpairmentWriteOffSupplemental_TwelveMonths); + + /// + /// Returns true if the field contains a value for the default period + /// + public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GoodwillImpairmentWriteOffSupplemental_TwelveMonths)); + + /// + /// Returns the default value for the field + /// + public override double Value + { + get + { + var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_GoodwillImpairmentWriteOffSupplemental_TwelveMonths); + if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) + { + return defaultValue; + } + return base.Value; + } + } + + /// + /// Gets a dictionary of period names and values for the field + /// + /// The dictionary of period names and values + public override IReadOnlyDictionary GetPeriodValues() + { + var result = new Dictionary(); + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + { + if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) + { + result[kvp.Item1] = kvp.Item2; + } + } + return result; + } + + /// + /// Gets the value of the field for the requested period + /// + /// The requested period + /// The value for the period + public override double GetPeriodValue(string period) => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, Enum.Parse($"FinancialStatements_IncomeStatement_GoodwillImpairmentWriteOffSupplemental_{ConvertPeriod(period)}")); + + /// + /// Creates a new empty instance + /// + public GoodwillImpairmentWriteOffSupplementalIncomeStatement() + { + } + + /// + /// Creates a new instance for the given time and security + /// + public GoodwillImpairmentWriteOffSupplementalIncomeStatement(ITimeProvider timeProvider, SecurityIdentifier securityIdentifier) : base(timeProvider, securityIdentifier) + { + } + } +} diff --git a/Common/Data/Fundamental/Generated/GrossAccountsReceivableBalanceSheet.cs b/Common/Data/Fundamental/Generated/GrossAccountsReceivableBalanceSheet.cs index db196a781b16..706e97af27e6 100644 --- a/Common/Data/Fundamental/Generated/GrossAccountsReceivableBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/GrossAccountsReceivableBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/GrossDividendPaymentIncomeStatement.cs b/Common/Data/Fundamental/Generated/GrossDividendPaymentIncomeStatement.cs index 769205c2e382..ea576fc18960 100644 --- a/Common/Data/Fundamental/Generated/GrossDividendPaymentIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/GrossDividendPaymentIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/GrossLoanBalanceSheet.cs b/Common/Data/Fundamental/Generated/GrossLoanBalanceSheet.cs index 9fc3251b7e5c..fcf5233b506b 100644 --- a/Common/Data/Fundamental/Generated/GrossLoanBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/GrossLoanBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -49,7 +49,8 @@ public class GrossLoanBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_GrossLoan_NineMonths); + [Obsolete("GrossLoan.NineMonths was retired by Morningstar in 2026; use GrossLoan.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("GrossLoan.NineMonths was retired by Morningstar in 2026; use GrossLoan.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -85,7 +86,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/GrossPPEBalanceSheet.cs b/Common/Data/Fundamental/Generated/GrossPPEBalanceSheet.cs index 05d94e52f207..f1b16d9f38e6 100644 --- a/Common/Data/Fundamental/Generated/GrossPPEBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/GrossPPEBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class GrossPPEBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_GrossPPE_OneMonth); + [Obsolete("GrossPPE.OneMonth was retired by Morningstar in 2026; use GrossPPE.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("GrossPPE.OneMonth was retired by Morningstar in 2026; use GrossPPE.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_GrossPPE_TwoMonths); + [Obsolete("GrossPPE.TwoMonths was retired by Morningstar in 2026; use GrossPPE.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("GrossPPE.TwoMonths was retired by Morningstar in 2026; use GrossPPE.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class GrossPPEBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_GrossPPE_NineMonths); + [Obsolete("GrossPPE.NineMonths was retired by Morningstar in 2026; use GrossPPE.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("GrossPPE.NineMonths was retired by Morningstar in 2026; use GrossPPE.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/GrossPremiumsWrittenIncomeStatement.cs b/Common/Data/Fundamental/Generated/GrossPremiumsWrittenIncomeStatement.cs index 202f0181141b..3f6d912243d0 100644 --- a/Common/Data/Fundamental/Generated/GrossPremiumsWrittenIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/GrossPremiumsWrittenIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/HedgingAssetsCurrentBalanceSheet.cs b/Common/Data/Fundamental/Generated/HedgingAssetsCurrentBalanceSheet.cs index a3261baeec06..73b854368396 100644 --- a/Common/Data/Fundamental/Generated/HedgingAssetsCurrentBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/HedgingAssetsCurrentBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/HeldToMaturitySecuritiesBalanceSheet.cs b/Common/Data/Fundamental/Generated/HeldToMaturitySecuritiesBalanceSheet.cs index 2d99859b4f38..75ebf66842a1 100644 --- a/Common/Data/Fundamental/Generated/HeldToMaturitySecuritiesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/HeldToMaturitySecuritiesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class HeldToMaturitySecuritiesBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_HeldToMaturitySecurities_ThreeMonths); + [Obsolete("HeldToMaturitySecurities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("HeldToMaturitySecurities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_HeldToMaturitySecurities_SixMonths); + [Obsolete("HeldToMaturitySecurities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("HeldToMaturitySecurities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_HeldToMaturitySecurities_NineMonths); + [Obsolete("HeldToMaturitySecurities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("HeldToMaturitySecurities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_HeldToMaturitySecurities_TwelveMonths); + [Obsolete("HeldToMaturitySecurities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("HeldToMaturitySecurities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_HeldToMaturitySecurities_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_HeldToMaturitySecurities_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("HeldToMaturitySecurities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/ImpairmentLossReversalRecognizedinProfitorLossCashFlowStatement.cs b/Common/Data/Fundamental/Generated/ImpairmentLossReversalRecognizedinProfitorLossCashFlowStatement.cs index ad1836532c69..0d0a7cb9c221 100644 --- a/Common/Data/Fundamental/Generated/ImpairmentLossReversalRecognizedinProfitorLossCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/ImpairmentLossReversalRecognizedinProfitorLossCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class ImpairmentLossReversalRecognizedinProfitorLossCashFlowStatement : M /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ImpairmentLossReversalRecognizedinProfitorLoss_ThreeMonths); + [Obsolete("ImpairmentLossReversalRecognizedinProfitorLoss was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("ImpairmentLossReversalRecognizedinProfitorLoss was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ImpairmentLossReversalRecognizedinProfitorLoss_SixMonths); + [Obsolete("ImpairmentLossReversalRecognizedinProfitorLoss was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("ImpairmentLossReversalRecognizedinProfitorLoss was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ImpairmentLossReversalRecognizedinProfitorLoss_NineMonths); + [Obsolete("ImpairmentLossReversalRecognizedinProfitorLoss was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("ImpairmentLossReversalRecognizedinProfitorLoss was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ImpairmentLossReversalRecognizedinProfitorLoss_TwelveMonths); + [Obsolete("ImpairmentLossReversalRecognizedinProfitorLoss was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("ImpairmentLossReversalRecognizedinProfitorLoss was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ImpairmentLossReversalRecognizedinProfitorLoss_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ImpairmentLossReversalRecognizedinProfitorLoss_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("ImpairmentLossReversalRecognizedinProfitorLoss was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/ImpairmentLossesReversalsFinancialInstrumentsNetIncomeStatement.cs b/Common/Data/Fundamental/Generated/ImpairmentLossesReversalsFinancialInstrumentsNetIncomeStatement.cs index f38d3f09b35e..9a626481751c 100644 --- a/Common/Data/Fundamental/Generated/ImpairmentLossesReversalsFinancialInstrumentsNetIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/ImpairmentLossesReversalsFinancialInstrumentsNetIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class ImpairmentLossesReversalsFinancialInstrumentsNetIncomeStatement : M /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ImpairmentLossesReversalsFinancialInstrumentsNet_ThreeMonths); + [Obsolete("ImpairmentLossesReversalsFinancialInstrumentsNet was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("ImpairmentLossesReversalsFinancialInstrumentsNet was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ImpairmentLossesReversalsFinancialInstrumentsNet_SixMonths); + [Obsolete("ImpairmentLossesReversalsFinancialInstrumentsNet was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("ImpairmentLossesReversalsFinancialInstrumentsNet was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ImpairmentLossesReversalsFinancialInstrumentsNet_NineMonths); + [Obsolete("ImpairmentLossesReversalsFinancialInstrumentsNet was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("ImpairmentLossesReversalsFinancialInstrumentsNet was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ImpairmentLossesReversalsFinancialInstrumentsNet_TwelveMonths); + [Obsolete("ImpairmentLossesReversalsFinancialInstrumentsNet was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("ImpairmentLossesReversalsFinancialInstrumentsNet was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ImpairmentLossesReversalsFinancialInstrumentsNet_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ImpairmentLossesReversalsFinancialInstrumentsNet_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("ImpairmentLossesReversalsFinancialInstrumentsNet was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/ImpairmentOfCapitalAssetsIncomeStatement.cs b/Common/Data/Fundamental/Generated/ImpairmentOfCapitalAssetsIncomeStatement.cs index 660c0f4baa30..182839963350 100644 --- a/Common/Data/Fundamental/Generated/ImpairmentOfCapitalAssetsIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/ImpairmentOfCapitalAssetsIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class ImpairmentOfCapitalAssetsIncomeStatement : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ImpairmentOfCapitalAssets_OneMonth); + [Obsolete("ImpairmentOfCapitalAssets was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("ImpairmentOfCapitalAssets was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ImpairmentOfCapitalAssets_TwoMonths); + [Obsolete("ImpairmentOfCapitalAssets was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("ImpairmentOfCapitalAssets was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ImpairmentOfCapitalAssets_ThreeMonths); + [Obsolete("ImpairmentOfCapitalAssets was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("ImpairmentOfCapitalAssets was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ImpairmentOfCapitalAssets_SixMonths); + [Obsolete("ImpairmentOfCapitalAssets was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("ImpairmentOfCapitalAssets was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ImpairmentOfCapitalAssets_NineMonths); + [Obsolete("ImpairmentOfCapitalAssets was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("ImpairmentOfCapitalAssets was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ImpairmentOfCapitalAssets_TwelveMonths); + [Obsolete("ImpairmentOfCapitalAssets was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("ImpairmentOfCapitalAssets was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ImpairmentOfCapitalAssets_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ImpairmentOfCapitalAssets_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("ImpairmentOfCapitalAssets was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/ImpairmentWriteOffWriteDownofCapitalAssetsSupplementalIncomeStatement.cs b/Common/Data/Fundamental/Generated/ImpairmentWriteOffWriteDownofCapitalAssetsSupplementalIncomeStatement.cs new file mode 100644 index 000000000000..4dcdede34ca8 --- /dev/null +++ b/Common/Data/Fundamental/Generated/ImpairmentWriteOffWriteDownofCapitalAssetsSupplementalIncomeStatement.cs @@ -0,0 +1,119 @@ +/* + * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. + * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * +*/ + +using System; +using System.Linq; +using Python.Runtime; +using Newtonsoft.Json; +using System.Collections.Generic; +using QuantConnect.Data.UniverseSelection; + +namespace QuantConnect.Data.Fundamental +{ + /// + /// Impairment, write off or write down of capital assets. It is a supplemental value which would be reported outside consolidated statements. + /// + public class ImpairmentWriteOffWriteDownofCapitalAssetsSupplementalIncomeStatement : MultiPeriodField + { + /// + /// The default period + /// + protected override string DefaultPeriod => "TwelveMonths"; + + /// + /// Gets/sets the ThreeMonths period value for the field + /// + [JsonProperty("3M")] + public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ImpairmentWriteOffWriteDownofCapitalAssetsSupplemental_ThreeMonths); + + /// + /// Gets/sets the SixMonths period value for the field + /// + [JsonProperty("6M")] + public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ImpairmentWriteOffWriteDownofCapitalAssetsSupplemental_SixMonths); + + /// + /// Gets/sets the NineMonths period value for the field + /// + [JsonProperty("9M")] + public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ImpairmentWriteOffWriteDownofCapitalAssetsSupplemental_NineMonths); + + /// + /// Gets/sets the TwelveMonths period value for the field + /// + [JsonProperty("12M")] + public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ImpairmentWriteOffWriteDownofCapitalAssetsSupplemental_TwelveMonths); + + /// + /// Returns true if the field contains a value for the default period + /// + public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ImpairmentWriteOffWriteDownofCapitalAssetsSupplemental_TwelveMonths)); + + /// + /// Returns the default value for the field + /// + public override double Value + { + get + { + var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ImpairmentWriteOffWriteDownofCapitalAssetsSupplemental_TwelveMonths); + if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) + { + return defaultValue; + } + return base.Value; + } + } + + /// + /// Gets a dictionary of period names and values for the field + /// + /// The dictionary of period names and values + public override IReadOnlyDictionary GetPeriodValues() + { + var result = new Dictionary(); + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + { + if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) + { + result[kvp.Item1] = kvp.Item2; + } + } + return result; + } + + /// + /// Gets the value of the field for the requested period + /// + /// The requested period + /// The value for the period + public override double GetPeriodValue(string period) => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, Enum.Parse($"FinancialStatements_IncomeStatement_ImpairmentWriteOffWriteDownofCapitalAssetsSupplemental_{ConvertPeriod(period)}")); + + /// + /// Creates a new empty instance + /// + public ImpairmentWriteOffWriteDownofCapitalAssetsSupplementalIncomeStatement() + { + } + + /// + /// Creates a new instance for the given time and security + /// + public ImpairmentWriteOffWriteDownofCapitalAssetsSupplementalIncomeStatement(ITimeProvider timeProvider, SecurityIdentifier securityIdentifier) : base(timeProvider, securityIdentifier) + { + } + } +} diff --git a/Common/Data/Fundamental/Generated/ImpairmentWriteOffWriteDownofOtherAssetsSupplementalIncomeStatement.cs b/Common/Data/Fundamental/Generated/ImpairmentWriteOffWriteDownofOtherAssetsSupplementalIncomeStatement.cs new file mode 100644 index 000000000000..128cef2e87d1 --- /dev/null +++ b/Common/Data/Fundamental/Generated/ImpairmentWriteOffWriteDownofOtherAssetsSupplementalIncomeStatement.cs @@ -0,0 +1,119 @@ +/* + * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. + * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * +*/ + +using System; +using System.Linq; +using Python.Runtime; +using Newtonsoft.Json; +using System.Collections.Generic; +using QuantConnect.Data.UniverseSelection; + +namespace QuantConnect.Data.Fundamental +{ + /// + /// Impairment, write off or write down of assets other than capital assets. It is a supplemental value which would be reported outside consolidated statements. + /// + public class ImpairmentWriteOffWriteDownofOtherAssetsSupplementalIncomeStatement : MultiPeriodField + { + /// + /// The default period + /// + protected override string DefaultPeriod => "TwelveMonths"; + + /// + /// Gets/sets the ThreeMonths period value for the field + /// + [JsonProperty("3M")] + public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ImpairmentWriteOffWriteDownofOtherAssetsSupplemental_ThreeMonths); + + /// + /// Gets/sets the SixMonths period value for the field + /// + [JsonProperty("6M")] + public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ImpairmentWriteOffWriteDownofOtherAssetsSupplemental_SixMonths); + + /// + /// Gets/sets the NineMonths period value for the field + /// + [JsonProperty("9M")] + public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ImpairmentWriteOffWriteDownofOtherAssetsSupplemental_NineMonths); + + /// + /// Gets/sets the TwelveMonths period value for the field + /// + [JsonProperty("12M")] + public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ImpairmentWriteOffWriteDownofOtherAssetsSupplemental_TwelveMonths); + + /// + /// Returns true if the field contains a value for the default period + /// + public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ImpairmentWriteOffWriteDownofOtherAssetsSupplemental_TwelveMonths)); + + /// + /// Returns the default value for the field + /// + public override double Value + { + get + { + var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ImpairmentWriteOffWriteDownofOtherAssetsSupplemental_TwelveMonths); + if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) + { + return defaultValue; + } + return base.Value; + } + } + + /// + /// Gets a dictionary of period names and values for the field + /// + /// The dictionary of period names and values + public override IReadOnlyDictionary GetPeriodValues() + { + var result = new Dictionary(); + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + { + if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) + { + result[kvp.Item1] = kvp.Item2; + } + } + return result; + } + + /// + /// Gets the value of the field for the requested period + /// + /// The requested period + /// The value for the period + public override double GetPeriodValue(string period) => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, Enum.Parse($"FinancialStatements_IncomeStatement_ImpairmentWriteOffWriteDownofOtherAssetsSupplemental_{ConvertPeriod(period)}")); + + /// + /// Creates a new empty instance + /// + public ImpairmentWriteOffWriteDownofOtherAssetsSupplementalIncomeStatement() + { + } + + /// + /// Creates a new instance for the given time and security + /// + public ImpairmentWriteOffWriteDownofOtherAssetsSupplementalIncomeStatement(ITimeProvider timeProvider, SecurityIdentifier securityIdentifier) : base(timeProvider, securityIdentifier) + { + } + } +} diff --git a/Common/Data/Fundamental/Generated/IncomeStatement.cs b/Common/Data/Fundamental/Generated/IncomeStatement.cs index 2862a862bcf2..95637437a152 100644 --- a/Common/Data/Fundamental/Generated/IncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/IncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -45,6 +45,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20007 /// [JsonProperty("20007")] + [Obsolete("Amortization was retired by Morningstar in 2026 for all periods; no replacement is available.")] public AmortizationIncomeStatement Amortization => _amortization ??= new(_timeProvider, _securityIdentifier); private AmortizationIncomeStatement _amortization; @@ -75,6 +76,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20017 /// [JsonProperty("20017")] + [Obsolete("Depletion was retired by Morningstar in 2026 for all periods; no replacement is available.")] public DepletionIncomeStatement Depletion => _depletion ??= new(_timeProvider, _securityIdentifier); private DepletionIncomeStatement _depletion; @@ -85,6 +87,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20018 /// [JsonProperty("20018")] + [Obsolete("Depreciation was retired by Morningstar in 2026 for all periods; no replacement is available.")] public DepreciationIncomeStatement Depreciation => _depreciation ??= new(_timeProvider, _securityIdentifier); private DepreciationIncomeStatement _depreciation; @@ -95,6 +98,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20019 /// [JsonProperty("20019")] + [Obsolete("DepreciationAndAmortization was retired by Morningstar in 2026 for all periods; no replacement is available.")] public DepreciationAndAmortizationIncomeStatement DepreciationAndAmortization => _depreciationAndAmortization ??= new(_timeProvider, _securityIdentifier); private DepreciationAndAmortizationIncomeStatement _depreciationAndAmortization; @@ -375,6 +379,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20129 /// [JsonProperty("20129")] + [Obsolete("NetPolicyholderBenefitsAndClaims was retired by Morningstar in 2026 for all periods; no replacement is available.")] public NetPolicyholderBenefitsAndClaimsIncomeStatement NetPolicyholderBenefitsAndClaims => _netPolicyholderBenefitsAndClaims ??= new(_timeProvider, _securityIdentifier); private NetPolicyholderBenefitsAndClaimsIncomeStatement _netPolicyholderBenefitsAndClaims; @@ -385,6 +390,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20134 /// [JsonProperty("20134")] + [Obsolete("PreferredStockDividends was retired by Morningstar in 2026 for all periods; no replacement is available.")] public PreferredStockDividendsIncomeStatement PreferredStockDividends => _preferredStockDividends ??= new(_timeProvider, _securityIdentifier); private PreferredStockDividendsIncomeStatement _preferredStockDividends; @@ -445,6 +451,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20158 /// [JsonProperty("20158")] + [Obsolete("SellingAndMarketingExpense was retired by Morningstar in 2026 for all periods; no replacement is available.")] public SellingAndMarketingExpenseIncomeStatement SellingAndMarketingExpense => _sellingAndMarketingExpense ??= new(_timeProvider, _securityIdentifier); private SellingAndMarketingExpenseIncomeStatement _sellingAndMarketingExpense; @@ -545,6 +552,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20204 /// [JsonProperty("20204")] + [Obsolete("CreditCard was retired by Morningstar in 2026 for all periods; no replacement is available.")] public CreditCardIncomeStatement CreditCard => _creditCard ??= new(_timeProvider, _securityIdentifier); private CreditCardIncomeStatement _creditCard; @@ -555,6 +563,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20206 /// [JsonProperty("20206")] + [Obsolete("DividendIncome was retired by Morningstar in 2026 for all periods; no replacement is available.")] public DividendIncomeIncomeStatement DividendIncome => _dividendIncome ??= new(_timeProvider, _securityIdentifier); private DividendIncomeIncomeStatement _dividendIncome; @@ -615,6 +624,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20215 /// [JsonProperty("20215")] + [Obsolete("Fuel was retired by Morningstar in 2026 for all periods; no replacement is available.")] public FuelIncomeStatement Fuel => _fuel ??= new(_timeProvider, _securityIdentifier); private FuelIncomeStatement _fuel; @@ -625,6 +635,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20216 /// [JsonProperty("20216")] + [Obsolete("FuelAndPurchasePower was retired by Morningstar in 2026 for all periods; no replacement is available.")] public FuelAndPurchasePowerIncomeStatement FuelAndPurchasePower => _fuelAndPurchasePower ??= new(_timeProvider, _securityIdentifier); private FuelAndPurchasePowerIncomeStatement _fuelAndPurchasePower; @@ -635,6 +646,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20217 /// [JsonProperty("20217")] + [Obsolete("GainOnSaleOfBusiness was retired by Morningstar in 2026 for all periods; no replacement is available.")] public GainOnSaleOfBusinessIncomeStatement GainOnSaleOfBusiness => _gainOnSaleOfBusiness ??= new(_timeProvider, _securityIdentifier); private GainOnSaleOfBusinessIncomeStatement _gainOnSaleOfBusiness; @@ -645,6 +657,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20218 /// [JsonProperty("20218")] + [Obsolete("GainOnSaleOfPPE was retired by Morningstar in 2026 for all periods; no replacement is available.")] public GainOnSaleOfPPEIncomeStatement GainOnSaleOfPPE => _gainOnSaleOfPPE ??= new(_timeProvider, _securityIdentifier); private GainOnSaleOfPPEIncomeStatement _gainOnSaleOfPPE; @@ -655,6 +668,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20219 /// [JsonProperty("20219")] + [Obsolete("GainOnSaleOfSecurity was retired by Morningstar in 2026 for all periods; no replacement is available.")] public GainOnSaleOfSecurityIncomeStatement GainOnSaleOfSecurity => _gainOnSaleOfSecurity ??= new(_timeProvider, _securityIdentifier); private GainOnSaleOfSecurityIncomeStatement _gainOnSaleOfSecurity; @@ -675,6 +689,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20225 /// [JsonProperty("20225")] + [Obsolete("ImpairmentOfCapitalAssets was retired by Morningstar in 2026 for all periods; no replacement is available.")] public ImpairmentOfCapitalAssetsIncomeStatement ImpairmentOfCapitalAssets => _impairmentOfCapitalAssets ??= new(_timeProvider, _securityIdentifier); private ImpairmentOfCapitalAssetsIncomeStatement _impairmentOfCapitalAssets; @@ -705,6 +720,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20235 /// [JsonProperty("20235")] + [Obsolete("InterestExpenseForDeposit was retired by Morningstar in 2026 for all periods; no replacement is available.")] public InterestExpenseForDepositIncomeStatement InterestExpenseForDeposit => _interestExpenseForDeposit ??= new(_timeProvider, _securityIdentifier); private InterestExpenseForDepositIncomeStatement _interestExpenseForDeposit; @@ -715,6 +731,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20236 /// [JsonProperty("20236")] + [Obsolete("InterestExpenseForFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResell was retired by Morningstar in 2026 for all periods; no replacement is available.")] public InterestExpenseForFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResellIncomeStatement InterestExpenseForFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResell => _interestExpenseForFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResell ??= new(_timeProvider, _securityIdentifier); private InterestExpenseForFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResellIncomeStatement _interestExpenseForFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResell; @@ -725,6 +742,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20238 /// [JsonProperty("20238")] + [Obsolete("InterestExpenseForLongTermDebtAndCapitalSecurities was retired by Morningstar in 2026 for all periods; no replacement is available.")] public InterestExpenseForLongTermDebtAndCapitalSecuritiesIncomeStatement InterestExpenseForLongTermDebtAndCapitalSecurities => _interestExpenseForLongTermDebtAndCapitalSecurities ??= new(_timeProvider, _securityIdentifier); private InterestExpenseForLongTermDebtAndCapitalSecuritiesIncomeStatement _interestExpenseForLongTermDebtAndCapitalSecurities; @@ -735,6 +753,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20239 /// [JsonProperty("20239")] + [Obsolete("InterestExpenseForShortTermDebt was retired by Morningstar in 2026 for all periods; no replacement is available.")] public InterestExpenseForShortTermDebtIncomeStatement InterestExpenseForShortTermDebt => _interestExpenseForShortTermDebt ??= new(_timeProvider, _securityIdentifier); private InterestExpenseForShortTermDebtIncomeStatement _interestExpenseForShortTermDebt; @@ -745,6 +764,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20240 /// [JsonProperty("20240")] + [Obsolete("InterestIncomeFromDeposits was retired by Morningstar in 2026 for all periods; no replacement is available.")] public InterestIncomeFromDepositsIncomeStatement InterestIncomeFromDeposits => _interestIncomeFromDeposits ??= new(_timeProvider, _securityIdentifier); private InterestIncomeFromDepositsIncomeStatement _interestIncomeFromDeposits; @@ -755,6 +775,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20241 /// [JsonProperty("20241")] + [Obsolete("InterestIncomeFromFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResell was retired by Morningstar in 2026 for all periods; no replacement is available.")] public InterestIncomeFromFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResellIncomeStatement InterestIncomeFromFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResell => _interestIncomeFromFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResell ??= new(_timeProvider, _securityIdentifier); private InterestIncomeFromFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResellIncomeStatement _interestIncomeFromFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResell; @@ -785,6 +806,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20245 /// [JsonProperty("20245")] + [Obsolete("InterestIncomeFromLoansAndLease was retired by Morningstar in 2026 for all periods; no replacement is available.")] public InterestIncomeFromLoansAndLeaseIncomeStatement InterestIncomeFromLoansAndLease => _interestIncomeFromLoansAndLease ??= new(_timeProvider, _securityIdentifier); private InterestIncomeFromLoansAndLeaseIncomeStatement _interestIncomeFromLoansAndLease; @@ -815,6 +837,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20252 /// [JsonProperty("20252")] + [Obsolete("MaintenanceAndRepairs was retired by Morningstar in 2026 for all periods; no replacement is available.")] public MaintenanceAndRepairsIncomeStatement MaintenanceAndRepairs => _maintenanceAndRepairs ??= new(_timeProvider, _securityIdentifier); private MaintenanceAndRepairsIncomeStatement _maintenanceAndRepairs; @@ -855,6 +878,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20258 /// [JsonProperty("20258")] + [Obsolete("NetRealizedGainLossOnInvestments was retired by Morningstar in 2026 for all periods; no replacement is available.")] public NetRealizedGainLossOnInvestmentsIncomeStatement NetRealizedGainLossOnInvestments => _netRealizedGainLossOnInvestments ??= new(_timeProvider, _securityIdentifier); private NetRealizedGainLossOnInvestmentsIncomeStatement _netRealizedGainLossOnInvestments; @@ -865,6 +889,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20260 /// [JsonProperty("20260")] + [Obsolete("OccupancyAndEquipment was retired by Morningstar in 2026 for all periods; no replacement is available.")] public OccupancyAndEquipmentIncomeStatement OccupancyAndEquipment => _occupancyAndEquipment ??= new(_timeProvider, _securityIdentifier); private OccupancyAndEquipmentIncomeStatement _occupancyAndEquipment; @@ -895,6 +920,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20265 /// [JsonProperty("20265")] + [Obsolete("OtherInterestExpense was retired by Morningstar in 2026 for all periods; no replacement is available.")] public OtherInterestExpenseIncomeStatement OtherInterestExpense => _otherInterestExpense ??= new(_timeProvider, _securityIdentifier); private OtherInterestExpenseIncomeStatement _otherInterestExpense; @@ -905,6 +931,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20266 /// [JsonProperty("20266")] + [Obsolete("OtherInterestIncome was retired by Morningstar in 2026 for all periods; no replacement is available.")] public OtherInterestIncomeIncomeStatement OtherInterestIncome => _otherInterestIncome ??= new(_timeProvider, _securityIdentifier); private OtherInterestIncomeIncomeStatement _otherInterestIncome; @@ -945,6 +972,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20273 /// [JsonProperty("20273")] + [Obsolete("PolicyholderBenefitsCeded was retired by Morningstar in 2026 for all periods; no replacement is available.")] public PolicyholderBenefitsCededIncomeStatement PolicyholderBenefitsCeded => _policyholderBenefitsCeded ??= new(_timeProvider, _securityIdentifier); private PolicyholderBenefitsCededIncomeStatement _policyholderBenefitsCeded; @@ -955,6 +983,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20274 /// [JsonProperty("20274")] + [Obsolete("PolicyholderBenefitsGross was retired by Morningstar in 2026 for all periods; no replacement is available.")] public PolicyholderBenefitsGrossIncomeStatement PolicyholderBenefitsGross => _policyholderBenefitsGross ??= new(_timeProvider, _securityIdentifier); private PolicyholderBenefitsGrossIncomeStatement _policyholderBenefitsGross; @@ -965,6 +994,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20275 /// [JsonProperty("20275")] + [Obsolete("PolicyholderDividends was retired by Morningstar in 2026 for all periods; no replacement is available.")] public PolicyholderDividendsIncomeStatement PolicyholderDividends => _policyholderDividends ??= new(_timeProvider, _securityIdentifier); private PolicyholderDividendsIncomeStatement _policyholderDividends; @@ -975,6 +1005,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20276 /// [JsonProperty("20276")] + [Obsolete("PolicyholderInterest was retired by Morningstar in 2026 for all periods; no replacement is available.")] public PolicyholderInterestIncomeStatement PolicyholderInterest => _policyholderInterest ??= new(_timeProvider, _securityIdentifier); private PolicyholderInterestIncomeStatement _policyholderInterest; @@ -995,6 +1026,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20283 /// [JsonProperty("20283")] + [Obsolete("ProvisionForDoubtfulAccounts was retired by Morningstar in 2026 for all periods; no replacement is available.")] public ProvisionForDoubtfulAccountsIncomeStatement ProvisionForDoubtfulAccounts => _provisionForDoubtfulAccounts ??= new(_timeProvider, _securityIdentifier); private ProvisionForDoubtfulAccountsIncomeStatement _provisionForDoubtfulAccounts; @@ -1005,6 +1037,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20287 /// [JsonProperty("20287")] + [Obsolete("RentAndLandingFees was retired by Morningstar in 2026 for all periods; no replacement is available.")] public RentAndLandingFeesIncomeStatement RentAndLandingFees => _rentAndLandingFees ??= new(_timeProvider, _securityIdentifier); private RentAndLandingFeesIncomeStatement _rentAndLandingFees; @@ -1015,6 +1048,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20289 /// [JsonProperty("20289")] + [Obsolete("RestructuringAndMergernAcquisition was retired by Morningstar in 2026 for all periods; no replacement is available.")] public RestructuringAndMergernAcquisitionIncomeStatement RestructuringAndMergernAcquisition => _restructuringAndMergernAcquisition ??= new(_timeProvider, _securityIdentifier); private RestructuringAndMergernAcquisitionIncomeStatement _restructuringAndMergernAcquisition; @@ -1025,6 +1059,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20292 /// [JsonProperty("20292")] + [Obsolete("SalariesAndWages was retired by Morningstar in 2026 for all periods; no replacement is available.")] public SalariesAndWagesIncomeStatement SalariesAndWages => _salariesAndWages ??= new(_timeProvider, _securityIdentifier); private SalariesAndWagesIncomeStatement _salariesAndWages; @@ -1035,6 +1070,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20293 /// [JsonProperty("20293")] + [Obsolete("SecuritiesActivities was retired by Morningstar in 2026 for all periods; no replacement is available.")] public SecuritiesActivitiesIncomeStatement SecuritiesActivities => _securitiesActivities ??= new(_timeProvider, _securityIdentifier); private SecuritiesActivitiesIncomeStatement _securitiesActivities; @@ -1045,6 +1081,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20295 /// [JsonProperty("20295")] + [Obsolete("ServiceChargeOnDepositorAccounts was retired by Morningstar in 2026 for all periods; no replacement is available.")] public ServiceChargeOnDepositorAccountsIncomeStatement ServiceChargeOnDepositorAccounts => _serviceChargeOnDepositorAccounts ??= new(_timeProvider, _securityIdentifier); private ServiceChargeOnDepositorAccountsIncomeStatement _serviceChargeOnDepositorAccounts; @@ -1065,6 +1102,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20300 /// [JsonProperty("20300")] + [Obsolete("TrustFeesbyCommissions was retired by Morningstar in 2026 for all periods; no replacement is available.")] public TrustFeesbyCommissionsIncomeStatement TrustFeesbyCommissions => _trustFeesbyCommissions ??= new(_timeProvider, _securityIdentifier); private TrustFeesbyCommissionsIncomeStatement _trustFeesbyCommissions; @@ -1085,6 +1123,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20304 /// [JsonProperty("20304")] + [Obsolete("WriteOff was retired by Morningstar in 2026 for all periods; no replacement is available.")] public WriteOffIncomeStatement WriteOff => _writeOff ??= new(_timeProvider, _securityIdentifier); private WriteOffIncomeStatement _writeOff; @@ -1105,6 +1144,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20308 /// [JsonProperty("20308")] + [Obsolete("AmortizationOfIntangibles was retired by Morningstar in 2026 for all periods; no replacement is available.")] public AmortizationOfIntangiblesIncomeStatement AmortizationOfIntangibles => _amortizationOfIntangibles ??= new(_timeProvider, _securityIdentifier); private AmortizationOfIntangiblesIncomeStatement _amortizationOfIntangibles; @@ -1125,6 +1165,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20311 /// [JsonProperty("20311")] + [Obsolete("NetIncomeFromTaxLossCarryforward was retired by Morningstar in 2026 for all periods; no replacement is available.")] public NetIncomeFromTaxLossCarryforwardIncomeStatement NetIncomeFromTaxLossCarryforward => _netIncomeFromTaxLossCarryforward ??= new(_timeProvider, _securityIdentifier); private NetIncomeFromTaxLossCarryforwardIncomeStatement _netIncomeFromTaxLossCarryforward; @@ -1135,6 +1176,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20312 /// [JsonProperty("20312")] + [Obsolete("OtherOperatingExpenses was retired by Morningstar in 2026 for all periods; no replacement is available.")] public OtherOperatingExpensesIncomeStatement OtherOperatingExpenses => _otherOperatingExpenses ??= new(_timeProvider, _securityIdentifier); private OtherOperatingExpensesIncomeStatement _otherOperatingExpenses; @@ -1165,6 +1207,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20315 /// [JsonProperty("20315")] + [Obsolete("ReconciledDepreciation was retired by Morningstar in 2026 for all periods; no replacement is available.")] public ReconciledDepreciationIncomeStatement ReconciledDepreciation => _reconciledDepreciation ??= new(_timeProvider, _securityIdentifier); private ReconciledDepreciationIncomeStatement _reconciledDepreciation; @@ -1195,6 +1238,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20333 /// [JsonProperty("20333")] + [Obsolete("GainLossonSaleofAssets was retired by Morningstar in 2026 for all periods; no replacement is available.")] public GainLossonSaleofAssetsIncomeStatement GainLossonSaleofAssets => _gainLossonSaleofAssets ??= new(_timeProvider, _securityIdentifier); private GainLossonSaleofAssetsIncomeStatement _gainLossonSaleofAssets; @@ -1225,6 +1269,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20343 /// [JsonProperty("20343")] + [Obsolete("LossonExtinguishmentofDebt was retired by Morningstar in 2026 for all periods; no replacement is available.")] public LossonExtinguishmentofDebtIncomeStatement LossonExtinguishmentofDebt => _lossonExtinguishmentofDebt ??= new(_timeProvider, _securityIdentifier); private LossonExtinguishmentofDebtIncomeStatement _lossonExtinguishmentofDebt; @@ -1265,6 +1310,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20359 /// [JsonProperty("20359")] + [Obsolete("StaffCosts was retired by Morningstar in 2026 for all periods; no replacement is available.")] public StaffCostsIncomeStatement StaffCosts => _staffCosts ??= new(_timeProvider, _securityIdentifier); private StaffCostsIncomeStatement _staffCosts; @@ -1295,6 +1341,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20363 /// [JsonProperty("20363")] + [Obsolete("OtherOperatingIncomeTotal was retired by Morningstar in 2026 for all periods; no replacement is available.")] public OtherOperatingIncomeTotalIncomeStatement OtherOperatingIncomeTotal => _otherOperatingIncomeTotal ??= new(_timeProvider, _securityIdentifier); private OtherOperatingIncomeTotalIncomeStatement _otherOperatingIncomeTotal; @@ -1305,6 +1352,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20367 /// [JsonProperty("20367")] + [Obsolete("IncomefromAssociatesandOtherParticipatingInterests was retired by Morningstar in 2026 for all periods; no replacement is available.")] public IncomefromAssociatesandOtherParticipatingInterestsIncomeStatement IncomefromAssociatesandOtherParticipatingInterests => _incomefromAssociatesandOtherParticipatingInterests ??= new(_timeProvider, _securityIdentifier); private IncomefromAssociatesandOtherParticipatingInterestsIncomeStatement _incomefromAssociatesandOtherParticipatingInterests; @@ -1315,6 +1363,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20368 /// [JsonProperty("20368")] + [Obsolete("TotalOtherFinanceCost was retired by Morningstar in 2026 for all periods; no replacement is available.")] public TotalOtherFinanceCostIncomeStatement TotalOtherFinanceCost => _totalOtherFinanceCost ??= new(_timeProvider, _securityIdentifier); private TotalOtherFinanceCostIncomeStatement _totalOtherFinanceCost; @@ -1355,6 +1404,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20379 /// [JsonProperty("20379")] + [Obsolete("NetTradingIncome was retired by Morningstar in 2026 for all periods; no replacement is available.")] public NetTradingIncomeIncomeStatement NetTradingIncome => _netTradingIncome ??= new(_timeProvider, _securityIdentifier); private NetTradingIncomeIncomeStatement _netTradingIncome; @@ -1365,6 +1415,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20381 /// [JsonProperty("20381")] + [Obsolete("OtherStaffCosts was retired by Morningstar in 2026 for all periods; no replacement is available.")] public OtherStaffCostsIncomeStatement OtherStaffCosts => _otherStaffCosts ??= new(_timeProvider, _securityIdentifier); private OtherStaffCostsIncomeStatement _otherStaffCosts; @@ -1395,6 +1446,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20391 /// [JsonProperty("20391")] + [Obsolete("GainLossonFinancialInstrumentsDesignatedasCashFlowHedges was retired by Morningstar in 2026 for all periods; no replacement is available.")] public GainLossonFinancialInstrumentsDesignatedasCashFlowHedgesIncomeStatement GainLossonFinancialInstrumentsDesignatedasCashFlowHedges => _gainLossonFinancialInstrumentsDesignatedasCashFlowHedges ??= new(_timeProvider, _securityIdentifier); private GainLossonFinancialInstrumentsDesignatedasCashFlowHedgesIncomeStatement _gainLossonFinancialInstrumentsDesignatedasCashFlowHedges; @@ -1405,6 +1457,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20392 /// [JsonProperty("20392")] + [Obsolete("GainLossonDerecognitionofAvailableForSaleFinancialAssets was retired by Morningstar in 2026 for all periods; no replacement is available.")] public GainLossonDerecognitionofAvailableForSaleFinancialAssetsIncomeStatement GainLossonDerecognitionofAvailableForSaleFinancialAssets => _gainLossonDerecognitionofAvailableForSaleFinancialAssets ??= new(_timeProvider, _securityIdentifier); private GainLossonDerecognitionofAvailableForSaleFinancialAssetsIncomeStatement _gainLossonDerecognitionofAvailableForSaleFinancialAssets; @@ -1415,6 +1468,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20394 /// [JsonProperty("20394")] + [Obsolete("NegativeGoodwillImmediatelyRecognized was retired by Morningstar in 2026 for all periods; no replacement is available.")] public NegativeGoodwillImmediatelyRecognizedIncomeStatement NegativeGoodwillImmediatelyRecognized => _negativeGoodwillImmediatelyRecognized ??= new(_timeProvider, _securityIdentifier); private NegativeGoodwillImmediatelyRecognizedIncomeStatement _negativeGoodwillImmediatelyRecognized; @@ -1435,6 +1489,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20396 /// [JsonProperty("20396")] + [Obsolete("ImpairmentLossesReversalsFinancialInstrumentsNet was retired by Morningstar in 2026 for all periods; no replacement is available.")] public ImpairmentLossesReversalsFinancialInstrumentsNetIncomeStatement ImpairmentLossesReversalsFinancialInstrumentsNet => _impairmentLossesReversalsFinancialInstrumentsNet ??= new(_timeProvider, _securityIdentifier); private ImpairmentLossesReversalsFinancialInstrumentsNetIncomeStatement _impairmentLossesReversalsFinancialInstrumentsNet; @@ -1455,6 +1510,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20401 /// [JsonProperty("20401")] + [Obsolete("ReinsuranceRecoveriesClaimsandBenefits was retired by Morningstar in 2026 for all periods; no replacement is available.")] public ReinsuranceRecoveriesClaimsandBenefitsIncomeStatement ReinsuranceRecoveriesClaimsandBenefits => _reinsuranceRecoveriesClaimsandBenefits ??= new(_timeProvider, _securityIdentifier); private ReinsuranceRecoveriesClaimsandBenefitsIncomeStatement _reinsuranceRecoveriesClaimsandBenefits; @@ -1465,6 +1521,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20402 /// [JsonProperty("20402")] + [Obsolete("ChangeinInsuranceLiabilitiesNetofReinsurance was retired by Morningstar in 2026 for all periods; no replacement is available.")] public ChangeinInsuranceLiabilitiesNetofReinsuranceIncomeStatement ChangeinInsuranceLiabilitiesNetofReinsurance => _changeinInsuranceLiabilitiesNetofReinsurance ??= new(_timeProvider, _securityIdentifier); private ChangeinInsuranceLiabilitiesNetofReinsuranceIncomeStatement _changeinInsuranceLiabilitiesNetofReinsurance; @@ -1475,6 +1532,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20405 /// [JsonProperty("20405")] + [Obsolete("ChangeinInvestmentContract was retired by Morningstar in 2026 for all periods; no replacement is available.")] public ChangeinInvestmentContractIncomeStatement ChangeinInvestmentContract => _changeinInvestmentContract ??= new(_timeProvider, _securityIdentifier); private ChangeinInvestmentContractIncomeStatement _changeinInvestmentContract; @@ -1575,6 +1633,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20420 /// [JsonProperty("20420")] + [Obsolete("NormalizedEBITDA was retired by Morningstar in 2026 for all periods; no replacement is available.")] public NormalizedEBITDAIncomeStatement NormalizedEBITDA => _normalizedEBITDA ??= new(_timeProvider, _securityIdentifier); private NormalizedEBITDAIncomeStatement _normalizedEBITDA; @@ -1585,6 +1644,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20422 /// [JsonProperty("20422")] + [Obsolete("StockBasedCompensation was retired by Morningstar in 2026 for all periods; no replacement is available.")] public StockBasedCompensationIncomeStatement StockBasedCompensation => _stockBasedCompensation ??= new(_timeProvider, _securityIdentifier); private StockBasedCompensationIncomeStatement _stockBasedCompensation; @@ -1605,6 +1665,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20425 /// [JsonProperty("20425")] + [Obsolete("InvestmentContractLiabilitiesIncurred was retired by Morningstar in 2026 for all periods; no replacement is available.")] public InvestmentContractLiabilitiesIncurredIncomeStatement InvestmentContractLiabilitiesIncurred => _investmentContractLiabilitiesIncurred ??= new(_timeProvider, _securityIdentifier); private InvestmentContractLiabilitiesIncurredIncomeStatement _investmentContractLiabilitiesIncurred; @@ -1615,6 +1676,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20426 /// [JsonProperty("20426")] + [Obsolete("ReinsuranceRecoveriesofInvestmentContract was retired by Morningstar in 2026 for all periods; no replacement is available.")] public ReinsuranceRecoveriesofInvestmentContractIncomeStatement ReinsuranceRecoveriesofInvestmentContract => _reinsuranceRecoveriesofInvestmentContract ??= new(_timeProvider, _securityIdentifier); private ReinsuranceRecoveriesofInvestmentContractIncomeStatement _reinsuranceRecoveriesofInvestmentContract; @@ -1685,6 +1747,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20435 /// [JsonProperty("20435")] + [Obsolete("TotalOperatingIncomeAsReported was retired by Morningstar in 2026 for all periods; no replacement is available.")] public TotalOperatingIncomeAsReportedIncomeStatement TotalOperatingIncomeAsReported => _totalOperatingIncomeAsReported ??= new(_timeProvider, _securityIdentifier); private TotalOperatingIncomeAsReportedIncomeStatement _totalOperatingIncomeAsReported; @@ -1705,6 +1768,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20437 /// [JsonProperty("20437")] + [Obsolete("OtherCostofRevenue was retired by Morningstar in 2026 for all periods; no replacement is available.")] public OtherCostofRevenueIncomeStatement OtherCostofRevenue => _otherCostofRevenue ??= new(_timeProvider, _securityIdentifier); private OtherCostofRevenueIncomeStatement _otherCostofRevenue; @@ -1715,6 +1779,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20438 /// [JsonProperty("20438")] + [Obsolete("RentandLandingFeesCostofRevenue was retired by Morningstar in 2026 for all periods; no replacement is available.")] public RentandLandingFeesCostofRevenueIncomeStatement RentandLandingFeesCostofRevenue => _rentandLandingFeesCostofRevenue ??= new(_timeProvider, _securityIdentifier); private RentandLandingFeesCostofRevenueIncomeStatement _rentandLandingFeesCostofRevenue; @@ -1725,6 +1790,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20439 /// [JsonProperty("20439")] + [Obsolete("DDACostofRevenue was retired by Morningstar in 2026 for all periods; no replacement is available.")] public DDACostofRevenueIncomeStatement DDACostofRevenue => _dDACostofRevenue ??= new(_timeProvider, _securityIdentifier); private DDACostofRevenueIncomeStatement _dDACostofRevenue; @@ -1765,6 +1831,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20443 /// [JsonProperty("20443")] + [Obsolete("DepreciationSupplemental was retired by Morningstar in 2026 for all periods; no replacement is available.")] public DepreciationSupplementalIncomeStatement DepreciationSupplemental => _depreciationSupplemental ??= new(_timeProvider, _securityIdentifier); private DepreciationSupplementalIncomeStatement _depreciationSupplemental; @@ -1775,9 +1842,110 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20444 /// [JsonProperty("20444")] + [Obsolete("AmortizationSupplemental was retired by Morningstar in 2026 for all periods; no replacement is available.")] public AmortizationSupplementalIncomeStatement AmortizationSupplemental => _amortizationSupplemental ??= new(_timeProvider, _securityIdentifier); private AmortizationSupplementalIncomeStatement _amortizationSupplemental; + /// + /// Gains or losses on the disposal of businesses. It is a supplemental value which would be reported outside consolidated statements. + /// + /// + /// Morningstar DataId: 20452 + /// + [JsonProperty("20452")] + public DisposalofBusinessesSupplementalIncomeStatement DisposalofBusinessesSupplemental => _disposalofBusinessesSupplemental ??= new(_timeProvider, _securityIdentifier); + private DisposalofBusinessesSupplementalIncomeStatement _disposalofBusinessesSupplemental; + + /// + /// Income or expense from operations that have been discontinued. It is a supplemental value which would be reported outside consolidated statements. + /// + /// + /// Morningstar DataId: 20453 + /// + [JsonProperty("20453")] + public DiscontinuedOperationsSupplementalIncomeStatement DiscontinuedOperationsSupplemental => _discontinuedOperationsSupplemental ??= new(_timeProvider, _securityIdentifier); + private DiscontinuedOperationsSupplementalIncomeStatement _discontinuedOperationsSupplemental; + + /// + /// Gains or losses on the disposal of assets. It is a supplemental value which would be reported outside consolidated statements. + /// + /// + /// Morningstar DataId: 20454 + /// + [JsonProperty("20454")] + public AssetDisposalsSupplementalIncomeStatement AssetDisposalsSupplemental => _assetDisposalsSupplemental ??= new(_timeProvider, _securityIdentifier); + private AssetDisposalsSupplementalIncomeStatement _assetDisposalsSupplemental; + + /// + /// Impairment, write off or write down of capital assets. It is a supplemental value which would be reported outside consolidated statements. + /// + /// + /// Morningstar DataId: 20455 + /// + [JsonProperty("20455")] + public ImpairmentWriteOffWriteDownofCapitalAssetsSupplementalIncomeStatement ImpairmentWriteOffWriteDownofCapitalAssetsSupplemental => _impairmentWriteOffWriteDownofCapitalAssetsSupplemental ??= new(_timeProvider, _securityIdentifier); + private ImpairmentWriteOffWriteDownofCapitalAssetsSupplementalIncomeStatement _impairmentWriteOffWriteDownofCapitalAssetsSupplemental; + + /// + /// Impairment or write off of goodwill. It is a supplemental value which would be reported outside consolidated statements. + /// + /// + /// Morningstar DataId: 20456 + /// + [JsonProperty("20456")] + public GoodwillImpairmentWriteOffSupplementalIncomeStatement GoodwillImpairmentWriteOffSupplemental => _goodwillImpairmentWriteOffSupplemental ??= new(_timeProvider, _securityIdentifier); + private GoodwillImpairmentWriteOffSupplementalIncomeStatement _goodwillImpairmentWriteOffSupplemental; + + /// + /// Impairment, write off or write down of assets other than capital assets. It is a supplemental value which would be reported outside consolidated statements. + /// + /// + /// Morningstar DataId: 20457 + /// + [JsonProperty("20457")] + public ImpairmentWriteOffWriteDownofOtherAssetsSupplementalIncomeStatement ImpairmentWriteOffWriteDownofOtherAssetsSupplemental => _impairmentWriteOffWriteDownofOtherAssetsSupplemental ??= new(_timeProvider, _securityIdentifier); + private ImpairmentWriteOffWriteDownofOtherAssetsSupplementalIncomeStatement _impairmentWriteOffWriteDownofOtherAssetsSupplemental; + + /// + /// Gains or losses arising from the extinguishment of debt. It is a supplemental value which would be reported outside consolidated statements. + /// + /// + /// Morningstar DataId: 20458 + /// + [JsonProperty("20458")] + public GainLossOnExtinguishmentofDebtSupplementalIncomeStatement GainLossOnExtinguishmentofDebtSupplemental => _gainLossOnExtinguishmentofDebtSupplemental ??= new(_timeProvider, _securityIdentifier); + private GainLossOnExtinguishmentofDebtSupplementalIncomeStatement _gainLossOnExtinguishmentofDebtSupplemental; + + /// + /// Income or expense arising from the restructuring of debt. It is a supplemental value which would be reported outside consolidated statements. + /// + /// + /// Morningstar DataId: 20459 + /// + [JsonProperty("20459")] + public DebtRestructuringSupplementalIncomeStatement DebtRestructuringSupplemental => _debtRestructuringSupplemental ??= new(_timeProvider, _securityIdentifier); + private DebtRestructuringSupplementalIncomeStatement _debtRestructuringSupplemental; + + /// + /// Income or expense arising from litigation. It is a supplemental value which would be reported outside consolidated statements. + /// + /// + /// Morningstar DataId: 20460 + /// + [JsonProperty("20460")] + public LitigationIncomeExpenseSupplementalIncomeStatement LitigationIncomeExpenseSupplemental => _litigationIncomeExpenseSupplemental ??= new(_timeProvider, _securityIdentifier); + private LitigationIncomeExpenseSupplementalIncomeStatement _litigationIncomeExpenseSupplemental; + + /// + /// Income or expense arising from mergers and acquisitions. It is a supplemental value which would be reported outside consolidated statements. + /// + /// + /// Morningstar DataId: 20461 + /// + [JsonProperty("20461")] + public MergerAndAcquisitionIncomeExpenseSupplementalIncomeStatement MergerAndAcquisitionIncomeExpenseSupplemental => _mergerAndAcquisitionIncomeExpenseSupplemental ??= new(_timeProvider, _securityIdentifier); + private MergerAndAcquisitionIncomeExpenseSupplementalIncomeStatement _mergerAndAcquisitionIncomeExpenseSupplemental; + /// /// Total revenue as reported by the company, may be the same or not the same as Morningstar's standardized definition. /// @@ -1805,6 +1973,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20447 /// [JsonProperty("20447")] + [Obsolete("NormalizedIncomeAsReported was retired by Morningstar in 2026 for all periods; no replacement is available.")] public NormalizedIncomeAsReportedIncomeStatement NormalizedIncomeAsReported => _normalizedIncomeAsReported ??= new(_timeProvider, _securityIdentifier); private NormalizedIncomeAsReportedIncomeStatement _normalizedIncomeAsReported; @@ -1815,6 +1984,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20448 /// [JsonProperty("20448")] + [Obsolete("NormalizedEBITDAAsReported was retired by Morningstar in 2026 for all periods; no replacement is available.")] public NormalizedEBITDAAsReportedIncomeStatement NormalizedEBITDAAsReported => _normalizedEBITDAAsReported ??= new(_timeProvider, _securityIdentifier); private NormalizedEBITDAAsReportedIncomeStatement _normalizedEBITDAAsReported; @@ -1825,6 +1995,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20449 /// [JsonProperty("20449")] + [Obsolete("NormalizedEBITAsReported was retired by Morningstar in 2026 for all periods; no replacement is available.")] public NormalizedEBITAsReportedIncomeStatement NormalizedEBITAsReported => _normalizedEBITAsReported ??= new(_timeProvider, _securityIdentifier); private NormalizedEBITAsReportedIncomeStatement _normalizedEBITAsReported; @@ -1835,6 +2006,7 @@ public class IncomeStatement : ReusuableCLRObject /// Morningstar DataId: 20450 /// [JsonProperty("20450")] + [Obsolete("NormalizedOperatingProfitAsReported was retired by Morningstar in 2026 for all periods; no replacement is available.")] public NormalizedOperatingProfitAsReportedIncomeStatement NormalizedOperatingProfitAsReported => _normalizedOperatingProfitAsReported ??= new(_timeProvider, _securityIdentifier); private NormalizedOperatingProfitAsReportedIncomeStatement _normalizedOperatingProfitAsReported; diff --git a/Common/Data/Fundamental/Generated/IncomeTaxPayableBalanceSheet.cs b/Common/Data/Fundamental/Generated/IncomeTaxPayableBalanceSheet.cs index 4accde03c7bb..6b1c1eddafc0 100644 --- a/Common/Data/Fundamental/Generated/IncomeTaxPayableBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/IncomeTaxPayableBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -55,7 +55,8 @@ public class IncomeTaxPayableBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_IncomeTaxPayable_NineMonths); + [Obsolete("IncomeTaxPayable.NineMonths was retired by Morningstar in 2026; use IncomeTaxPayable.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("IncomeTaxPayable.NineMonths was retired by Morningstar in 2026; use IncomeTaxPayable.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -91,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/IncomefromAssociatesandOtherParticipatingInterestsIncomeStatement.cs b/Common/Data/Fundamental/Generated/IncomefromAssociatesandOtherParticipatingInterestsIncomeStatement.cs index 42a990b122d8..7b735501e55f 100644 --- a/Common/Data/Fundamental/Generated/IncomefromAssociatesandOtherParticipatingInterestsIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/IncomefromAssociatesandOtherParticipatingInterestsIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class IncomefromAssociatesandOtherParticipatingInterestsIncomeStatement : /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_IncomefromAssociatesandOtherParticipatingInterests_ThreeMonths); + [Obsolete("IncomefromAssociatesandOtherParticipatingInterests was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("IncomefromAssociatesandOtherParticipatingInterests was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_IncomefromAssociatesandOtherParticipatingInterests_SixMonths); + [Obsolete("IncomefromAssociatesandOtherParticipatingInterests was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("IncomefromAssociatesandOtherParticipatingInterests was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_IncomefromAssociatesandOtherParticipatingInterests_NineMonths); + [Obsolete("IncomefromAssociatesandOtherParticipatingInterests was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("IncomefromAssociatesandOtherParticipatingInterests was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_IncomefromAssociatesandOtherParticipatingInterests_TwelveMonths); + [Obsolete("IncomefromAssociatesandOtherParticipatingInterests was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("IncomefromAssociatesandOtherParticipatingInterests was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_IncomefromAssociatesandOtherParticipatingInterests_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_IncomefromAssociatesandOtherParticipatingInterests_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("IncomefromAssociatesandOtherParticipatingInterests was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/IncreaseDecreaseInDepositCashFlowStatement.cs b/Common/Data/Fundamental/Generated/IncreaseDecreaseInDepositCashFlowStatement.cs index 980673b9bc58..272fc6095e7d 100644 --- a/Common/Data/Fundamental/Generated/IncreaseDecreaseInDepositCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/IncreaseDecreaseInDepositCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/IncreaseDecreaseInNetUnearnedPremiumReservesIncomeStatement.cs b/Common/Data/Fundamental/Generated/IncreaseDecreaseInNetUnearnedPremiumReservesIncomeStatement.cs index e37e05c34c60..61db8d77e295 100644 --- a/Common/Data/Fundamental/Generated/IncreaseDecreaseInNetUnearnedPremiumReservesIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/IncreaseDecreaseInNetUnearnedPremiumReservesIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/IncreaseInLeaseFinancingCashFlowStatement.cs b/Common/Data/Fundamental/Generated/IncreaseInLeaseFinancingCashFlowStatement.cs index 77cf4980ce8e..5e5ad7a7589e 100644 --- a/Common/Data/Fundamental/Generated/IncreaseInLeaseFinancingCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/IncreaseInLeaseFinancingCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/InsuranceAndClaimsIncomeStatement.cs b/Common/Data/Fundamental/Generated/InsuranceAndClaimsIncomeStatement.cs index 4527ed1f8fb7..38faafd3f3d8 100644 --- a/Common/Data/Fundamental/Generated/InsuranceAndClaimsIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/InsuranceAndClaimsIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/InsuranceContractAssetsBalanceSheet.cs b/Common/Data/Fundamental/Generated/InsuranceContractAssetsBalanceSheet.cs index 70bc8e047c00..ec8ffb874687 100644 --- a/Common/Data/Fundamental/Generated/InsuranceContractAssetsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/InsuranceContractAssetsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/InsuranceContractLiabilitiesBalanceSheet.cs b/Common/Data/Fundamental/Generated/InsuranceContractLiabilitiesBalanceSheet.cs index 8c3cf456f090..69665d4d26db 100644 --- a/Common/Data/Fundamental/Generated/InsuranceContractLiabilitiesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/InsuranceContractLiabilitiesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/InterestBearingBorrowingsNonCurrentBalanceSheet.cs b/Common/Data/Fundamental/Generated/InterestBearingBorrowingsNonCurrentBalanceSheet.cs index 5d15191d90eb..b15669c59b52 100644 --- a/Common/Data/Fundamental/Generated/InterestBearingBorrowingsNonCurrentBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/InterestBearingBorrowingsNonCurrentBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/InterestBearingDepositsAssetsBalanceSheet.cs b/Common/Data/Fundamental/Generated/InterestBearingDepositsAssetsBalanceSheet.cs index 742253430da4..ce9f8da73a0f 100644 --- a/Common/Data/Fundamental/Generated/InterestBearingDepositsAssetsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/InterestBearingDepositsAssetsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -49,7 +49,8 @@ public class InterestBearingDepositsAssetsBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_InterestBearingDepositsAssets_NineMonths); + [Obsolete("InterestBearingDepositsAssets.NineMonths was retired by Morningstar in 2026; use InterestBearingDepositsAssets.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("InterestBearingDepositsAssets.NineMonths was retired by Morningstar in 2026; use InterestBearingDepositsAssets.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -85,7 +86,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/InterestBearingDepositsLiabilitiesBalanceSheet.cs b/Common/Data/Fundamental/Generated/InterestBearingDepositsLiabilitiesBalanceSheet.cs index 7a5d4fbee70a..146ba8611849 100644 --- a/Common/Data/Fundamental/Generated/InterestBearingDepositsLiabilitiesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/InterestBearingDepositsLiabilitiesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class InterestBearingDepositsLiabilitiesBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_InterestBearingDepositsLiabilities_ThreeMonths); + [Obsolete("InterestBearingDepositsLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("InterestBearingDepositsLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_InterestBearingDepositsLiabilities_SixMonths); + [Obsolete("InterestBearingDepositsLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("InterestBearingDepositsLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_InterestBearingDepositsLiabilities_NineMonths); + [Obsolete("InterestBearingDepositsLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("InterestBearingDepositsLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_InterestBearingDepositsLiabilities_TwelveMonths); + [Obsolete("InterestBearingDepositsLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("InterestBearingDepositsLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_InterestBearingDepositsLiabilities_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_InterestBearingDepositsLiabilities_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("InterestBearingDepositsLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/InterestCoverage.cs b/Common/Data/Fundamental/Generated/InterestCoverage.cs index 286640c08853..5280873bdc24 100644 --- a/Common/Data/Fundamental/Generated/InterestCoverage.cs +++ b/Common/Data/Fundamental/Generated/InterestCoverage.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -43,31 +43,36 @@ public class InterestCoverage : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_InterestCoverage_OneMonth); + [Obsolete("InterestCoverage.OneMonth was retired by Morningstar in 2026; use InterestCoverage.OneYear.")] + public double OneMonth => throw new NotSupportedException("InterestCoverage.OneMonth was retired by Morningstar in 2026; use InterestCoverage.OneYear."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_InterestCoverage_TwoMonths); + [Obsolete("InterestCoverage.TwoMonths was retired by Morningstar in 2026; use InterestCoverage.OneYear.")] + public double TwoMonths => throw new NotSupportedException("InterestCoverage.TwoMonths was retired by Morningstar in 2026; use InterestCoverage.OneYear."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_InterestCoverage_ThreeMonths); + [Obsolete("InterestCoverage.ThreeMonths was retired by Morningstar in 2026; use InterestCoverage.OneYear.")] + public double ThreeMonths => throw new NotSupportedException("InterestCoverage.ThreeMonths was retired by Morningstar in 2026; use InterestCoverage.OneYear."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_InterestCoverage_SixMonths); + [Obsolete("InterestCoverage.SixMonths was retired by Morningstar in 2026; use InterestCoverage.OneYear.")] + public double SixMonths => throw new NotSupportedException("InterestCoverage.SixMonths was retired by Morningstar in 2026; use InterestCoverage.OneYear."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_InterestCoverage_NineMonths); + [Obsolete("InterestCoverage.NineMonths was retired by Morningstar in 2026; use InterestCoverage.OneYear.")] + public double NineMonths => throw new NotSupportedException("InterestCoverage.NineMonths was retired by Morningstar in 2026; use InterestCoverage.OneYear."); /// /// Returns true if the field contains a value for the default period @@ -97,7 +102,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1Y",OneYear), new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths) }) + foreach (var kvp in new[] { new Tuple("1Y",OneYear) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/InterestExpenseForDepositIncomeStatement.cs b/Common/Data/Fundamental/Generated/InterestExpenseForDepositIncomeStatement.cs index 7afe93ef3453..9caf6b9afc8f 100644 --- a/Common/Data/Fundamental/Generated/InterestExpenseForDepositIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/InterestExpenseForDepositIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,52 +37,46 @@ public class InterestExpenseForDepositIncomeStatement : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestExpenseForDeposit_OneMonth); + [Obsolete("InterestExpenseForDeposit was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("InterestExpenseForDeposit was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestExpenseForDeposit_ThreeMonths); + [Obsolete("InterestExpenseForDeposit was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("InterestExpenseForDeposit was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestExpenseForDeposit_SixMonths); + [Obsolete("InterestExpenseForDeposit was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("InterestExpenseForDeposit was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestExpenseForDeposit_NineMonths); + [Obsolete("InterestExpenseForDeposit was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("InterestExpenseForDeposit was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestExpenseForDeposit_TwelveMonths); + [Obsolete("InterestExpenseForDeposit was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("InterestExpenseForDeposit was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestExpenseForDeposit_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestExpenseForDeposit_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("InterestExpenseForDeposit was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -91,7 +85,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/InterestExpenseForFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResellIncomeStatement.cs b/Common/Data/Fundamental/Generated/InterestExpenseForFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResellIncomeStatement.cs index 27a8ff086c22..361a57f4fde5 100644 --- a/Common/Data/Fundamental/Generated/InterestExpenseForFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResellIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/InterestExpenseForFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResellIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class InterestExpenseForFederalFundsSoldAndSecuritiesPurchaseUnderAgreeme /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestExpenseForFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResell_ThreeMonths); + [Obsolete("InterestExpenseForFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResell was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("InterestExpenseForFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResell was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestExpenseForFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResell_SixMonths); + [Obsolete("InterestExpenseForFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResell was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("InterestExpenseForFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResell was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestExpenseForFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResell_NineMonths); + [Obsolete("InterestExpenseForFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResell was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("InterestExpenseForFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResell was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestExpenseForFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResell_TwelveMonths); + [Obsolete("InterestExpenseForFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResell was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("InterestExpenseForFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResell was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestExpenseForFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResell_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestExpenseForFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResell_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("InterestExpenseForFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResell was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/InterestExpenseForLongTermDebtAndCapitalSecuritiesIncomeStatement.cs b/Common/Data/Fundamental/Generated/InterestExpenseForLongTermDebtAndCapitalSecuritiesIncomeStatement.cs index 09b1c2e94455..84d10928966e 100644 --- a/Common/Data/Fundamental/Generated/InterestExpenseForLongTermDebtAndCapitalSecuritiesIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/InterestExpenseForLongTermDebtAndCapitalSecuritiesIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,52 +37,46 @@ public class InterestExpenseForLongTermDebtAndCapitalSecuritiesIncomeStatement : /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestExpenseForLongTermDebtAndCapitalSecurities_OneMonth); + [Obsolete("InterestExpenseForLongTermDebtAndCapitalSecurities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("InterestExpenseForLongTermDebtAndCapitalSecurities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestExpenseForLongTermDebtAndCapitalSecurities_ThreeMonths); + [Obsolete("InterestExpenseForLongTermDebtAndCapitalSecurities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("InterestExpenseForLongTermDebtAndCapitalSecurities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestExpenseForLongTermDebtAndCapitalSecurities_SixMonths); + [Obsolete("InterestExpenseForLongTermDebtAndCapitalSecurities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("InterestExpenseForLongTermDebtAndCapitalSecurities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestExpenseForLongTermDebtAndCapitalSecurities_NineMonths); + [Obsolete("InterestExpenseForLongTermDebtAndCapitalSecurities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("InterestExpenseForLongTermDebtAndCapitalSecurities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestExpenseForLongTermDebtAndCapitalSecurities_TwelveMonths); + [Obsolete("InterestExpenseForLongTermDebtAndCapitalSecurities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("InterestExpenseForLongTermDebtAndCapitalSecurities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestExpenseForLongTermDebtAndCapitalSecurities_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestExpenseForLongTermDebtAndCapitalSecurities_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("InterestExpenseForLongTermDebtAndCapitalSecurities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -91,7 +85,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/InterestExpenseForShortTermDebtIncomeStatement.cs b/Common/Data/Fundamental/Generated/InterestExpenseForShortTermDebtIncomeStatement.cs index 171ac1184afe..a9d9f1bb62c4 100644 --- a/Common/Data/Fundamental/Generated/InterestExpenseForShortTermDebtIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/InterestExpenseForShortTermDebtIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class InterestExpenseForShortTermDebtIncomeStatement : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestExpenseForShortTermDebt_ThreeMonths); + [Obsolete("InterestExpenseForShortTermDebt was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("InterestExpenseForShortTermDebt was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestExpenseForShortTermDebt_SixMonths); + [Obsolete("InterestExpenseForShortTermDebt was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("InterestExpenseForShortTermDebt was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestExpenseForShortTermDebt_NineMonths); + [Obsolete("InterestExpenseForShortTermDebt was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("InterestExpenseForShortTermDebt was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestExpenseForShortTermDebt_TwelveMonths); + [Obsolete("InterestExpenseForShortTermDebt was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("InterestExpenseForShortTermDebt was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestExpenseForShortTermDebt_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestExpenseForShortTermDebt_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("InterestExpenseForShortTermDebt was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/InterestIncomeFromDepositsIncomeStatement.cs b/Common/Data/Fundamental/Generated/InterestIncomeFromDepositsIncomeStatement.cs index 6680b0a024c2..df8c28abfaba 100644 --- a/Common/Data/Fundamental/Generated/InterestIncomeFromDepositsIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/InterestIncomeFromDepositsIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,52 +37,46 @@ public class InterestIncomeFromDepositsIncomeStatement : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestIncomeFromDeposits_OneMonth); + [Obsolete("InterestIncomeFromDeposits was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("InterestIncomeFromDeposits was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestIncomeFromDeposits_ThreeMonths); + [Obsolete("InterestIncomeFromDeposits was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("InterestIncomeFromDeposits was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestIncomeFromDeposits_SixMonths); + [Obsolete("InterestIncomeFromDeposits was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("InterestIncomeFromDeposits was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestIncomeFromDeposits_NineMonths); + [Obsolete("InterestIncomeFromDeposits was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("InterestIncomeFromDeposits was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestIncomeFromDeposits_TwelveMonths); + [Obsolete("InterestIncomeFromDeposits was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("InterestIncomeFromDeposits was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestIncomeFromDeposits_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestIncomeFromDeposits_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("InterestIncomeFromDeposits was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -91,7 +85,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/InterestIncomeFromFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResellIncomeStatement.cs b/Common/Data/Fundamental/Generated/InterestIncomeFromFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResellIncomeStatement.cs index e424852246b5..7283ba2d5bdd 100644 --- a/Common/Data/Fundamental/Generated/InterestIncomeFromFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResellIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/InterestIncomeFromFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResellIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class InterestIncomeFromFederalFundsSoldAndSecuritiesPurchaseUnderAgreeme /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestIncomeFromFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResell_ThreeMonths); + [Obsolete("InterestIncomeFromFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResell was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("InterestIncomeFromFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResell was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestIncomeFromFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResell_SixMonths); + [Obsolete("InterestIncomeFromFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResell was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("InterestIncomeFromFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResell was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestIncomeFromFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResell_NineMonths); + [Obsolete("InterestIncomeFromFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResell was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("InterestIncomeFromFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResell was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestIncomeFromFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResell_TwelveMonths); + [Obsolete("InterestIncomeFromFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResell was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("InterestIncomeFromFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResell was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestIncomeFromFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResell_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestIncomeFromFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResell_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("InterestIncomeFromFederalFundsSoldAndSecuritiesPurchaseUnderAgreementsToResell was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/InterestIncomeFromLoansAndLeaseIncomeStatement.cs b/Common/Data/Fundamental/Generated/InterestIncomeFromLoansAndLeaseIncomeStatement.cs index 4a88a16b93b5..569305d06352 100644 --- a/Common/Data/Fundamental/Generated/InterestIncomeFromLoansAndLeaseIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/InterestIncomeFromLoansAndLeaseIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,52 +37,46 @@ public class InterestIncomeFromLoansAndLeaseIncomeStatement : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestIncomeFromLoansAndLease_OneMonth); + [Obsolete("InterestIncomeFromLoansAndLease was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("InterestIncomeFromLoansAndLease was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestIncomeFromLoansAndLease_ThreeMonths); + [Obsolete("InterestIncomeFromLoansAndLease was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("InterestIncomeFromLoansAndLease was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestIncomeFromLoansAndLease_SixMonths); + [Obsolete("InterestIncomeFromLoansAndLease was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("InterestIncomeFromLoansAndLease was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestIncomeFromLoansAndLease_NineMonths); + [Obsolete("InterestIncomeFromLoansAndLease was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("InterestIncomeFromLoansAndLease was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestIncomeFromLoansAndLease_TwelveMonths); + [Obsolete("InterestIncomeFromLoansAndLease was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("InterestIncomeFromLoansAndLease was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestIncomeFromLoansAndLease_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InterestIncomeFromLoansAndLease_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("InterestIncomeFromLoansAndLease was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -91,7 +85,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/InterestPaidCFFCashFlowStatement.cs b/Common/Data/Fundamental/Generated/InterestPaidCFFCashFlowStatement.cs index 5d33240dd53e..32827c567d53 100644 --- a/Common/Data/Fundamental/Generated/InterestPaidCFFCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/InterestPaidCFFCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/InterestPaidCFOCashFlowStatement.cs b/Common/Data/Fundamental/Generated/InterestPaidCFOCashFlowStatement.cs index 0fe25542c6c4..c38176c37f4a 100644 --- a/Common/Data/Fundamental/Generated/InterestPaidCFOCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/InterestPaidCFOCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/InterestPaidDirectCashFlowStatement.cs b/Common/Data/Fundamental/Generated/InterestPaidDirectCashFlowStatement.cs index b2b37ac33bf7..25e622c3eebc 100644 --- a/Common/Data/Fundamental/Generated/InterestPaidDirectCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/InterestPaidDirectCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class InterestPaidDirectCashFlowStatement : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_InterestPaidDirect_ThreeMonths); + [Obsolete("InterestPaidDirect was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("InterestPaidDirect was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_InterestPaidDirect_SixMonths); + [Obsolete("InterestPaidDirect was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("InterestPaidDirect was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_InterestPaidDirect_NineMonths); + [Obsolete("InterestPaidDirect was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("InterestPaidDirect was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_InterestPaidDirect_TwelveMonths); + [Obsolete("InterestPaidDirect was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("InterestPaidDirect was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_InterestPaidDirect_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_InterestPaidDirect_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("InterestPaidDirect was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/InterestPayableBalanceSheet.cs b/Common/Data/Fundamental/Generated/InterestPayableBalanceSheet.cs index 61345fc178de..fc410d4d05c6 100644 --- a/Common/Data/Fundamental/Generated/InterestPayableBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/InterestPayableBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class InterestPayableBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_InterestPayable_OneMonth); + [Obsolete("InterestPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("InterestPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_InterestPayable_TwoMonths); + [Obsolete("InterestPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("InterestPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_InterestPayable_ThreeMonths); + [Obsolete("InterestPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("InterestPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_InterestPayable_SixMonths); + [Obsolete("InterestPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("InterestPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_InterestPayable_NineMonths); + [Obsolete("InterestPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("InterestPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_InterestPayable_TwelveMonths); + [Obsolete("InterestPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("InterestPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_InterestPayable_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_InterestPayable_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("InterestPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/InterestReceivedCFICashFlowStatement.cs b/Common/Data/Fundamental/Generated/InterestReceivedCFICashFlowStatement.cs index 3b0fb1cb91f7..ad841e7007ab 100644 --- a/Common/Data/Fundamental/Generated/InterestReceivedCFICashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/InterestReceivedCFICashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/InterestReceivedCFOCashFlowStatement.cs b/Common/Data/Fundamental/Generated/InterestReceivedCFOCashFlowStatement.cs index d41e59b3b0f3..1242658acc69 100644 --- a/Common/Data/Fundamental/Generated/InterestReceivedCFOCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/InterestReceivedCFOCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/InterestReceivedDirectCashFlowStatement.cs b/Common/Data/Fundamental/Generated/InterestReceivedDirectCashFlowStatement.cs index c28a5b3405b4..86fed592b697 100644 --- a/Common/Data/Fundamental/Generated/InterestReceivedDirectCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/InterestReceivedDirectCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class InterestReceivedDirectCashFlowStatement : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_InterestReceivedDirect_ThreeMonths); + [Obsolete("InterestReceivedDirect was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("InterestReceivedDirect was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_InterestReceivedDirect_SixMonths); + [Obsolete("InterestReceivedDirect was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("InterestReceivedDirect was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_InterestReceivedDirect_NineMonths); + [Obsolete("InterestReceivedDirect was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("InterestReceivedDirect was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_InterestReceivedDirect_TwelveMonths); + [Obsolete("InterestReceivedDirect was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("InterestReceivedDirect was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_InterestReceivedDirect_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_InterestReceivedDirect_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("InterestReceivedDirect was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/InterestandCommissionPaidCashFlowStatement.cs b/Common/Data/Fundamental/Generated/InterestandCommissionPaidCashFlowStatement.cs index de52373316d0..b6d871f7c4dc 100644 --- a/Common/Data/Fundamental/Generated/InterestandCommissionPaidCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/InterestandCommissionPaidCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class InterestandCommissionPaidCashFlowStatement : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_InterestandCommissionPaid_ThreeMonths); + [Obsolete("InterestandCommissionPaid was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("InterestandCommissionPaid was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_InterestandCommissionPaid_SixMonths); + [Obsolete("InterestandCommissionPaid was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("InterestandCommissionPaid was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_InterestandCommissionPaid_NineMonths); + [Obsolete("InterestandCommissionPaid was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("InterestandCommissionPaid was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_InterestandCommissionPaid_TwelveMonths); + [Obsolete("InterestandCommissionPaid was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("InterestandCommissionPaid was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_InterestandCommissionPaid_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_InterestandCommissionPaid_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("InterestandCommissionPaid was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/InventoriesAdjustmentsAllowancesBalanceSheet.cs b/Common/Data/Fundamental/Generated/InventoriesAdjustmentsAllowancesBalanceSheet.cs index 59c4cebe4bbc..fc0c8ec23478 100644 --- a/Common/Data/Fundamental/Generated/InventoriesAdjustmentsAllowancesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/InventoriesAdjustmentsAllowancesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class InventoriesAdjustmentsAllowancesBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_InventoriesAdjustmentsAllowances_ThreeMonths); + [Obsolete("InventoriesAdjustmentsAllowances was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("InventoriesAdjustmentsAllowances was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_InventoriesAdjustmentsAllowances_SixMonths); + [Obsolete("InventoriesAdjustmentsAllowances was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("InventoriesAdjustmentsAllowances was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_InventoriesAdjustmentsAllowances_NineMonths); + [Obsolete("InventoriesAdjustmentsAllowances was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("InventoriesAdjustmentsAllowances was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_InventoriesAdjustmentsAllowances_TwelveMonths); + [Obsolete("InventoriesAdjustmentsAllowances was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("InventoriesAdjustmentsAllowances was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_InventoriesAdjustmentsAllowances_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_InventoriesAdjustmentsAllowances_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("InventoriesAdjustmentsAllowances was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/InventoryBalanceSheet.cs b/Common/Data/Fundamental/Generated/InventoryBalanceSheet.cs index d259a48fa49d..2b9ac53b4846 100644 --- a/Common/Data/Fundamental/Generated/InventoryBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/InventoryBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class InventoryBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_Inventory_OneMonth); + [Obsolete("Inventory.OneMonth was retired by Morningstar in 2026; use Inventory.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("Inventory.OneMonth was retired by Morningstar in 2026; use Inventory.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_Inventory_TwoMonths); + [Obsolete("Inventory.TwoMonths was retired by Morningstar in 2026; use Inventory.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("Inventory.TwoMonths was retired by Morningstar in 2026; use Inventory.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class InventoryBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_Inventory_NineMonths); + [Obsolete("Inventory.NineMonths was retired by Morningstar in 2026; use Inventory.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("Inventory.NineMonths was retired by Morningstar in 2026; use Inventory.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/InventoryTurnover.cs b/Common/Data/Fundamental/Generated/InventoryTurnover.cs index 4d3e457a54e9..b3c0b06a8c84 100644 --- a/Common/Data/Fundamental/Generated/InventoryTurnover.cs +++ b/Common/Data/Fundamental/Generated/InventoryTurnover.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -43,13 +43,15 @@ public class InventoryTurnover : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_InventoryTurnover_ThreeMonths); + [Obsolete("InventoryTurnover.ThreeMonths was retired by Morningstar in 2026; use InventoryTurnover.OneYear.")] + public double ThreeMonths => throw new NotSupportedException("InventoryTurnover.ThreeMonths was retired by Morningstar in 2026; use InventoryTurnover.OneYear."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_InventoryTurnover_SixMonths); + [Obsolete("InventoryTurnover.SixMonths was retired by Morningstar in 2026; use InventoryTurnover.OneYear.")] + public double SixMonths => throw new NotSupportedException("InventoryTurnover.SixMonths was retired by Morningstar in 2026; use InventoryTurnover.OneYear."); /// /// Returns true if the field contains a value for the default period @@ -79,7 +81,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1Y",OneYear), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths) }) + foreach (var kvp in new[] { new Tuple("1Y",OneYear) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/InventoryValuationMethod.cs b/Common/Data/Fundamental/Generated/InventoryValuationMethod.cs index f78c8f9de510..dd0fc8931514 100644 --- a/Common/Data/Fundamental/Generated/InventoryValuationMethod.cs +++ b/Common/Data/Fundamental/Generated/InventoryValuationMethod.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class InventoryValuationMethod : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public string OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_InventoryValuationMethod_OneMonth); + [Obsolete("InventoryValuationMethod was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public string OneMonth => throw new NotSupportedException("InventoryValuationMethod was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public string TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_InventoryValuationMethod_TwoMonths); + [Obsolete("InventoryValuationMethod was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public string TwoMonths => throw new NotSupportedException("InventoryValuationMethod was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public string ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_InventoryValuationMethod_ThreeMonths); + [Obsolete("InventoryValuationMethod was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public string ThreeMonths => throw new NotSupportedException("InventoryValuationMethod was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public string SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_InventoryValuationMethod_SixMonths); + [Obsolete("InventoryValuationMethod was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public string SixMonths => throw new NotSupportedException("InventoryValuationMethod was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public string NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_InventoryValuationMethod_NineMonths); + [Obsolete("InventoryValuationMethod was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public string NineMonths => throw new NotSupportedException("InventoryValuationMethod was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public string TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_InventoryValuationMethod_TwelveMonths); + [Obsolete("InventoryValuationMethod was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public string TwelveMonths => throw new NotSupportedException("InventoryValuationMethod was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(string), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_InventoryValuationMethod_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override string Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_InventoryValuationMethod_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(string), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override string Value => throw new NotSupportedException("InventoryValuationMethod was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field diff --git a/Common/Data/Fundamental/Generated/InvestedCapitalBalanceSheet.cs b/Common/Data/Fundamental/Generated/InvestedCapitalBalanceSheet.cs index e80929ad19db..32024de52fe9 100644 --- a/Common/Data/Fundamental/Generated/InvestedCapitalBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/InvestedCapitalBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class InvestedCapitalBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_InvestedCapital_OneMonth); + [Obsolete("InvestedCapital.OneMonth was retired by Morningstar in 2026; use InvestedCapital.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("InvestedCapital.OneMonth was retired by Morningstar in 2026; use InvestedCapital.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_InvestedCapital_TwoMonths); + [Obsolete("InvestedCapital.TwoMonths was retired by Morningstar in 2026; use InvestedCapital.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("InvestedCapital.TwoMonths was retired by Morningstar in 2026; use InvestedCapital.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class InvestedCapitalBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_InvestedCapital_NineMonths); + [Obsolete("InvestedCapital.NineMonths was retired by Morningstar in 2026; use InvestedCapital.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("InvestedCapital.NineMonths was retired by Morningstar in 2026; use InvestedCapital.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/InvestmentContractLiabilitiesBalanceSheet.cs b/Common/Data/Fundamental/Generated/InvestmentContractLiabilitiesBalanceSheet.cs index b9a3727d1a1b..f2b1d1264edf 100644 --- a/Common/Data/Fundamental/Generated/InvestmentContractLiabilitiesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/InvestmentContractLiabilitiesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/InvestmentContractLiabilitiesIncurredIncomeStatement.cs b/Common/Data/Fundamental/Generated/InvestmentContractLiabilitiesIncurredIncomeStatement.cs index 4ee4cebeb0bd..084ac1534c11 100644 --- a/Common/Data/Fundamental/Generated/InvestmentContractLiabilitiesIncurredIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/InvestmentContractLiabilitiesIncurredIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class InvestmentContractLiabilitiesIncurredIncomeStatement : MultiPeriodF /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InvestmentContractLiabilitiesIncurred_ThreeMonths); + [Obsolete("InvestmentContractLiabilitiesIncurred was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("InvestmentContractLiabilitiesIncurred was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InvestmentContractLiabilitiesIncurred_SixMonths); + [Obsolete("InvestmentContractLiabilitiesIncurred was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("InvestmentContractLiabilitiesIncurred was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InvestmentContractLiabilitiesIncurred_NineMonths); + [Obsolete("InvestmentContractLiabilitiesIncurred was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("InvestmentContractLiabilitiesIncurred was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InvestmentContractLiabilitiesIncurred_TwelveMonths); + [Obsolete("InvestmentContractLiabilitiesIncurred was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("InvestmentContractLiabilitiesIncurred was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InvestmentContractLiabilitiesIncurred_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_InvestmentContractLiabilitiesIncurred_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("InvestmentContractLiabilitiesIncurred was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/InvestmentPropertiesBalanceSheet.cs b/Common/Data/Fundamental/Generated/InvestmentPropertiesBalanceSheet.cs index f6d426e23d08..495e2adf22e4 100644 --- a/Common/Data/Fundamental/Generated/InvestmentPropertiesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/InvestmentPropertiesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/InvestmentinFinancialAssetsBalanceSheet.cs b/Common/Data/Fundamental/Generated/InvestmentinFinancialAssetsBalanceSheet.cs index 449f667e1610..efbe208dfef0 100644 --- a/Common/Data/Fundamental/Generated/InvestmentinFinancialAssetsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/InvestmentinFinancialAssetsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,7 +37,8 @@ public class InvestmentinFinancialAssetsBalanceSheet : MultiPeriodField /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_InvestmentinFinancialAssets_TwoMonths); + [Obsolete("InvestmentinFinancialAssets.TwoMonths was retired by Morningstar in 2026; use InvestmentinFinancialAssets.ThreeMonths (also available: TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("InvestmentinFinancialAssets.TwoMonths was retired by Morningstar in 2026; use InvestmentinFinancialAssets.ThreeMonths (also available: TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -79,7 +80,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/InvestmentsAndAdvancesBalanceSheet.cs b/Common/Data/Fundamental/Generated/InvestmentsAndAdvancesBalanceSheet.cs index 1a06944eecdf..87fe8f5e3204 100644 --- a/Common/Data/Fundamental/Generated/InvestmentsAndAdvancesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/InvestmentsAndAdvancesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class InvestmentsAndAdvancesBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_InvestmentsAndAdvances_OneMonth); + [Obsolete("InvestmentsAndAdvances.OneMonth was retired by Morningstar in 2026; use InvestmentsAndAdvances.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("InvestmentsAndAdvances.OneMonth was retired by Morningstar in 2026; use InvestmentsAndAdvances.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_InvestmentsAndAdvances_TwoMonths); + [Obsolete("InvestmentsAndAdvances.TwoMonths was retired by Morningstar in 2026; use InvestmentsAndAdvances.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("InvestmentsAndAdvances.TwoMonths was retired by Morningstar in 2026; use InvestmentsAndAdvances.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class InvestmentsAndAdvancesBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_InvestmentsAndAdvances_NineMonths); + [Obsolete("InvestmentsAndAdvances.NineMonths was retired by Morningstar in 2026; use InvestmentsAndAdvances.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("InvestmentsAndAdvances.NineMonths was retired by Morningstar in 2026; use InvestmentsAndAdvances.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/InvestmentsInOtherVenturesUnderEquityMethodBalanceSheet.cs b/Common/Data/Fundamental/Generated/InvestmentsInOtherVenturesUnderEquityMethodBalanceSheet.cs index e01f90dbcf23..2c81a9af365e 100644 --- a/Common/Data/Fundamental/Generated/InvestmentsInOtherVenturesUnderEquityMethodBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/InvestmentsInOtherVenturesUnderEquityMethodBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/InvestmentsinAssociatesatCostBalanceSheet.cs b/Common/Data/Fundamental/Generated/InvestmentsinAssociatesatCostBalanceSheet.cs index 3e24cdff4af1..f111ded50eef 100644 --- a/Common/Data/Fundamental/Generated/InvestmentsinAssociatesatCostBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/InvestmentsinAssociatesatCostBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/InvestmentsinJointVenturesatCostBalanceSheet.cs b/Common/Data/Fundamental/Generated/InvestmentsinJointVenturesatCostBalanceSheet.cs index 67804a259679..a2176c740905 100644 --- a/Common/Data/Fundamental/Generated/InvestmentsinJointVenturesatCostBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/InvestmentsinJointVenturesatCostBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/InvestmentsinSubsidiariesatCostBalanceSheet.cs b/Common/Data/Fundamental/Generated/InvestmentsinSubsidiariesatCostBalanceSheet.cs index 33b9defd4437..cbd86d71b970 100644 --- a/Common/Data/Fundamental/Generated/InvestmentsinSubsidiariesatCostBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/InvestmentsinSubsidiariesatCostBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/IssueExpensesCashFlowStatement.cs b/Common/Data/Fundamental/Generated/IssueExpensesCashFlowStatement.cs index fa8f24878a91..fb24e274717f 100644 --- a/Common/Data/Fundamental/Generated/IssueExpensesCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/IssueExpensesCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/ItemsinTheCourseofTransmissiontoOtherBanksBalanceSheet.cs b/Common/Data/Fundamental/Generated/ItemsinTheCourseofTransmissiontoOtherBanksBalanceSheet.cs index f1172bde77d1..dd32b3625930 100644 --- a/Common/Data/Fundamental/Generated/ItemsinTheCourseofTransmissiontoOtherBanksBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/ItemsinTheCourseofTransmissiontoOtherBanksBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/LandAndImprovementsBalanceSheet.cs b/Common/Data/Fundamental/Generated/LandAndImprovementsBalanceSheet.cs index aaa53dfbb7a6..b944c73e172e 100644 --- a/Common/Data/Fundamental/Generated/LandAndImprovementsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/LandAndImprovementsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class LandAndImprovementsBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_LandAndImprovements_OneMonth); + [Obsolete("LandAndImprovements was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("LandAndImprovements was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_LandAndImprovements_TwoMonths); + [Obsolete("LandAndImprovements was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("LandAndImprovements was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_LandAndImprovements_ThreeMonths); + [Obsolete("LandAndImprovements was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("LandAndImprovements was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_LandAndImprovements_SixMonths); + [Obsolete("LandAndImprovements was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("LandAndImprovements was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_LandAndImprovements_NineMonths); + [Obsolete("LandAndImprovements was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("LandAndImprovements was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_LandAndImprovements_TwelveMonths); + [Obsolete("LandAndImprovements was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("LandAndImprovements was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_LandAndImprovements_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_LandAndImprovements_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("LandAndImprovements was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/LeasesBalanceSheet.cs b/Common/Data/Fundamental/Generated/LeasesBalanceSheet.cs index 706278c69853..31f226beab25 100644 --- a/Common/Data/Fundamental/Generated/LeasesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/LeasesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class LeasesBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_Leases_OneMonth); + [Obsolete("Leases was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("Leases was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_Leases_TwoMonths); + [Obsolete("Leases was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("Leases was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_Leases_ThreeMonths); + [Obsolete("Leases was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("Leases was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_Leases_SixMonths); + [Obsolete("Leases was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("Leases was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_Leases_NineMonths); + [Obsolete("Leases was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("Leases was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_Leases_TwelveMonths); + [Obsolete("Leases was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("Leases was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_Leases_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_Leases_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("Leases was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/LiabilitiesHeldforSaleCurrentBalanceSheet.cs b/Common/Data/Fundamental/Generated/LiabilitiesHeldforSaleCurrentBalanceSheet.cs index 78e07c9b2fc9..d18c070dd832 100644 --- a/Common/Data/Fundamental/Generated/LiabilitiesHeldforSaleCurrentBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/LiabilitiesHeldforSaleCurrentBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/LiabilitiesHeldforSaleNonCurrentBalanceSheet.cs b/Common/Data/Fundamental/Generated/LiabilitiesHeldforSaleNonCurrentBalanceSheet.cs index 6579db111d47..fbe41b624128 100644 --- a/Common/Data/Fundamental/Generated/LiabilitiesHeldforSaleNonCurrentBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/LiabilitiesHeldforSaleNonCurrentBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/LiabilitiesHeldforSaleTotalBalanceSheet.cs b/Common/Data/Fundamental/Generated/LiabilitiesHeldforSaleTotalBalanceSheet.cs index bfdd673802b6..669b7699b280 100644 --- a/Common/Data/Fundamental/Generated/LiabilitiesHeldforSaleTotalBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/LiabilitiesHeldforSaleTotalBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/LineOfCreditBalanceSheet.cs b/Common/Data/Fundamental/Generated/LineOfCreditBalanceSheet.cs index 5b5e11b5318a..bcd122a02b19 100644 --- a/Common/Data/Fundamental/Generated/LineOfCreditBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/LineOfCreditBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class LineOfCreditBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_LineOfCredit_OneMonth); + [Obsolete("LineOfCredit was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("LineOfCredit was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_LineOfCredit_ThreeMonths); + [Obsolete("LineOfCredit was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("LineOfCredit was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_LineOfCredit_NineMonths); + [Obsolete("LineOfCredit was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("LineOfCredit was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_LineOfCredit_TwelveMonths); + [Obsolete("LineOfCredit was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("LineOfCredit was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_LineOfCredit_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_LineOfCredit_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("LineOfCredit was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/LiquidityCoverageRatio.cs b/Common/Data/Fundamental/Generated/LiquidityCoverageRatio.cs new file mode 100644 index 000000000000..a6ffa02f368a --- /dev/null +++ b/Common/Data/Fundamental/Generated/LiquidityCoverageRatio.cs @@ -0,0 +1,125 @@ +/* + * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. + * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * +*/ + +using System; +using System.Linq; +using Python.Runtime; +using Newtonsoft.Json; +using System.Collections.Generic; +using QuantConnect.Data.UniverseSelection; + +namespace QuantConnect.Data.Fundamental +{ + /// + /// High quality liquid assets divided by projected net cash outflows over thirty days + /// + public class LiquidityCoverageRatio : MultiPeriodField + { + /// + /// The default period + /// + protected override string DefaultPeriod => "TwelveMonths"; + + /// + /// Gets/sets the OneMonth period value for the field + /// + [JsonProperty("1M")] + public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_LiquidityCoverageRatio_OneMonth); + + /// + /// Gets/sets the ThreeMonths period value for the field + /// + [JsonProperty("3M")] + public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_LiquidityCoverageRatio_ThreeMonths); + + /// + /// Gets/sets the SixMonths period value for the field + /// + [JsonProperty("6M")] + public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_LiquidityCoverageRatio_SixMonths); + + /// + /// Gets/sets the NineMonths period value for the field + /// + [JsonProperty("9M")] + public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_LiquidityCoverageRatio_NineMonths); + + /// + /// Gets/sets the TwelveMonths period value for the field + /// + [JsonProperty("12M")] + public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_LiquidityCoverageRatio_TwelveMonths); + + /// + /// Returns true if the field contains a value for the default period + /// + public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_LiquidityCoverageRatio_TwelveMonths)); + + /// + /// Returns the default value for the field + /// + public override double Value + { + get + { + var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_LiquidityCoverageRatio_TwelveMonths); + if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) + { + return defaultValue; + } + return base.Value; + } + } + + /// + /// Gets a dictionary of period names and values for the field + /// + /// The dictionary of period names and values + public override IReadOnlyDictionary GetPeriodValues() + { + var result = new Dictionary(); + foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + { + if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) + { + result[kvp.Item1] = kvp.Item2; + } + } + return result; + } + + /// + /// Gets the value of the field for the requested period + /// + /// The requested period + /// The value for the period + public override double GetPeriodValue(string period) => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, Enum.Parse($"FinancialStatements_LiquidityCoverageRatio_{ConvertPeriod(period)}")); + + /// + /// Creates a new empty instance + /// + public LiquidityCoverageRatio() + { + } + + /// + /// Creates a new instance for the given time and security + /// + public LiquidityCoverageRatio(ITimeProvider timeProvider, SecurityIdentifier securityIdentifier) : base(timeProvider, securityIdentifier) + { + } + } +} diff --git a/Common/Data/Fundamental/Generated/LitigationIncomeExpenseSupplementalIncomeStatement.cs b/Common/Data/Fundamental/Generated/LitigationIncomeExpenseSupplementalIncomeStatement.cs new file mode 100644 index 000000000000..8db0dc3329d4 --- /dev/null +++ b/Common/Data/Fundamental/Generated/LitigationIncomeExpenseSupplementalIncomeStatement.cs @@ -0,0 +1,119 @@ +/* + * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. + * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * +*/ + +using System; +using System.Linq; +using Python.Runtime; +using Newtonsoft.Json; +using System.Collections.Generic; +using QuantConnect.Data.UniverseSelection; + +namespace QuantConnect.Data.Fundamental +{ + /// + /// Income or expense arising from litigation. It is a supplemental value which would be reported outside consolidated statements. + /// + public class LitigationIncomeExpenseSupplementalIncomeStatement : MultiPeriodField + { + /// + /// The default period + /// + protected override string DefaultPeriod => "TwelveMonths"; + + /// + /// Gets/sets the ThreeMonths period value for the field + /// + [JsonProperty("3M")] + public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_LitigationIncomeExpenseSupplemental_ThreeMonths); + + /// + /// Gets/sets the SixMonths period value for the field + /// + [JsonProperty("6M")] + public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_LitigationIncomeExpenseSupplemental_SixMonths); + + /// + /// Gets/sets the NineMonths period value for the field + /// + [JsonProperty("9M")] + public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_LitigationIncomeExpenseSupplemental_NineMonths); + + /// + /// Gets/sets the TwelveMonths period value for the field + /// + [JsonProperty("12M")] + public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_LitigationIncomeExpenseSupplemental_TwelveMonths); + + /// + /// Returns true if the field contains a value for the default period + /// + public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_LitigationIncomeExpenseSupplemental_TwelveMonths)); + + /// + /// Returns the default value for the field + /// + public override double Value + { + get + { + var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_LitigationIncomeExpenseSupplemental_TwelveMonths); + if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) + { + return defaultValue; + } + return base.Value; + } + } + + /// + /// Gets a dictionary of period names and values for the field + /// + /// The dictionary of period names and values + public override IReadOnlyDictionary GetPeriodValues() + { + var result = new Dictionary(); + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + { + if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) + { + result[kvp.Item1] = kvp.Item2; + } + } + return result; + } + + /// + /// Gets the value of the field for the requested period + /// + /// The requested period + /// The value for the period + public override double GetPeriodValue(string period) => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, Enum.Parse($"FinancialStatements_IncomeStatement_LitigationIncomeExpenseSupplemental_{ConvertPeriod(period)}")); + + /// + /// Creates a new empty instance + /// + public LitigationIncomeExpenseSupplementalIncomeStatement() + { + } + + /// + /// Creates a new instance for the given time and security + /// + public LitigationIncomeExpenseSupplementalIncomeStatement(ITimeProvider timeProvider, SecurityIdentifier securityIdentifier) : base(timeProvider, securityIdentifier) + { + } + } +} diff --git a/Common/Data/Fundamental/Generated/LoansHeldForSaleBalanceSheet.cs b/Common/Data/Fundamental/Generated/LoansHeldForSaleBalanceSheet.cs index 61a31f967045..6eb545619ac6 100644 --- a/Common/Data/Fundamental/Generated/LoansHeldForSaleBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/LoansHeldForSaleBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -49,7 +49,8 @@ public class LoansHeldForSaleBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_LoansHeldForSale_NineMonths); + [Obsolete("LoansHeldForSale.NineMonths was retired by Morningstar in 2026; use LoansHeldForSale.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("LoansHeldForSale.NineMonths was retired by Morningstar in 2026; use LoansHeldForSale.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -85,7 +86,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/LoansReceivableBalanceSheet.cs b/Common/Data/Fundamental/Generated/LoansReceivableBalanceSheet.cs index 2c88116aa9cd..fe7752e4c0b5 100644 --- a/Common/Data/Fundamental/Generated/LoansReceivableBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/LoansReceivableBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,52 +37,46 @@ public class LoansReceivableBalanceSheet : MultiPeriodField /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_LoansReceivable_TwoMonths); + [Obsolete("LoansReceivable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("LoansReceivable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_LoansReceivable_ThreeMonths); + [Obsolete("LoansReceivable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("LoansReceivable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_LoansReceivable_SixMonths); + [Obsolete("LoansReceivable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("LoansReceivable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_LoansReceivable_NineMonths); + [Obsolete("LoansReceivable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("LoansReceivable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_LoansReceivable_TwelveMonths); + [Obsolete("LoansReceivable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("LoansReceivable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_LoansReceivable_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_LoansReceivable_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("LoansReceivable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -91,7 +85,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/LoansandAdvancestoBankBalanceSheet.cs b/Common/Data/Fundamental/Generated/LoansandAdvancestoBankBalanceSheet.cs index d8deca22370e..436cb58024a0 100644 --- a/Common/Data/Fundamental/Generated/LoansandAdvancestoBankBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/LoansandAdvancestoBankBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class LoansandAdvancestoBankBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_LoansandAdvancestoBank_ThreeMonths); + [Obsolete("LoansandAdvancestoBank was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("LoansandAdvancestoBank was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_LoansandAdvancestoBank_TwelveMonths); + [Obsolete("LoansandAdvancestoBank was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("LoansandAdvancestoBank was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_LoansandAdvancestoBank_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_LoansandAdvancestoBank_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("LoansandAdvancestoBank was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/LoansandAdvancestoCustomerBalanceSheet.cs b/Common/Data/Fundamental/Generated/LoansandAdvancestoCustomerBalanceSheet.cs index 18609670a776..3ea6ae9dc080 100644 --- a/Common/Data/Fundamental/Generated/LoansandAdvancestoCustomerBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/LoansandAdvancestoCustomerBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class LoansandAdvancestoCustomerBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_LoansandAdvancestoCustomer_ThreeMonths); + [Obsolete("LoansandAdvancestoCustomer was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("LoansandAdvancestoCustomer was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_LoansandAdvancestoCustomer_TwelveMonths); + [Obsolete("LoansandAdvancestoCustomer was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("LoansandAdvancestoCustomer was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_LoansandAdvancestoCustomer_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_LoansandAdvancestoCustomer_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("LoansandAdvancestoCustomer was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/LongTermCapitalLeaseObligationBalanceSheet.cs b/Common/Data/Fundamental/Generated/LongTermCapitalLeaseObligationBalanceSheet.cs index 457eb22630e5..f163163ea5fc 100644 --- a/Common/Data/Fundamental/Generated/LongTermCapitalLeaseObligationBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/LongTermCapitalLeaseObligationBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -43,7 +43,8 @@ public class LongTermCapitalLeaseObligationBalanceSheet : MultiPeriodField /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_LongTermCapitalLeaseObligation_TwoMonths); + [Obsolete("LongTermCapitalLeaseObligation.TwoMonths was retired by Morningstar in 2026; use LongTermCapitalLeaseObligation.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("LongTermCapitalLeaseObligation.TwoMonths was retired by Morningstar in 2026; use LongTermCapitalLeaseObligation.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +62,8 @@ public class LongTermCapitalLeaseObligationBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_LongTermCapitalLeaseObligation_NineMonths); + [Obsolete("LongTermCapitalLeaseObligation.NineMonths was retired by Morningstar in 2026; use LongTermCapitalLeaseObligation.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("LongTermCapitalLeaseObligation.NineMonths was retired by Morningstar in 2026; use LongTermCapitalLeaseObligation.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +99,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/LongTermDebtAndCapitalLeaseObligationBalanceSheet.cs b/Common/Data/Fundamental/Generated/LongTermDebtAndCapitalLeaseObligationBalanceSheet.cs index ac0b35c2413f..428025a22288 100644 --- a/Common/Data/Fundamental/Generated/LongTermDebtAndCapitalLeaseObligationBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/LongTermDebtAndCapitalLeaseObligationBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class LongTermDebtAndCapitalLeaseObligationBalanceSheet : MultiPeriodFiel /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_LongTermDebtAndCapitalLeaseObligation_OneMonth); + [Obsolete("LongTermDebtAndCapitalLeaseObligation.OneMonth was retired by Morningstar in 2026; use LongTermDebtAndCapitalLeaseObligation.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("LongTermDebtAndCapitalLeaseObligation.OneMonth was retired by Morningstar in 2026; use LongTermDebtAndCapitalLeaseObligation.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_LongTermDebtAndCapitalLeaseObligation_TwoMonths); + [Obsolete("LongTermDebtAndCapitalLeaseObligation.TwoMonths was retired by Morningstar in 2026; use LongTermDebtAndCapitalLeaseObligation.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("LongTermDebtAndCapitalLeaseObligation.TwoMonths was retired by Morningstar in 2026; use LongTermDebtAndCapitalLeaseObligation.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class LongTermDebtAndCapitalLeaseObligationBalanceSheet : MultiPeriodFiel /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_LongTermDebtAndCapitalLeaseObligation_NineMonths); + [Obsolete("LongTermDebtAndCapitalLeaseObligation.NineMonths was retired by Morningstar in 2026; use LongTermDebtAndCapitalLeaseObligation.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("LongTermDebtAndCapitalLeaseObligation.NineMonths was retired by Morningstar in 2026; use LongTermDebtAndCapitalLeaseObligation.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/LongTermDebtBalanceSheet.cs b/Common/Data/Fundamental/Generated/LongTermDebtBalanceSheet.cs index 2e52d99dae5b..c400a003b273 100644 --- a/Common/Data/Fundamental/Generated/LongTermDebtBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/LongTermDebtBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class LongTermDebtBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_LongTermDebt_OneMonth); + [Obsolete("LongTermDebt.OneMonth was retired by Morningstar in 2026; use LongTermDebt.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("LongTermDebt.OneMonth was retired by Morningstar in 2026; use LongTermDebt.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_LongTermDebt_TwoMonths); + [Obsolete("LongTermDebt.TwoMonths was retired by Morningstar in 2026; use LongTermDebt.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("LongTermDebt.TwoMonths was retired by Morningstar in 2026; use LongTermDebt.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class LongTermDebtBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_LongTermDebt_NineMonths); + [Obsolete("LongTermDebt.NineMonths was retired by Morningstar in 2026; use LongTermDebt.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("LongTermDebt.NineMonths was retired by Morningstar in 2026; use LongTermDebt.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/LongTermDebtEquityRatio.cs b/Common/Data/Fundamental/Generated/LongTermDebtEquityRatio.cs index 6369ec8fecc6..7b8ad6f5a973 100644 --- a/Common/Data/Fundamental/Generated/LongTermDebtEquityRatio.cs +++ b/Common/Data/Fundamental/Generated/LongTermDebtEquityRatio.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -67,7 +67,8 @@ public class LongTermDebtEquityRatio : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_LongTermDebtEquityRatio_NineMonths); + [Obsolete("LongTermDebtEquityRatio.NineMonths was retired by Morningstar in 2026; use LongTermDebtEquityRatio.ThreeMonths (also available: SixMonths, OneYear).")] + public double NineMonths => throw new NotSupportedException("LongTermDebtEquityRatio.NineMonths was retired by Morningstar in 2026; use LongTermDebtEquityRatio.ThreeMonths (also available: SixMonths, OneYear)."); /// /// Returns true if the field contains a value for the default period @@ -97,7 +98,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1Y",OneYear), new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths) }) + foreach (var kvp in new[] { new Tuple("1Y",OneYear), new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/LongTermDebtTotalCapitalRatio.cs b/Common/Data/Fundamental/Generated/LongTermDebtTotalCapitalRatio.cs index 5313ff3ee80e..a548646d2f87 100644 --- a/Common/Data/Fundamental/Generated/LongTermDebtTotalCapitalRatio.cs +++ b/Common/Data/Fundamental/Generated/LongTermDebtTotalCapitalRatio.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -67,7 +67,8 @@ public class LongTermDebtTotalCapitalRatio : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_LongTermDebtTotalCapitalRatio_NineMonths); + [Obsolete("LongTermDebtTotalCapitalRatio.NineMonths was retired by Morningstar in 2026; use LongTermDebtTotalCapitalRatio.ThreeMonths (also available: SixMonths, OneYear).")] + public double NineMonths => throw new NotSupportedException("LongTermDebtTotalCapitalRatio.NineMonths was retired by Morningstar in 2026; use LongTermDebtTotalCapitalRatio.ThreeMonths (also available: SixMonths, OneYear)."); /// /// Returns true if the field contains a value for the default period @@ -97,7 +98,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1Y",OneYear), new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths) }) + foreach (var kvp in new[] { new Tuple("1Y",OneYear), new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/LongTermInvestmentsBalanceSheet.cs b/Common/Data/Fundamental/Generated/LongTermInvestmentsBalanceSheet.cs index 2e826a938e54..c088c7ec269e 100644 --- a/Common/Data/Fundamental/Generated/LongTermInvestmentsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/LongTermInvestmentsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/LongTermProvisionsBalanceSheet.cs b/Common/Data/Fundamental/Generated/LongTermProvisionsBalanceSheet.cs index 96d2415afab3..0ef699280170 100644 --- a/Common/Data/Fundamental/Generated/LongTermProvisionsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/LongTermProvisionsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -49,7 +49,8 @@ public class LongTermProvisionsBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_LongTermProvisions_NineMonths); + [Obsolete("LongTermProvisions.NineMonths was retired by Morningstar in 2026; use LongTermProvisions.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("LongTermProvisions.NineMonths was retired by Morningstar in 2026; use LongTermProvisions.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -85,7 +86,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/LossAdjustmentExpenseIncomeStatement.cs b/Common/Data/Fundamental/Generated/LossAdjustmentExpenseIncomeStatement.cs index f078afe8d8ca..95ed93dac9ce 100644 --- a/Common/Data/Fundamental/Generated/LossAdjustmentExpenseIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/LossAdjustmentExpenseIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/LossRatio.cs b/Common/Data/Fundamental/Generated/LossRatio.cs index b4de19d86475..9442688e2460 100644 --- a/Common/Data/Fundamental/Generated/LossRatio.cs +++ b/Common/Data/Fundamental/Generated/LossRatio.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/LossonExtinguishmentofDebtIncomeStatement.cs b/Common/Data/Fundamental/Generated/LossonExtinguishmentofDebtIncomeStatement.cs index ccc3e8023e2f..50fbaa705010 100644 --- a/Common/Data/Fundamental/Generated/LossonExtinguishmentofDebtIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/LossonExtinguishmentofDebtIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class LossonExtinguishmentofDebtIncomeStatement : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_LossonExtinguishmentofDebt_ThreeMonths); + [Obsolete("LossonExtinguishmentofDebt was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("LossonExtinguishmentofDebt was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_LossonExtinguishmentofDebt_SixMonths); + [Obsolete("LossonExtinguishmentofDebt was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("LossonExtinguishmentofDebt was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_LossonExtinguishmentofDebt_NineMonths); + [Obsolete("LossonExtinguishmentofDebt was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("LossonExtinguishmentofDebt was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_LossonExtinguishmentofDebt_TwelveMonths); + [Obsolete("LossonExtinguishmentofDebt was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("LossonExtinguishmentofDebt was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_LossonExtinguishmentofDebt_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_LossonExtinguishmentofDebt_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("LossonExtinguishmentofDebt was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/MachineryFurnitureEquipmentBalanceSheet.cs b/Common/Data/Fundamental/Generated/MachineryFurnitureEquipmentBalanceSheet.cs index c7f398053379..1d7609525610 100644 --- a/Common/Data/Fundamental/Generated/MachineryFurnitureEquipmentBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/MachineryFurnitureEquipmentBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class MachineryFurnitureEquipmentBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_MachineryFurnitureEquipment_OneMonth); + [Obsolete("MachineryFurnitureEquipment was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("MachineryFurnitureEquipment was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_MachineryFurnitureEquipment_TwoMonths); + [Obsolete("MachineryFurnitureEquipment was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("MachineryFurnitureEquipment was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_MachineryFurnitureEquipment_ThreeMonths); + [Obsolete("MachineryFurnitureEquipment was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("MachineryFurnitureEquipment was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_MachineryFurnitureEquipment_SixMonths); + [Obsolete("MachineryFurnitureEquipment was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("MachineryFurnitureEquipment was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_MachineryFurnitureEquipment_NineMonths); + [Obsolete("MachineryFurnitureEquipment was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("MachineryFurnitureEquipment was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_MachineryFurnitureEquipment_TwelveMonths); + [Obsolete("MachineryFurnitureEquipment was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("MachineryFurnitureEquipment was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_MachineryFurnitureEquipment_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_MachineryFurnitureEquipment_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("MachineryFurnitureEquipment was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/MaintenanceAndRepairsIncomeStatement.cs b/Common/Data/Fundamental/Generated/MaintenanceAndRepairsIncomeStatement.cs index 90557d13a3bc..23df61c4a3d3 100644 --- a/Common/Data/Fundamental/Generated/MaintenanceAndRepairsIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/MaintenanceAndRepairsIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class MaintenanceAndRepairsIncomeStatement : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_MaintenanceAndRepairs_OneMonth); + [Obsolete("MaintenanceAndRepairs was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("MaintenanceAndRepairs was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_MaintenanceAndRepairs_TwoMonths); + [Obsolete("MaintenanceAndRepairs was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("MaintenanceAndRepairs was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_MaintenanceAndRepairs_ThreeMonths); + [Obsolete("MaintenanceAndRepairs was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("MaintenanceAndRepairs was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_MaintenanceAndRepairs_SixMonths); + [Obsolete("MaintenanceAndRepairs was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("MaintenanceAndRepairs was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_MaintenanceAndRepairs_NineMonths); + [Obsolete("MaintenanceAndRepairs was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("MaintenanceAndRepairs was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_MaintenanceAndRepairs_TwelveMonths); + [Obsolete("MaintenanceAndRepairs was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("MaintenanceAndRepairs was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_MaintenanceAndRepairs_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_MaintenanceAndRepairs_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("MaintenanceAndRepairs was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/MaterialsAndSuppliesBalanceSheet.cs b/Common/Data/Fundamental/Generated/MaterialsAndSuppliesBalanceSheet.cs index 02fe8bc87a3f..1c56cfe290e6 100644 --- a/Common/Data/Fundamental/Generated/MaterialsAndSuppliesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/MaterialsAndSuppliesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class MaterialsAndSuppliesBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_MaterialsAndSupplies_ThreeMonths); + [Obsolete("MaterialsAndSupplies was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("MaterialsAndSupplies was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_MaterialsAndSupplies_TwelveMonths); + [Obsolete("MaterialsAndSupplies was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("MaterialsAndSupplies was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_MaterialsAndSupplies_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_MaterialsAndSupplies_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("MaterialsAndSupplies was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/MergerAndAcquisitionIncomeExpenseSupplementalIncomeStatement.cs b/Common/Data/Fundamental/Generated/MergerAndAcquisitionIncomeExpenseSupplementalIncomeStatement.cs new file mode 100644 index 000000000000..4c6a754a6bfc --- /dev/null +++ b/Common/Data/Fundamental/Generated/MergerAndAcquisitionIncomeExpenseSupplementalIncomeStatement.cs @@ -0,0 +1,119 @@ +/* + * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. + * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * +*/ + +using System; +using System.Linq; +using Python.Runtime; +using Newtonsoft.Json; +using System.Collections.Generic; +using QuantConnect.Data.UniverseSelection; + +namespace QuantConnect.Data.Fundamental +{ + /// + /// Income or expense arising from mergers and acquisitions. It is a supplemental value which would be reported outside consolidated statements. + /// + public class MergerAndAcquisitionIncomeExpenseSupplementalIncomeStatement : MultiPeriodField + { + /// + /// The default period + /// + protected override string DefaultPeriod => "TwelveMonths"; + + /// + /// Gets/sets the ThreeMonths period value for the field + /// + [JsonProperty("3M")] + public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_MergerAndAcquisitionIncomeExpenseSupplemental_ThreeMonths); + + /// + /// Gets/sets the SixMonths period value for the field + /// + [JsonProperty("6M")] + public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_MergerAndAcquisitionIncomeExpenseSupplemental_SixMonths); + + /// + /// Gets/sets the NineMonths period value for the field + /// + [JsonProperty("9M")] + public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_MergerAndAcquisitionIncomeExpenseSupplemental_NineMonths); + + /// + /// Gets/sets the TwelveMonths period value for the field + /// + [JsonProperty("12M")] + public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_MergerAndAcquisitionIncomeExpenseSupplemental_TwelveMonths); + + /// + /// Returns true if the field contains a value for the default period + /// + public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_MergerAndAcquisitionIncomeExpenseSupplemental_TwelveMonths)); + + /// + /// Returns the default value for the field + /// + public override double Value + { + get + { + var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_MergerAndAcquisitionIncomeExpenseSupplemental_TwelveMonths); + if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) + { + return defaultValue; + } + return base.Value; + } + } + + /// + /// Gets a dictionary of period names and values for the field + /// + /// The dictionary of period names and values + public override IReadOnlyDictionary GetPeriodValues() + { + var result = new Dictionary(); + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + { + if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) + { + result[kvp.Item1] = kvp.Item2; + } + } + return result; + } + + /// + /// Gets the value of the field for the requested period + /// + /// The requested period + /// The value for the period + public override double GetPeriodValue(string period) => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, Enum.Parse($"FinancialStatements_IncomeStatement_MergerAndAcquisitionIncomeExpenseSupplemental_{ConvertPeriod(period)}")); + + /// + /// Creates a new empty instance + /// + public MergerAndAcquisitionIncomeExpenseSupplementalIncomeStatement() + { + } + + /// + /// Creates a new instance for the given time and security + /// + public MergerAndAcquisitionIncomeExpenseSupplementalIncomeStatement(ITimeProvider timeProvider, SecurityIdentifier securityIdentifier) : base(timeProvider, securityIdentifier) + { + } + } +} diff --git a/Common/Data/Fundamental/Generated/MineralPropertiesBalanceSheet.cs b/Common/Data/Fundamental/Generated/MineralPropertiesBalanceSheet.cs index 23c1b25e6306..b12b745de65f 100644 --- a/Common/Data/Fundamental/Generated/MineralPropertiesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/MineralPropertiesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class MineralPropertiesBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_MineralProperties_ThreeMonths); + [Obsolete("MineralProperties was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("MineralProperties was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_MineralProperties_SixMonths); + [Obsolete("MineralProperties was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("MineralProperties was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_MineralProperties_NineMonths); + [Obsolete("MineralProperties was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("MineralProperties was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_MineralProperties_TwelveMonths); + [Obsolete("MineralProperties was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("MineralProperties was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_MineralProperties_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_MineralProperties_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("MineralProperties was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/MinimumPensionLiabilitiesBalanceSheet.cs b/Common/Data/Fundamental/Generated/MinimumPensionLiabilitiesBalanceSheet.cs index 4042239a7ba9..3f5c1fd35b5a 100644 --- a/Common/Data/Fundamental/Generated/MinimumPensionLiabilitiesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/MinimumPensionLiabilitiesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class MinimumPensionLiabilitiesBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_MinimumPensionLiabilities_ThreeMonths); + [Obsolete("MinimumPensionLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("MinimumPensionLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_MinimumPensionLiabilities_TwelveMonths); + [Obsolete("MinimumPensionLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("MinimumPensionLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_MinimumPensionLiabilities_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_MinimumPensionLiabilities_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("MinimumPensionLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/MinorityInterestBalanceSheet.cs b/Common/Data/Fundamental/Generated/MinorityInterestBalanceSheet.cs index bf6d1fcf4fe5..737c9a91cbce 100644 --- a/Common/Data/Fundamental/Generated/MinorityInterestBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/MinorityInterestBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,7 +37,8 @@ public class MinorityInterestBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_MinorityInterest_OneMonth); + [Obsolete("MinorityInterest.OneMonth was retired by Morningstar in 2026; use MinorityInterest.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("MinorityInterest.OneMonth was retired by Morningstar in 2026; use MinorityInterest.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field @@ -61,7 +62,8 @@ public class MinorityInterestBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_MinorityInterest_NineMonths); + [Obsolete("MinorityInterest.NineMonths was retired by Morningstar in 2026; use MinorityInterest.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("MinorityInterest.NineMonths was retired by Morningstar in 2026; use MinorityInterest.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +99,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/MoneyMarketInvestmentsBalanceSheet.cs b/Common/Data/Fundamental/Generated/MoneyMarketInvestmentsBalanceSheet.cs index 52c40c57f288..af291d844780 100644 --- a/Common/Data/Fundamental/Generated/MoneyMarketInvestmentsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/MoneyMarketInvestmentsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class MoneyMarketInvestmentsBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_MoneyMarketInvestments_ThreeMonths); + [Obsolete("MoneyMarketInvestments was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("MoneyMarketInvestments was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_MoneyMarketInvestments_SixMonths); + [Obsolete("MoneyMarketInvestments was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("MoneyMarketInvestments was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_MoneyMarketInvestments_NineMonths); + [Obsolete("MoneyMarketInvestments was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("MoneyMarketInvestments was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_MoneyMarketInvestments_TwelveMonths); + [Obsolete("MoneyMarketInvestments was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("MoneyMarketInvestments was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_MoneyMarketInvestments_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_MoneyMarketInvestments_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("MoneyMarketInvestments was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/MortgageAndConsumerloansBalanceSheet.cs b/Common/Data/Fundamental/Generated/MortgageAndConsumerloansBalanceSheet.cs index a4d160fd6455..a6252d181fef 100644 --- a/Common/Data/Fundamental/Generated/MortgageAndConsumerloansBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/MortgageAndConsumerloansBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class MortgageAndConsumerloansBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_MortgageAndConsumerloans_ThreeMonths); + [Obsolete("MortgageAndConsumerloans was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("MortgageAndConsumerloans was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_MortgageAndConsumerloans_TwelveMonths); + [Obsolete("MortgageAndConsumerloans was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("MortgageAndConsumerloans was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_MortgageAndConsumerloans_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_MortgageAndConsumerloans_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("MortgageAndConsumerloans was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/MortgageLoanBalanceSheet.cs b/Common/Data/Fundamental/Generated/MortgageLoanBalanceSheet.cs index b9e9166aa14a..048ba6cef1f6 100644 --- a/Common/Data/Fundamental/Generated/MortgageLoanBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/MortgageLoanBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class MortgageLoanBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_MortgageLoan_ThreeMonths); + [Obsolete("MortgageLoan was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("MortgageLoan was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_MortgageLoan_SixMonths); + [Obsolete("MortgageLoan was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("MortgageLoan was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_MortgageLoan_NineMonths); + [Obsolete("MortgageLoan was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("MortgageLoan was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_MortgageLoan_TwelveMonths); + [Obsolete("MortgageLoan was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("MortgageLoan was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_MortgageLoan_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_MortgageLoan_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("MortgageLoan was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/NegativeGoodwillImmediatelyRecognizedIncomeStatement.cs b/Common/Data/Fundamental/Generated/NegativeGoodwillImmediatelyRecognizedIncomeStatement.cs index d9547ab7bb9e..96728a172081 100644 --- a/Common/Data/Fundamental/Generated/NegativeGoodwillImmediatelyRecognizedIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/NegativeGoodwillImmediatelyRecognizedIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,40 +37,32 @@ public class NegativeGoodwillImmediatelyRecognizedIncomeStatement : MultiPeriodF /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NegativeGoodwillImmediatelyRecognized_ThreeMonths); + [Obsolete("NegativeGoodwillImmediatelyRecognized was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("NegativeGoodwillImmediatelyRecognized was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NegativeGoodwillImmediatelyRecognized_SixMonths); + [Obsolete("NegativeGoodwillImmediatelyRecognized was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("NegativeGoodwillImmediatelyRecognized was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NegativeGoodwillImmediatelyRecognized_TwelveMonths); + [Obsolete("NegativeGoodwillImmediatelyRecognized was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("NegativeGoodwillImmediatelyRecognized was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NegativeGoodwillImmediatelyRecognized_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NegativeGoodwillImmediatelyRecognized_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("NegativeGoodwillImmediatelyRecognized was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -79,7 +71,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/NetDebtBalanceSheet.cs b/Common/Data/Fundamental/Generated/NetDebtBalanceSheet.cs index db61d7344b92..9d5487b8f892 100644 --- a/Common/Data/Fundamental/Generated/NetDebtBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/NetDebtBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class NetDebtBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NetDebt_OneMonth); + [Obsolete("NetDebt.OneMonth was retired by Morningstar in 2026; use NetDebt.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("NetDebt.OneMonth was retired by Morningstar in 2026; use NetDebt.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NetDebt_TwoMonths); + [Obsolete("NetDebt.TwoMonths was retired by Morningstar in 2026; use NetDebt.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("NetDebt.TwoMonths was retired by Morningstar in 2026; use NetDebt.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class NetDebtBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NetDebt_NineMonths); + [Obsolete("NetDebt.NineMonths was retired by Morningstar in 2026; use NetDebt.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("NetDebt.NineMonths was retired by Morningstar in 2026; use NetDebt.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/NetForeignCurrencyExchangeGainLossCashFlowStatement.cs b/Common/Data/Fundamental/Generated/NetForeignCurrencyExchangeGainLossCashFlowStatement.cs index 1bf01a828877..0cb09921be3b 100644 --- a/Common/Data/Fundamental/Generated/NetForeignCurrencyExchangeGainLossCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/NetForeignCurrencyExchangeGainLossCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,52 +37,46 @@ public class NetForeignCurrencyExchangeGainLossCashFlowStatement : MultiPeriodFi /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_NetForeignCurrencyExchangeGainLoss_OneMonth); + [Obsolete("NetForeignCurrencyExchangeGainLoss was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("NetForeignCurrencyExchangeGainLoss was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_NetForeignCurrencyExchangeGainLoss_ThreeMonths); + [Obsolete("NetForeignCurrencyExchangeGainLoss was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("NetForeignCurrencyExchangeGainLoss was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_NetForeignCurrencyExchangeGainLoss_SixMonths); + [Obsolete("NetForeignCurrencyExchangeGainLoss was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("NetForeignCurrencyExchangeGainLoss was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_NetForeignCurrencyExchangeGainLoss_NineMonths); + [Obsolete("NetForeignCurrencyExchangeGainLoss was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("NetForeignCurrencyExchangeGainLoss was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_NetForeignCurrencyExchangeGainLoss_TwelveMonths); + [Obsolete("NetForeignCurrencyExchangeGainLoss was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("NetForeignCurrencyExchangeGainLoss was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_NetForeignCurrencyExchangeGainLoss_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_NetForeignCurrencyExchangeGainLoss_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("NetForeignCurrencyExchangeGainLoss was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -91,7 +85,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/NetForeignExchangeGainLossIncomeStatement.cs b/Common/Data/Fundamental/Generated/NetForeignExchangeGainLossIncomeStatement.cs index 8b839a3d0069..ff22a7969df7 100644 --- a/Common/Data/Fundamental/Generated/NetForeignExchangeGainLossIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/NetForeignExchangeGainLossIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/NetIncomeFromTaxLossCarryforwardIncomeStatement.cs b/Common/Data/Fundamental/Generated/NetIncomeFromTaxLossCarryforwardIncomeStatement.cs index 453bf1a493d4..02c0df1262a3 100644 --- a/Common/Data/Fundamental/Generated/NetIncomeFromTaxLossCarryforwardIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/NetIncomeFromTaxLossCarryforwardIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class NetIncomeFromTaxLossCarryforwardIncomeStatement : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NetIncomeFromTaxLossCarryforward_ThreeMonths); + [Obsolete("NetIncomeFromTaxLossCarryforward was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("NetIncomeFromTaxLossCarryforward was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NetIncomeFromTaxLossCarryforward_SixMonths); + [Obsolete("NetIncomeFromTaxLossCarryforward was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("NetIncomeFromTaxLossCarryforward was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NetIncomeFromTaxLossCarryforward_NineMonths); + [Obsolete("NetIncomeFromTaxLossCarryforward was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("NetIncomeFromTaxLossCarryforward was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NetIncomeFromTaxLossCarryforward_TwelveMonths); + [Obsolete("NetIncomeFromTaxLossCarryforward was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("NetIncomeFromTaxLossCarryforward was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NetIncomeFromTaxLossCarryforward_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NetIncomeFromTaxLossCarryforward_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("NetIncomeFromTaxLossCarryforward was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/NetIncomePerEmployee.cs b/Common/Data/Fundamental/Generated/NetIncomePerEmployee.cs index 74ef0052a525..870e16c321e8 100644 --- a/Common/Data/Fundamental/Generated/NetIncomePerEmployee.cs +++ b/Common/Data/Fundamental/Generated/NetIncomePerEmployee.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -43,7 +43,8 @@ public class NetIncomePerEmployee : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_NetIncomePerEmployee_ThreeMonths); + [Obsolete("NetIncomePerEmployee.ThreeMonths was retired by Morningstar in 2026; use NetIncomePerEmployee.OneYear.")] + public double ThreeMonths => throw new NotSupportedException("NetIncomePerEmployee.ThreeMonths was retired by Morningstar in 2026; use NetIncomePerEmployee.OneYear."); /// /// Returns true if the field contains a value for the default period @@ -73,7 +74,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1Y",OneYear), new Tuple("3M",ThreeMonths) }) + foreach (var kvp in new[] { new Tuple("1Y",OneYear) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/NetInterestMargin.cs b/Common/Data/Fundamental/Generated/NetInterestMargin.cs new file mode 100644 index 000000000000..6db96363d4ed --- /dev/null +++ b/Common/Data/Fundamental/Generated/NetInterestMargin.cs @@ -0,0 +1,125 @@ +/* + * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. + * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * +*/ + +using System; +using System.Linq; +using Python.Runtime; +using Newtonsoft.Json; +using System.Collections.Generic; +using QuantConnect.Data.UniverseSelection; + +namespace QuantConnect.Data.Fundamental +{ + /// + /// Net interest income divided by average earning assets + /// + public class NetInterestMargin : MultiPeriodField + { + /// + /// The default period + /// + protected override string DefaultPeriod => "TwelveMonths"; + + /// + /// Gets/sets the OneMonth period value for the field + /// + [JsonProperty("1M")] + public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_NetInterestMargin_OneMonth); + + /// + /// Gets/sets the ThreeMonths period value for the field + /// + [JsonProperty("3M")] + public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_NetInterestMargin_ThreeMonths); + + /// + /// Gets/sets the SixMonths period value for the field + /// + [JsonProperty("6M")] + public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_NetInterestMargin_SixMonths); + + /// + /// Gets/sets the NineMonths period value for the field + /// + [JsonProperty("9M")] + public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_NetInterestMargin_NineMonths); + + /// + /// Gets/sets the TwelveMonths period value for the field + /// + [JsonProperty("12M")] + public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_NetInterestMargin_TwelveMonths); + + /// + /// Returns true if the field contains a value for the default period + /// + public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_NetInterestMargin_TwelveMonths)); + + /// + /// Returns the default value for the field + /// + public override double Value + { + get + { + var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_NetInterestMargin_TwelveMonths); + if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) + { + return defaultValue; + } + return base.Value; + } + } + + /// + /// Gets a dictionary of period names and values for the field + /// + /// The dictionary of period names and values + public override IReadOnlyDictionary GetPeriodValues() + { + var result = new Dictionary(); + foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + { + if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) + { + result[kvp.Item1] = kvp.Item2; + } + } + return result; + } + + /// + /// Gets the value of the field for the requested period + /// + /// The requested period + /// The value for the period + public override double GetPeriodValue(string period) => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, Enum.Parse($"FinancialStatements_NetInterestMargin_{ConvertPeriod(period)}")); + + /// + /// Creates a new empty instance + /// + public NetInterestMargin() + { + } + + /// + /// Creates a new instance for the given time and security + /// + public NetInterestMargin(ITimeProvider timeProvider, SecurityIdentifier securityIdentifier) : base(timeProvider, securityIdentifier) + { + } + } +} diff --git a/Common/Data/Fundamental/Generated/NetInterestSpread.cs b/Common/Data/Fundamental/Generated/NetInterestSpread.cs new file mode 100644 index 000000000000..57c7c6a13d12 --- /dev/null +++ b/Common/Data/Fundamental/Generated/NetInterestSpread.cs @@ -0,0 +1,125 @@ +/* + * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. + * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * +*/ + +using System; +using System.Linq; +using Python.Runtime; +using Newtonsoft.Json; +using System.Collections.Generic; +using QuantConnect.Data.UniverseSelection; + +namespace QuantConnect.Data.Fundamental +{ + /// + /// The difference between the yield on earning assets and the rate paid on funding + /// + public class NetInterestSpread : MultiPeriodField + { + /// + /// The default period + /// + protected override string DefaultPeriod => "TwelveMonths"; + + /// + /// Gets/sets the OneMonth period value for the field + /// + [JsonProperty("1M")] + public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_NetInterestSpread_OneMonth); + + /// + /// Gets/sets the ThreeMonths period value for the field + /// + [JsonProperty("3M")] + public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_NetInterestSpread_ThreeMonths); + + /// + /// Gets/sets the SixMonths period value for the field + /// + [JsonProperty("6M")] + public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_NetInterestSpread_SixMonths); + + /// + /// Gets/sets the NineMonths period value for the field + /// + [JsonProperty("9M")] + public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_NetInterestSpread_NineMonths); + + /// + /// Gets/sets the TwelveMonths period value for the field + /// + [JsonProperty("12M")] + public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_NetInterestSpread_TwelveMonths); + + /// + /// Returns true if the field contains a value for the default period + /// + public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_NetInterestSpread_TwelveMonths)); + + /// + /// Returns the default value for the field + /// + public override double Value + { + get + { + var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_NetInterestSpread_TwelveMonths); + if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) + { + return defaultValue; + } + return base.Value; + } + } + + /// + /// Gets a dictionary of period names and values for the field + /// + /// The dictionary of period names and values + public override IReadOnlyDictionary GetPeriodValues() + { + var result = new Dictionary(); + foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + { + if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) + { + result[kvp.Item1] = kvp.Item2; + } + } + return result; + } + + /// + /// Gets the value of the field for the requested period + /// + /// The requested period + /// The value for the period + public override double GetPeriodValue(string period) => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, Enum.Parse($"FinancialStatements_NetInterestSpread_{ConvertPeriod(period)}")); + + /// + /// Creates a new empty instance + /// + public NetInterestSpread() + { + } + + /// + /// Creates a new instance for the given time and security + /// + public NetInterestSpread(ITimeProvider timeProvider, SecurityIdentifier securityIdentifier) : base(timeProvider, securityIdentifier) + { + } + } +} diff --git a/Common/Data/Fundamental/Generated/NetInvestmentIncomeIncomeStatement.cs b/Common/Data/Fundamental/Generated/NetInvestmentIncomeIncomeStatement.cs index 43d66893df24..3489978d94fa 100644 --- a/Common/Data/Fundamental/Generated/NetInvestmentIncomeIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/NetInvestmentIncomeIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/NetInvestmentPropertiesPurchaseAndSaleCashFlowStatement.cs b/Common/Data/Fundamental/Generated/NetInvestmentPropertiesPurchaseAndSaleCashFlowStatement.cs index 52ddeb5ca490..98277e324233 100644 --- a/Common/Data/Fundamental/Generated/NetInvestmentPropertiesPurchaseAndSaleCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/NetInvestmentPropertiesPurchaseAndSaleCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/NetLoanBalanceSheet.cs b/Common/Data/Fundamental/Generated/NetLoanBalanceSheet.cs index 2461a8fe074b..633911a307d9 100644 --- a/Common/Data/Fundamental/Generated/NetLoanBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/NetLoanBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -49,7 +49,8 @@ public class NetLoanBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NetLoan_NineMonths); + [Obsolete("NetLoan.NineMonths was retired by Morningstar in 2026; use NetLoan.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("NetLoan.NineMonths was retired by Morningstar in 2026; use NetLoan.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -85,7 +86,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/NetOutwardLoansCashFlowStatement.cs b/Common/Data/Fundamental/Generated/NetOutwardLoansCashFlowStatement.cs index 8b333ceb8b78..841d2f52c61e 100644 --- a/Common/Data/Fundamental/Generated/NetOutwardLoansCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/NetOutwardLoansCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/NetPPEBalanceSheet.cs b/Common/Data/Fundamental/Generated/NetPPEBalanceSheet.cs index 633cef2505ab..09d53a14230b 100644 --- a/Common/Data/Fundamental/Generated/NetPPEBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/NetPPEBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class NetPPEBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NetPPE_OneMonth); + [Obsolete("NetPPE.OneMonth was retired by Morningstar in 2026; use NetPPE.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("NetPPE.OneMonth was retired by Morningstar in 2026; use NetPPE.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NetPPE_TwoMonths); + [Obsolete("NetPPE.TwoMonths was retired by Morningstar in 2026; use NetPPE.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("NetPPE.TwoMonths was retired by Morningstar in 2026; use NetPPE.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class NetPPEBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NetPPE_NineMonths); + [Obsolete("NetPPE.NineMonths was retired by Morningstar in 2026; use NetPPE.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("NetPPE.NineMonths was retired by Morningstar in 2026; use NetPPE.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/NetPolicyholderBenefitsAndClaimsIncomeStatement.cs b/Common/Data/Fundamental/Generated/NetPolicyholderBenefitsAndClaimsIncomeStatement.cs index f36ded864322..659edfb46e62 100644 --- a/Common/Data/Fundamental/Generated/NetPolicyholderBenefitsAndClaimsIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/NetPolicyholderBenefitsAndClaimsIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class NetPolicyholderBenefitsAndClaimsIncomeStatement : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NetPolicyholderBenefitsAndClaims_ThreeMonths); + [Obsolete("NetPolicyholderBenefitsAndClaims was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("NetPolicyholderBenefitsAndClaims was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NetPolicyholderBenefitsAndClaims_SixMonths); + [Obsolete("NetPolicyholderBenefitsAndClaims was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("NetPolicyholderBenefitsAndClaims was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NetPolicyholderBenefitsAndClaims_NineMonths); + [Obsolete("NetPolicyholderBenefitsAndClaims was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("NetPolicyholderBenefitsAndClaims was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NetPolicyholderBenefitsAndClaims_TwelveMonths); + [Obsolete("NetPolicyholderBenefitsAndClaims was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("NetPolicyholderBenefitsAndClaims was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NetPolicyholderBenefitsAndClaims_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NetPolicyholderBenefitsAndClaims_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("NetPolicyholderBenefitsAndClaims was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/NetPremiumsWrittenIncomeStatement.cs b/Common/Data/Fundamental/Generated/NetPremiumsWrittenIncomeStatement.cs index 3e635d17e306..1eb95d699792 100644 --- a/Common/Data/Fundamental/Generated/NetPremiumsWrittenIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/NetPremiumsWrittenIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/NetProceedsPaymentForLoanCashFlowStatement.cs b/Common/Data/Fundamental/Generated/NetProceedsPaymentForLoanCashFlowStatement.cs index 857e4fa872b8..15f51a99f477 100644 --- a/Common/Data/Fundamental/Generated/NetProceedsPaymentForLoanCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/NetProceedsPaymentForLoanCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/NetRealizedGainLossOnInvestmentsIncomeStatement.cs b/Common/Data/Fundamental/Generated/NetRealizedGainLossOnInvestmentsIncomeStatement.cs index 7e84fb146285..2dcd94fc050c 100644 --- a/Common/Data/Fundamental/Generated/NetRealizedGainLossOnInvestmentsIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/NetRealizedGainLossOnInvestmentsIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class NetRealizedGainLossOnInvestmentsIncomeStatement : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NetRealizedGainLossOnInvestments_ThreeMonths); + [Obsolete("NetRealizedGainLossOnInvestments was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("NetRealizedGainLossOnInvestments was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NetRealizedGainLossOnInvestments_SixMonths); + [Obsolete("NetRealizedGainLossOnInvestments was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("NetRealizedGainLossOnInvestments was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NetRealizedGainLossOnInvestments_NineMonths); + [Obsolete("NetRealizedGainLossOnInvestments was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("NetRealizedGainLossOnInvestments was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NetRealizedGainLossOnInvestments_TwelveMonths); + [Obsolete("NetRealizedGainLossOnInvestments was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("NetRealizedGainLossOnInvestments was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NetRealizedGainLossOnInvestments_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NetRealizedGainLossOnInvestments_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("NetRealizedGainLossOnInvestments was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/NetTangibleAssetsBalanceSheet.cs b/Common/Data/Fundamental/Generated/NetTangibleAssetsBalanceSheet.cs index efb68a743430..c4a05001dbd2 100644 --- a/Common/Data/Fundamental/Generated/NetTangibleAssetsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/NetTangibleAssetsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class NetTangibleAssetsBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NetTangibleAssets_OneMonth); + [Obsolete("NetTangibleAssets.OneMonth was retired by Morningstar in 2026; use NetTangibleAssets.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("NetTangibleAssets.OneMonth was retired by Morningstar in 2026; use NetTangibleAssets.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NetTangibleAssets_TwoMonths); + [Obsolete("NetTangibleAssets.TwoMonths was retired by Morningstar in 2026; use NetTangibleAssets.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("NetTangibleAssets.TwoMonths was retired by Morningstar in 2026; use NetTangibleAssets.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class NetTangibleAssetsBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NetTangibleAssets_NineMonths); + [Obsolete("NetTangibleAssets.NineMonths was retired by Morningstar in 2026; use NetTangibleAssets.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("NetTangibleAssets.NineMonths was retired by Morningstar in 2026; use NetTangibleAssets.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/NetTradingIncomeIncomeStatement.cs b/Common/Data/Fundamental/Generated/NetTradingIncomeIncomeStatement.cs index 859cf5010f19..def141dc87ab 100644 --- a/Common/Data/Fundamental/Generated/NetTradingIncomeIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/NetTradingIncomeIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,28 +37,18 @@ public class NetTradingIncomeIncomeStatement : MultiPeriodField /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NetTradingIncome_TwelveMonths); + [Obsolete("NetTradingIncome was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("NetTradingIncome was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NetTradingIncome_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NetTradingIncome_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("NetTradingIncome was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -67,7 +57,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/NetUtilityPlantBalanceSheet.cs b/Common/Data/Fundamental/Generated/NetUtilityPlantBalanceSheet.cs index 1d38b36ed62c..fa0ce6b16233 100644 --- a/Common/Data/Fundamental/Generated/NetUtilityPlantBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/NetUtilityPlantBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,40 +37,32 @@ public class NetUtilityPlantBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NetUtilityPlant_ThreeMonths); + [Obsolete("NetUtilityPlant was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("NetUtilityPlant was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NetUtilityPlant_NineMonths); + [Obsolete("NetUtilityPlant was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("NetUtilityPlant was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NetUtilityPlant_TwelveMonths); + [Obsolete("NetUtilityPlant was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("NetUtilityPlant was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NetUtilityPlant_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NetUtilityPlant_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("NetUtilityPlant was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -79,7 +71,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/NonCurrentAccountsReceivableBalanceSheet.cs b/Common/Data/Fundamental/Generated/NonCurrentAccountsReceivableBalanceSheet.cs index f2a42e7f2ed3..eb61798a7ca6 100644 --- a/Common/Data/Fundamental/Generated/NonCurrentAccountsReceivableBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/NonCurrentAccountsReceivableBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class NonCurrentAccountsReceivableBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NonCurrentAccountsReceivable_ThreeMonths); + [Obsolete("NonCurrentAccountsReceivable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("NonCurrentAccountsReceivable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NonCurrentAccountsReceivable_SixMonths); + [Obsolete("NonCurrentAccountsReceivable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("NonCurrentAccountsReceivable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NonCurrentAccountsReceivable_NineMonths); + [Obsolete("NonCurrentAccountsReceivable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("NonCurrentAccountsReceivable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NonCurrentAccountsReceivable_TwelveMonths); + [Obsolete("NonCurrentAccountsReceivable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("NonCurrentAccountsReceivable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NonCurrentAccountsReceivable_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NonCurrentAccountsReceivable_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("NonCurrentAccountsReceivable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/NonCurrentAccruedExpensesBalanceSheet.cs b/Common/Data/Fundamental/Generated/NonCurrentAccruedExpensesBalanceSheet.cs index 4ed0ebe5f2b4..6a7088df55a1 100644 --- a/Common/Data/Fundamental/Generated/NonCurrentAccruedExpensesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/NonCurrentAccruedExpensesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -49,7 +49,8 @@ public class NonCurrentAccruedExpensesBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NonCurrentAccruedExpenses_NineMonths); + [Obsolete("NonCurrentAccruedExpenses.NineMonths was retired by Morningstar in 2026; use NonCurrentAccruedExpenses.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("NonCurrentAccruedExpenses.NineMonths was retired by Morningstar in 2026; use NonCurrentAccruedExpenses.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -85,7 +86,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/NonCurrentDeferredAssetsBalanceSheet.cs b/Common/Data/Fundamental/Generated/NonCurrentDeferredAssetsBalanceSheet.cs index 82cd631c6ae6..cd7a980e8fb4 100644 --- a/Common/Data/Fundamental/Generated/NonCurrentDeferredAssetsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/NonCurrentDeferredAssetsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class NonCurrentDeferredAssetsBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NonCurrentDeferredAssets_OneMonth); + [Obsolete("NonCurrentDeferredAssets.OneMonth was retired by Morningstar in 2026; use NonCurrentDeferredAssets.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("NonCurrentDeferredAssets.OneMonth was retired by Morningstar in 2026; use NonCurrentDeferredAssets.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NonCurrentDeferredAssets_TwoMonths); + [Obsolete("NonCurrentDeferredAssets.TwoMonths was retired by Morningstar in 2026; use NonCurrentDeferredAssets.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("NonCurrentDeferredAssets.TwoMonths was retired by Morningstar in 2026; use NonCurrentDeferredAssets.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class NonCurrentDeferredAssetsBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NonCurrentDeferredAssets_NineMonths); + [Obsolete("NonCurrentDeferredAssets.NineMonths was retired by Morningstar in 2026; use NonCurrentDeferredAssets.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("NonCurrentDeferredAssets.NineMonths was retired by Morningstar in 2026; use NonCurrentDeferredAssets.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/NonCurrentDeferredLiabilitiesBalanceSheet.cs b/Common/Data/Fundamental/Generated/NonCurrentDeferredLiabilitiesBalanceSheet.cs index 56539d574ed1..7063f917d38d 100644 --- a/Common/Data/Fundamental/Generated/NonCurrentDeferredLiabilitiesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/NonCurrentDeferredLiabilitiesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class NonCurrentDeferredLiabilitiesBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NonCurrentDeferredLiabilities_OneMonth); + [Obsolete("NonCurrentDeferredLiabilities.OneMonth was retired by Morningstar in 2026; use NonCurrentDeferredLiabilities.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("NonCurrentDeferredLiabilities.OneMonth was retired by Morningstar in 2026; use NonCurrentDeferredLiabilities.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NonCurrentDeferredLiabilities_TwoMonths); + [Obsolete("NonCurrentDeferredLiabilities.TwoMonths was retired by Morningstar in 2026; use NonCurrentDeferredLiabilities.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("NonCurrentDeferredLiabilities.TwoMonths was retired by Morningstar in 2026; use NonCurrentDeferredLiabilities.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class NonCurrentDeferredLiabilitiesBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NonCurrentDeferredLiabilities_NineMonths); + [Obsolete("NonCurrentDeferredLiabilities.NineMonths was retired by Morningstar in 2026; use NonCurrentDeferredLiabilities.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("NonCurrentDeferredLiabilities.NineMonths was retired by Morningstar in 2026; use NonCurrentDeferredLiabilities.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/NonCurrentDeferredRevenueBalanceSheet.cs b/Common/Data/Fundamental/Generated/NonCurrentDeferredRevenueBalanceSheet.cs index 5549f1f24af9..ffdefbcf432d 100644 --- a/Common/Data/Fundamental/Generated/NonCurrentDeferredRevenueBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/NonCurrentDeferredRevenueBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class NonCurrentDeferredRevenueBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NonCurrentDeferredRevenue_OneMonth); + [Obsolete("NonCurrentDeferredRevenue.OneMonth was retired by Morningstar in 2026; use NonCurrentDeferredRevenue.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("NonCurrentDeferredRevenue.OneMonth was retired by Morningstar in 2026; use NonCurrentDeferredRevenue.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NonCurrentDeferredRevenue_TwoMonths); + [Obsolete("NonCurrentDeferredRevenue.TwoMonths was retired by Morningstar in 2026; use NonCurrentDeferredRevenue.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("NonCurrentDeferredRevenue.TwoMonths was retired by Morningstar in 2026; use NonCurrentDeferredRevenue.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class NonCurrentDeferredRevenueBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NonCurrentDeferredRevenue_NineMonths); + [Obsolete("NonCurrentDeferredRevenue.NineMonths was retired by Morningstar in 2026; use NonCurrentDeferredRevenue.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("NonCurrentDeferredRevenue.NineMonths was retired by Morningstar in 2026; use NonCurrentDeferredRevenue.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/NonCurrentDeferredTaxesAssetsBalanceSheet.cs b/Common/Data/Fundamental/Generated/NonCurrentDeferredTaxesAssetsBalanceSheet.cs index c87ba4ec8244..177b05261203 100644 --- a/Common/Data/Fundamental/Generated/NonCurrentDeferredTaxesAssetsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/NonCurrentDeferredTaxesAssetsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -43,7 +43,8 @@ public class NonCurrentDeferredTaxesAssetsBalanceSheet : MultiPeriodField /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NonCurrentDeferredTaxesAssets_TwoMonths); + [Obsolete("NonCurrentDeferredTaxesAssets.TwoMonths was retired by Morningstar in 2026; use NonCurrentDeferredTaxesAssets.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("NonCurrentDeferredTaxesAssets.TwoMonths was retired by Morningstar in 2026; use NonCurrentDeferredTaxesAssets.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +62,8 @@ public class NonCurrentDeferredTaxesAssetsBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NonCurrentDeferredTaxesAssets_NineMonths); + [Obsolete("NonCurrentDeferredTaxesAssets.NineMonths was retired by Morningstar in 2026; use NonCurrentDeferredTaxesAssets.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("NonCurrentDeferredTaxesAssets.NineMonths was retired by Morningstar in 2026; use NonCurrentDeferredTaxesAssets.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +99,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/NonCurrentDeferredTaxesLiabilitiesBalanceSheet.cs b/Common/Data/Fundamental/Generated/NonCurrentDeferredTaxesLiabilitiesBalanceSheet.cs index 2a9a0c4189b9..c582bc504dfa 100644 --- a/Common/Data/Fundamental/Generated/NonCurrentDeferredTaxesLiabilitiesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/NonCurrentDeferredTaxesLiabilitiesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class NonCurrentDeferredTaxesLiabilitiesBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NonCurrentDeferredTaxesLiabilities_OneMonth); + [Obsolete("NonCurrentDeferredTaxesLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("NonCurrentDeferredTaxesLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NonCurrentDeferredTaxesLiabilities_TwoMonths); + [Obsolete("NonCurrentDeferredTaxesLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("NonCurrentDeferredTaxesLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NonCurrentDeferredTaxesLiabilities_ThreeMonths); + [Obsolete("NonCurrentDeferredTaxesLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("NonCurrentDeferredTaxesLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NonCurrentDeferredTaxesLiabilities_SixMonths); + [Obsolete("NonCurrentDeferredTaxesLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("NonCurrentDeferredTaxesLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NonCurrentDeferredTaxesLiabilities_NineMonths); + [Obsolete("NonCurrentDeferredTaxesLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("NonCurrentDeferredTaxesLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NonCurrentDeferredTaxesLiabilities_TwelveMonths); + [Obsolete("NonCurrentDeferredTaxesLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("NonCurrentDeferredTaxesLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NonCurrentDeferredTaxesLiabilities_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NonCurrentDeferredTaxesLiabilities_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("NonCurrentDeferredTaxesLiabilities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/NonCurrentNoteReceivablesBalanceSheet.cs b/Common/Data/Fundamental/Generated/NonCurrentNoteReceivablesBalanceSheet.cs index 602b94070707..c6313e7ca7ea 100644 --- a/Common/Data/Fundamental/Generated/NonCurrentNoteReceivablesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/NonCurrentNoteReceivablesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class NonCurrentNoteReceivablesBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NonCurrentNoteReceivables_ThreeMonths); + [Obsolete("NonCurrentNoteReceivables was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("NonCurrentNoteReceivables was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NonCurrentNoteReceivables_SixMonths); + [Obsolete("NonCurrentNoteReceivables was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("NonCurrentNoteReceivables was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NonCurrentNoteReceivables_NineMonths); + [Obsolete("NonCurrentNoteReceivables was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("NonCurrentNoteReceivables was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NonCurrentNoteReceivables_TwelveMonths); + [Obsolete("NonCurrentNoteReceivables was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("NonCurrentNoteReceivables was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NonCurrentNoteReceivables_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NonCurrentNoteReceivables_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("NonCurrentNoteReceivables was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/NonCurrentPensionAndOtherPostretirementBenefitPlansBalanceSheet.cs b/Common/Data/Fundamental/Generated/NonCurrentPensionAndOtherPostretirementBenefitPlansBalanceSheet.cs index 2b168a7366c0..136cc5080ecb 100644 --- a/Common/Data/Fundamental/Generated/NonCurrentPensionAndOtherPostretirementBenefitPlansBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/NonCurrentPensionAndOtherPostretirementBenefitPlansBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -55,7 +55,8 @@ public class NonCurrentPensionAndOtherPostretirementBenefitPlansBalanceSheet : M /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NonCurrentPensionAndOtherPostretirementBenefitPlans_NineMonths); + [Obsolete("NonCurrentPensionAndOtherPostretirementBenefitPlans.NineMonths was retired by Morningstar in 2026; use NonCurrentPensionAndOtherPostretirementBenefitPlans.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("NonCurrentPensionAndOtherPostretirementBenefitPlans.NineMonths was retired by Morningstar in 2026; use NonCurrentPensionAndOtherPostretirementBenefitPlans.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -91,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/NonCurrentPrepaidAssetsBalanceSheet.cs b/Common/Data/Fundamental/Generated/NonCurrentPrepaidAssetsBalanceSheet.cs index 649007ee594a..328610138dab 100644 --- a/Common/Data/Fundamental/Generated/NonCurrentPrepaidAssetsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/NonCurrentPrepaidAssetsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/NonInterestBearingBorrowingsNonCurrentBalanceSheet.cs b/Common/Data/Fundamental/Generated/NonInterestBearingBorrowingsNonCurrentBalanceSheet.cs index e573d1375978..2c327fe71eb1 100644 --- a/Common/Data/Fundamental/Generated/NonInterestBearingBorrowingsNonCurrentBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/NonInterestBearingBorrowingsNonCurrentBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class NonInterestBearingBorrowingsNonCurrentBalanceSheet : MultiPeriodFie /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NonInterestBearingBorrowingsNonCurrent_ThreeMonths); + [Obsolete("NonInterestBearingBorrowingsNonCurrent was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("NonInterestBearingBorrowingsNonCurrent was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NonInterestBearingBorrowingsNonCurrent_TwelveMonths); + [Obsolete("NonInterestBearingBorrowingsNonCurrent was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("NonInterestBearingBorrowingsNonCurrent was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NonInterestBearingBorrowingsNonCurrent_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NonInterestBearingBorrowingsNonCurrent_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("NonInterestBearingBorrowingsNonCurrent was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/NonInterestBearingDepositsBalanceSheet.cs b/Common/Data/Fundamental/Generated/NonInterestBearingDepositsBalanceSheet.cs index a73cdc3bc8c8..520815d24ad2 100644 --- a/Common/Data/Fundamental/Generated/NonInterestBearingDepositsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/NonInterestBearingDepositsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class NonInterestBearingDepositsBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NonInterestBearingDeposits_ThreeMonths); + [Obsolete("NonInterestBearingDeposits was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("NonInterestBearingDeposits was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NonInterestBearingDeposits_SixMonths); + [Obsolete("NonInterestBearingDeposits was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("NonInterestBearingDeposits was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NonInterestBearingDeposits_NineMonths); + [Obsolete("NonInterestBearingDeposits was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("NonInterestBearingDeposits was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NonInterestBearingDeposits_TwelveMonths); + [Obsolete("NonInterestBearingDeposits was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("NonInterestBearingDeposits was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NonInterestBearingDeposits_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_NonInterestBearingDeposits_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("NonInterestBearingDeposits was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/NonPerformingAssetsLoans.cs b/Common/Data/Fundamental/Generated/NonPerformingAssetsLoans.cs new file mode 100644 index 000000000000..cdc171a68368 --- /dev/null +++ b/Common/Data/Fundamental/Generated/NonPerformingAssetsLoans.cs @@ -0,0 +1,125 @@ +/* + * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. + * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * +*/ + +using System; +using System.Linq; +using Python.Runtime; +using Newtonsoft.Json; +using System.Collections.Generic; +using QuantConnect.Data.UniverseSelection; + +namespace QuantConnect.Data.Fundamental +{ + /// + /// Loans on which the borrower is not making interest or principal payments as scheduled + /// + public class NonPerformingAssetsLoans : MultiPeriodField + { + /// + /// The default period + /// + protected override string DefaultPeriod => "TwelveMonths"; + + /// + /// Gets/sets the OneMonth period value for the field + /// + [JsonProperty("1M")] + public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_NonPerformingAssetsLoans_OneMonth); + + /// + /// Gets/sets the ThreeMonths period value for the field + /// + [JsonProperty("3M")] + public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_NonPerformingAssetsLoans_ThreeMonths); + + /// + /// Gets/sets the SixMonths period value for the field + /// + [JsonProperty("6M")] + public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_NonPerformingAssetsLoans_SixMonths); + + /// + /// Gets/sets the NineMonths period value for the field + /// + [JsonProperty("9M")] + public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_NonPerformingAssetsLoans_NineMonths); + + /// + /// Gets/sets the TwelveMonths period value for the field + /// + [JsonProperty("12M")] + public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_NonPerformingAssetsLoans_TwelveMonths); + + /// + /// Returns true if the field contains a value for the default period + /// + public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_NonPerformingAssetsLoans_TwelveMonths)); + + /// + /// Returns the default value for the field + /// + public override double Value + { + get + { + var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_NonPerformingAssetsLoans_TwelveMonths); + if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) + { + return defaultValue; + } + return base.Value; + } + } + + /// + /// Gets a dictionary of period names and values for the field + /// + /// The dictionary of period names and values + public override IReadOnlyDictionary GetPeriodValues() + { + var result = new Dictionary(); + foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + { + if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) + { + result[kvp.Item1] = kvp.Item2; + } + } + return result; + } + + /// + /// Gets the value of the field for the requested period + /// + /// The requested period + /// The value for the period + public override double GetPeriodValue(string period) => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, Enum.Parse($"FinancialStatements_NonPerformingAssetsLoans_{ConvertPeriod(period)}")); + + /// + /// Creates a new empty instance + /// + public NonPerformingAssetsLoans() + { + } + + /// + /// Creates a new instance for the given time and security + /// + public NonPerformingAssetsLoans(ITimeProvider timeProvider, SecurityIdentifier securityIdentifier) : base(timeProvider, securityIdentifier) + { + } + } +} diff --git a/Common/Data/Fundamental/Generated/NormalizedDilutedEPSGrowth.cs b/Common/Data/Fundamental/Generated/NormalizedDilutedEPSGrowth.cs index 76c96c5da20c..ee4bf84e1051 100644 --- a/Common/Data/Fundamental/Generated/NormalizedDilutedEPSGrowth.cs +++ b/Common/Data/Fundamental/Generated/NormalizedDilutedEPSGrowth.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class NormalizedDilutedEPSGrowth : MultiPeriodField /// Gets/sets the OneYear period value for the field /// [JsonProperty("1Y")] - public double OneYear => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningRatios_NormalizedDilutedEPSGrowth_OneYear); + [Obsolete("NormalizedDilutedEPSGrowth was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneYear => throw new NotSupportedException("NormalizedDilutedEPSGrowth was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningRatios_NormalizedDilutedEPSGrowth_ThreeMonths); + [Obsolete("NormalizedDilutedEPSGrowth was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("NormalizedDilutedEPSGrowth was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeYears period value for the field /// [JsonProperty("3Y")] - public double ThreeYears => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningRatios_NormalizedDilutedEPSGrowth_ThreeYears); + [Obsolete("NormalizedDilutedEPSGrowth was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeYears => throw new NotSupportedException("NormalizedDilutedEPSGrowth was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the FiveYears period value for the field /// [JsonProperty("5Y")] - public double FiveYears => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningRatios_NormalizedDilutedEPSGrowth_FiveYears); + [Obsolete("NormalizedDilutedEPSGrowth was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double FiveYears => throw new NotSupportedException("NormalizedDilutedEPSGrowth was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningRatios_NormalizedDilutedEPSGrowth_OneYear)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningRatios_NormalizedDilutedEPSGrowth_OneYear); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("NormalizedDilutedEPSGrowth was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1Y",OneYear), new Tuple("3M",ThreeMonths), new Tuple("3Y",ThreeYears), new Tuple("5Y",FiveYears) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/NormalizedEBITAsReportedIncomeStatement.cs b/Common/Data/Fundamental/Generated/NormalizedEBITAsReportedIncomeStatement.cs index 55acc0d73974..31ff5d14382b 100644 --- a/Common/Data/Fundamental/Generated/NormalizedEBITAsReportedIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/NormalizedEBITAsReportedIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class NormalizedEBITAsReportedIncomeStatement : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NormalizedEBITAsReported_ThreeMonths); + [Obsolete("NormalizedEBITAsReported was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("NormalizedEBITAsReported was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NormalizedEBITAsReported_SixMonths); + [Obsolete("NormalizedEBITAsReported was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("NormalizedEBITAsReported was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NormalizedEBITAsReported_NineMonths); + [Obsolete("NormalizedEBITAsReported was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("NormalizedEBITAsReported was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NormalizedEBITAsReported_TwelveMonths); + [Obsolete("NormalizedEBITAsReported was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("NormalizedEBITAsReported was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NormalizedEBITAsReported_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NormalizedEBITAsReported_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("NormalizedEBITAsReported was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/NormalizedEBITDAAsReportedIncomeStatement.cs b/Common/Data/Fundamental/Generated/NormalizedEBITDAAsReportedIncomeStatement.cs index 973967c6ef6a..1cfc00c05428 100644 --- a/Common/Data/Fundamental/Generated/NormalizedEBITDAAsReportedIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/NormalizedEBITDAAsReportedIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class NormalizedEBITDAAsReportedIncomeStatement : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NormalizedEBITDAAsReported_ThreeMonths); + [Obsolete("NormalizedEBITDAAsReported was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("NormalizedEBITDAAsReported was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NormalizedEBITDAAsReported_SixMonths); + [Obsolete("NormalizedEBITDAAsReported was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("NormalizedEBITDAAsReported was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NormalizedEBITDAAsReported_NineMonths); + [Obsolete("NormalizedEBITDAAsReported was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("NormalizedEBITDAAsReported was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NormalizedEBITDAAsReported_TwelveMonths); + [Obsolete("NormalizedEBITDAAsReported was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("NormalizedEBITDAAsReported was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NormalizedEBITDAAsReported_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NormalizedEBITDAAsReported_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("NormalizedEBITDAAsReported was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/NormalizedEBITDAIncomeStatement.cs b/Common/Data/Fundamental/Generated/NormalizedEBITDAIncomeStatement.cs index bd1a5302073f..5740f746f290 100644 --- a/Common/Data/Fundamental/Generated/NormalizedEBITDAIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/NormalizedEBITDAIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class NormalizedEBITDAIncomeStatement : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NormalizedEBITDA_OneMonth); + [Obsolete("NormalizedEBITDA was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("NormalizedEBITDA was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NormalizedEBITDA_TwoMonths); + [Obsolete("NormalizedEBITDA was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("NormalizedEBITDA was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NormalizedEBITDA_ThreeMonths); + [Obsolete("NormalizedEBITDA was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("NormalizedEBITDA was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NormalizedEBITDA_SixMonths); + [Obsolete("NormalizedEBITDA was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("NormalizedEBITDA was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NormalizedEBITDA_NineMonths); + [Obsolete("NormalizedEBITDA was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("NormalizedEBITDA was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NormalizedEBITDA_TwelveMonths); + [Obsolete("NormalizedEBITDA was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("NormalizedEBITDA was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NormalizedEBITDA_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NormalizedEBITDA_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("NormalizedEBITDA was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/NormalizedIncomeAsReportedIncomeStatement.cs b/Common/Data/Fundamental/Generated/NormalizedIncomeAsReportedIncomeStatement.cs index c3542f8727ab..66e4fb0bf4f9 100644 --- a/Common/Data/Fundamental/Generated/NormalizedIncomeAsReportedIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/NormalizedIncomeAsReportedIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class NormalizedIncomeAsReportedIncomeStatement : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NormalizedIncomeAsReported_ThreeMonths); + [Obsolete("NormalizedIncomeAsReported was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("NormalizedIncomeAsReported was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NormalizedIncomeAsReported_SixMonths); + [Obsolete("NormalizedIncomeAsReported was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("NormalizedIncomeAsReported was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NormalizedIncomeAsReported_NineMonths); + [Obsolete("NormalizedIncomeAsReported was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("NormalizedIncomeAsReported was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NormalizedIncomeAsReported_TwelveMonths); + [Obsolete("NormalizedIncomeAsReported was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("NormalizedIncomeAsReported was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NormalizedIncomeAsReported_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NormalizedIncomeAsReported_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("NormalizedIncomeAsReported was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/NormalizedOperatingProfitAsReportedIncomeStatement.cs b/Common/Data/Fundamental/Generated/NormalizedOperatingProfitAsReportedIncomeStatement.cs index 4278aae31823..40a653b52793 100644 --- a/Common/Data/Fundamental/Generated/NormalizedOperatingProfitAsReportedIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/NormalizedOperatingProfitAsReportedIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class NormalizedOperatingProfitAsReportedIncomeStatement : MultiPeriodFie /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NormalizedOperatingProfitAsReported_ThreeMonths); + [Obsolete("NormalizedOperatingProfitAsReported was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("NormalizedOperatingProfitAsReported was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NormalizedOperatingProfitAsReported_SixMonths); + [Obsolete("NormalizedOperatingProfitAsReported was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("NormalizedOperatingProfitAsReported was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NormalizedOperatingProfitAsReported_NineMonths); + [Obsolete("NormalizedOperatingProfitAsReported was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("NormalizedOperatingProfitAsReported was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NormalizedOperatingProfitAsReported_TwelveMonths); + [Obsolete("NormalizedOperatingProfitAsReported was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("NormalizedOperatingProfitAsReported was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NormalizedOperatingProfitAsReported_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_NormalizedOperatingProfitAsReported_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("NormalizedOperatingProfitAsReported was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/NormalizedPreTaxIncomeIncomeStatement.cs b/Common/Data/Fundamental/Generated/NormalizedPreTaxIncomeIncomeStatement.cs index 535387fe5fa7..e4c65a31bc1b 100644 --- a/Common/Data/Fundamental/Generated/NormalizedPreTaxIncomeIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/NormalizedPreTaxIncomeIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/NormalizedROIC.cs b/Common/Data/Fundamental/Generated/NormalizedROIC.cs index 0815c228d5ef..1c2b57601925 100644 --- a/Common/Data/Fundamental/Generated/NormalizedROIC.cs +++ b/Common/Data/Fundamental/Generated/NormalizedROIC.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -43,13 +43,15 @@ public class NormalizedROIC : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_NormalizedROIC_ThreeMonths); + [Obsolete("NormalizedROIC.ThreeMonths was retired by Morningstar in 2026; use NormalizedROIC.OneYear.")] + public double ThreeMonths => throw new NotSupportedException("NormalizedROIC.ThreeMonths was retired by Morningstar in 2026; use NormalizedROIC.OneYear."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_NormalizedROIC_SixMonths); + [Obsolete("NormalizedROIC.SixMonths was retired by Morningstar in 2026; use NormalizedROIC.OneYear.")] + public double SixMonths => throw new NotSupportedException("NormalizedROIC.SixMonths was retired by Morningstar in 2026; use NormalizedROIC.OneYear."); /// /// Returns true if the field contains a value for the default period @@ -79,7 +81,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1Y",OneYear), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths) }) + foreach (var kvp in new[] { new Tuple("1Y",OneYear) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/NotesReceivableBalanceSheet.cs b/Common/Data/Fundamental/Generated/NotesReceivableBalanceSheet.cs index ff83852abb1a..c76aa8306387 100644 --- a/Common/Data/Fundamental/Generated/NotesReceivableBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/NotesReceivableBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/NumberOfShareHolders.cs b/Common/Data/Fundamental/Generated/NumberOfShareHolders.cs index d81d0fa13209..7e37206e1f22 100644 --- a/Common/Data/Fundamental/Generated/NumberOfShareHolders.cs +++ b/Common/Data/Fundamental/Generated/NumberOfShareHolders.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class NumberOfShareHolders : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public long OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_NumberOfShareHolders_OneMonth); + [Obsolete("NumberOfShareHolders was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public long OneMonth => throw new NotSupportedException("NumberOfShareHolders was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public long TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_NumberOfShareHolders_TwoMonths); + [Obsolete("NumberOfShareHolders was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public long TwoMonths => throw new NotSupportedException("NumberOfShareHolders was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public long ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_NumberOfShareHolders_ThreeMonths); + [Obsolete("NumberOfShareHolders was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public long ThreeMonths => throw new NotSupportedException("NumberOfShareHolders was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public long SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_NumberOfShareHolders_SixMonths); + [Obsolete("NumberOfShareHolders was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public long SixMonths => throw new NotSupportedException("NumberOfShareHolders was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public long NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_NumberOfShareHolders_NineMonths); + [Obsolete("NumberOfShareHolders was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public long NineMonths => throw new NotSupportedException("NumberOfShareHolders was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public long TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_NumberOfShareHolders_TwelveMonths); + [Obsolete("NumberOfShareHolders was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public long TwelveMonths => throw new NotSupportedException("NumberOfShareHolders was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(long), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_NumberOfShareHolders_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override long Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_NumberOfShareHolders_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(long), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override long Value => throw new NotSupportedException("NumberOfShareHolders was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field diff --git a/Common/Data/Fundamental/Generated/OccupancyAndEquipmentIncomeStatement.cs b/Common/Data/Fundamental/Generated/OccupancyAndEquipmentIncomeStatement.cs index 7b4ff7d88e43..b894c6fe504f 100644 --- a/Common/Data/Fundamental/Generated/OccupancyAndEquipmentIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/OccupancyAndEquipmentIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class OccupancyAndEquipmentIncomeStatement : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_OccupancyAndEquipment_ThreeMonths); + [Obsolete("OccupancyAndEquipment was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("OccupancyAndEquipment was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_OccupancyAndEquipment_SixMonths); + [Obsolete("OccupancyAndEquipment was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("OccupancyAndEquipment was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_OccupancyAndEquipment_NineMonths); + [Obsolete("OccupancyAndEquipment was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("OccupancyAndEquipment was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_OccupancyAndEquipment_TwelveMonths); + [Obsolete("OccupancyAndEquipment was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("OccupancyAndEquipment was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_OccupancyAndEquipment_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_OccupancyAndEquipment_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("OccupancyAndEquipment was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/OperatingExpenseAsReportedIncomeStatement.cs b/Common/Data/Fundamental/Generated/OperatingExpenseAsReportedIncomeStatement.cs index a923062d47fe..43749e1a5b82 100644 --- a/Common/Data/Fundamental/Generated/OperatingExpenseAsReportedIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/OperatingExpenseAsReportedIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/OperatingGainsLossesCashFlowStatement.cs b/Common/Data/Fundamental/Generated/OperatingGainsLossesCashFlowStatement.cs index f2d519fe4e21..69fc4892887d 100644 --- a/Common/Data/Fundamental/Generated/OperatingGainsLossesCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/OperatingGainsLossesCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class OperatingGainsLossesCashFlowStatement : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_OperatingGainsLosses_OneMonth); + [Obsolete("OperatingGainsLosses was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("OperatingGainsLosses was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_OperatingGainsLosses_TwoMonths); + [Obsolete("OperatingGainsLosses was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("OperatingGainsLosses was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_OperatingGainsLosses_ThreeMonths); + [Obsolete("OperatingGainsLosses was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("OperatingGainsLosses was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_OperatingGainsLosses_SixMonths); + [Obsolete("OperatingGainsLosses was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("OperatingGainsLosses was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_OperatingGainsLosses_NineMonths); + [Obsolete("OperatingGainsLosses was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("OperatingGainsLosses was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_OperatingGainsLosses_TwelveMonths); + [Obsolete("OperatingGainsLosses was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("OperatingGainsLosses was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_OperatingGainsLosses_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_OperatingGainsLosses_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("OperatingGainsLosses was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/OperationRatios.cs b/Common/Data/Fundamental/Generated/OperationRatios.cs index a7e0505cdd06..7a98839fc707 100644 --- a/Common/Data/Fundamental/Generated/OperationRatios.cs +++ b/Common/Data/Fundamental/Generated/OperationRatios.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -535,6 +535,7 @@ public class OperationRatios : FundamentalTimeDependentProperty /// Morningstar DataId: 12028 /// [JsonProperty("12028")] + [Obsolete("RegressionGrowthOperatingRevenue5Years was retired by Morningstar in 2026 for all periods; no replacement is available.")] public RegressionGrowthOperatingRevenue5Years RegressionGrowthOperatingRevenue5Years => _regressionGrowthOperatingRevenue5Years ??= new(_timeProvider, _securityIdentifier); private RegressionGrowthOperatingRevenue5Years _regressionGrowthOperatingRevenue5Years; diff --git a/Common/Data/Fundamental/Generated/OrdinarySharesNumberBalanceSheet.cs b/Common/Data/Fundamental/Generated/OrdinarySharesNumberBalanceSheet.cs index f9405f3dff01..a1ec80a16002 100644 --- a/Common/Data/Fundamental/Generated/OrdinarySharesNumberBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/OrdinarySharesNumberBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/OtherAssetsBalanceSheet.cs b/Common/Data/Fundamental/Generated/OtherAssetsBalanceSheet.cs index 06d73cfe3338..062690ad6d3f 100644 --- a/Common/Data/Fundamental/Generated/OtherAssetsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/OtherAssetsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -55,7 +55,8 @@ public class OtherAssetsBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherAssets_NineMonths); + [Obsolete("OtherAssets.NineMonths was retired by Morningstar in 2026; use OtherAssets.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("OtherAssets.NineMonths was retired by Morningstar in 2026; use OtherAssets.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -91,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/OtherCashAdjustExcludeFromChangeinCashCashFlowStatement.cs b/Common/Data/Fundamental/Generated/OtherCashAdjustExcludeFromChangeinCashCashFlowStatement.cs index 2848115863d7..52f0b5f1635f 100644 --- a/Common/Data/Fundamental/Generated/OtherCashAdjustExcludeFromChangeinCashCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/OtherCashAdjustExcludeFromChangeinCashCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/OtherCashAdjustIncludedIntoChangeinCashCashFlowStatement.cs b/Common/Data/Fundamental/Generated/OtherCashAdjustIncludedIntoChangeinCashCashFlowStatement.cs index 2f3a14c2ffb0..3c31a01b0797 100644 --- a/Common/Data/Fundamental/Generated/OtherCashAdjustIncludedIntoChangeinCashCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/OtherCashAdjustIncludedIntoChangeinCashCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/OtherCashPaymentsfromOperatingActivitiesCashFlowStatement.cs b/Common/Data/Fundamental/Generated/OtherCashPaymentsfromOperatingActivitiesCashFlowStatement.cs index bb029eee344b..93e6a06ff953 100644 --- a/Common/Data/Fundamental/Generated/OtherCashPaymentsfromOperatingActivitiesCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/OtherCashPaymentsfromOperatingActivitiesCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,52 +37,46 @@ public class OtherCashPaymentsfromOperatingActivitiesCashFlowStatement : MultiPe /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_OtherCashPaymentsfromOperatingActivities_OneMonth); + [Obsolete("OtherCashPaymentsfromOperatingActivities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("OtherCashPaymentsfromOperatingActivities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_OtherCashPaymentsfromOperatingActivities_ThreeMonths); + [Obsolete("OtherCashPaymentsfromOperatingActivities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("OtherCashPaymentsfromOperatingActivities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_OtherCashPaymentsfromOperatingActivities_SixMonths); + [Obsolete("OtherCashPaymentsfromOperatingActivities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("OtherCashPaymentsfromOperatingActivities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_OtherCashPaymentsfromOperatingActivities_NineMonths); + [Obsolete("OtherCashPaymentsfromOperatingActivities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("OtherCashPaymentsfromOperatingActivities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_OtherCashPaymentsfromOperatingActivities_TwelveMonths); + [Obsolete("OtherCashPaymentsfromOperatingActivities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("OtherCashPaymentsfromOperatingActivities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_OtherCashPaymentsfromOperatingActivities_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_OtherCashPaymentsfromOperatingActivities_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("OtherCashPaymentsfromOperatingActivities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -91,7 +85,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/OtherCashReceiptsfromOperatingActivitiesCashFlowStatement.cs b/Common/Data/Fundamental/Generated/OtherCashReceiptsfromOperatingActivitiesCashFlowStatement.cs index 178ff3e253cb..dec0781bf517 100644 --- a/Common/Data/Fundamental/Generated/OtherCashReceiptsfromOperatingActivitiesCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/OtherCashReceiptsfromOperatingActivitiesCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,52 +37,46 @@ public class OtherCashReceiptsfromOperatingActivitiesCashFlowStatement : MultiPe /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_OtherCashReceiptsfromOperatingActivities_OneMonth); + [Obsolete("OtherCashReceiptsfromOperatingActivities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("OtherCashReceiptsfromOperatingActivities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_OtherCashReceiptsfromOperatingActivities_ThreeMonths); + [Obsolete("OtherCashReceiptsfromOperatingActivities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("OtherCashReceiptsfromOperatingActivities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_OtherCashReceiptsfromOperatingActivities_SixMonths); + [Obsolete("OtherCashReceiptsfromOperatingActivities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("OtherCashReceiptsfromOperatingActivities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_OtherCashReceiptsfromOperatingActivities_NineMonths); + [Obsolete("OtherCashReceiptsfromOperatingActivities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("OtherCashReceiptsfromOperatingActivities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_OtherCashReceiptsfromOperatingActivities_TwelveMonths); + [Obsolete("OtherCashReceiptsfromOperatingActivities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("OtherCashReceiptsfromOperatingActivities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_OtherCashReceiptsfromOperatingActivities_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_OtherCashReceiptsfromOperatingActivities_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("OtherCashReceiptsfromOperatingActivities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -91,7 +85,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/OtherCostofRevenueIncomeStatement.cs b/Common/Data/Fundamental/Generated/OtherCostofRevenueIncomeStatement.cs index f1660a3043c4..1507ba57d9ac 100644 --- a/Common/Data/Fundamental/Generated/OtherCostofRevenueIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/OtherCostofRevenueIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class OtherCostofRevenueIncomeStatement : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_OtherCostofRevenue_ThreeMonths); + [Obsolete("OtherCostofRevenue was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("OtherCostofRevenue was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_OtherCostofRevenue_SixMonths); + [Obsolete("OtherCostofRevenue was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("OtherCostofRevenue was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_OtherCostofRevenue_NineMonths); + [Obsolete("OtherCostofRevenue was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("OtherCostofRevenue was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_OtherCostofRevenue_TwelveMonths); + [Obsolete("OtherCostofRevenue was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("OtherCostofRevenue was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_OtherCostofRevenue_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_OtherCostofRevenue_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("OtherCostofRevenue was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/OtherCurrentAssetsBalanceSheet.cs b/Common/Data/Fundamental/Generated/OtherCurrentAssetsBalanceSheet.cs index 50083e1e1a1f..11ab774ba8d2 100644 --- a/Common/Data/Fundamental/Generated/OtherCurrentAssetsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/OtherCurrentAssetsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class OtherCurrentAssetsBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherCurrentAssets_OneMonth); + [Obsolete("OtherCurrentAssets.OneMonth was retired by Morningstar in 2026; use OtherCurrentAssets.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("OtherCurrentAssets.OneMonth was retired by Morningstar in 2026; use OtherCurrentAssets.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherCurrentAssets_TwoMonths); + [Obsolete("OtherCurrentAssets.TwoMonths was retired by Morningstar in 2026; use OtherCurrentAssets.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("OtherCurrentAssets.TwoMonths was retired by Morningstar in 2026; use OtherCurrentAssets.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class OtherCurrentAssetsBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherCurrentAssets_NineMonths); + [Obsolete("OtherCurrentAssets.NineMonths was retired by Morningstar in 2026; use OtherCurrentAssets.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("OtherCurrentAssets.NineMonths was retired by Morningstar in 2026; use OtherCurrentAssets.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/OtherCurrentBorrowingsBalanceSheet.cs b/Common/Data/Fundamental/Generated/OtherCurrentBorrowingsBalanceSheet.cs index 6f1d20ab8251..61c6c6ef783b 100644 --- a/Common/Data/Fundamental/Generated/OtherCurrentBorrowingsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/OtherCurrentBorrowingsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class OtherCurrentBorrowingsBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherCurrentBorrowings_ThreeMonths); + [Obsolete("OtherCurrentBorrowings was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("OtherCurrentBorrowings was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherCurrentBorrowings_SixMonths); + [Obsolete("OtherCurrentBorrowings was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("OtherCurrentBorrowings was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherCurrentBorrowings_NineMonths); + [Obsolete("OtherCurrentBorrowings was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("OtherCurrentBorrowings was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherCurrentBorrowings_TwelveMonths); + [Obsolete("OtherCurrentBorrowings was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("OtherCurrentBorrowings was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherCurrentBorrowings_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherCurrentBorrowings_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("OtherCurrentBorrowings was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/OtherCurrentLiabilitiesBalanceSheet.cs b/Common/Data/Fundamental/Generated/OtherCurrentLiabilitiesBalanceSheet.cs index 99bb9a494998..8c861fb2c250 100644 --- a/Common/Data/Fundamental/Generated/OtherCurrentLiabilitiesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/OtherCurrentLiabilitiesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class OtherCurrentLiabilitiesBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherCurrentLiabilities_OneMonth); + [Obsolete("OtherCurrentLiabilities.OneMonth was retired by Morningstar in 2026; use OtherCurrentLiabilities.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("OtherCurrentLiabilities.OneMonth was retired by Morningstar in 2026; use OtherCurrentLiabilities.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherCurrentLiabilities_TwoMonths); + [Obsolete("OtherCurrentLiabilities.TwoMonths was retired by Morningstar in 2026; use OtherCurrentLiabilities.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("OtherCurrentLiabilities.TwoMonths was retired by Morningstar in 2026; use OtherCurrentLiabilities.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class OtherCurrentLiabilitiesBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherCurrentLiabilities_NineMonths); + [Obsolete("OtherCurrentLiabilities.NineMonths was retired by Morningstar in 2026; use OtherCurrentLiabilities.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("OtherCurrentLiabilities.NineMonths was retired by Morningstar in 2026; use OtherCurrentLiabilities.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/OtherEquityAdjustmentsBalanceSheet.cs b/Common/Data/Fundamental/Generated/OtherEquityAdjustmentsBalanceSheet.cs index 4231932cffac..d49b98ae93e9 100644 --- a/Common/Data/Fundamental/Generated/OtherEquityAdjustmentsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/OtherEquityAdjustmentsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class OtherEquityAdjustmentsBalanceSheet : MultiPeriodField /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherEquityAdjustments_TwoMonths); + [Obsolete("OtherEquityAdjustments was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("OtherEquityAdjustments was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherEquityAdjustments_ThreeMonths); + [Obsolete("OtherEquityAdjustments was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("OtherEquityAdjustments was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherEquityAdjustments_SixMonths); + [Obsolete("OtherEquityAdjustments was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("OtherEquityAdjustments was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherEquityAdjustments_TwelveMonths); + [Obsolete("OtherEquityAdjustments was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("OtherEquityAdjustments was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherEquityAdjustments_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherEquityAdjustments_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("OtherEquityAdjustments was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/OtherEquityInterestBalanceSheet.cs b/Common/Data/Fundamental/Generated/OtherEquityInterestBalanceSheet.cs index 96573b9a0343..7b01f8e218b1 100644 --- a/Common/Data/Fundamental/Generated/OtherEquityInterestBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/OtherEquityInterestBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/OtherFinancialLiabilitiesBalanceSheet.cs b/Common/Data/Fundamental/Generated/OtherFinancialLiabilitiesBalanceSheet.cs index 5ce3abfa2d09..1566cc96f918 100644 --- a/Common/Data/Fundamental/Generated/OtherFinancialLiabilitiesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/OtherFinancialLiabilitiesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/OtherGAIncomeStatement.cs b/Common/Data/Fundamental/Generated/OtherGAIncomeStatement.cs index 419510f4bf0d..c92b3af73bb3 100644 --- a/Common/Data/Fundamental/Generated/OtherGAIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/OtherGAIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/OtherIntangibleAssetsBalanceSheet.cs b/Common/Data/Fundamental/Generated/OtherIntangibleAssetsBalanceSheet.cs index ad7a9be6a4f7..60f64e535de6 100644 --- a/Common/Data/Fundamental/Generated/OtherIntangibleAssetsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/OtherIntangibleAssetsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class OtherIntangibleAssetsBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherIntangibleAssets_OneMonth); + [Obsolete("OtherIntangibleAssets.OneMonth was retired by Morningstar in 2026; use OtherIntangibleAssets.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("OtherIntangibleAssets.OneMonth was retired by Morningstar in 2026; use OtherIntangibleAssets.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherIntangibleAssets_TwoMonths); + [Obsolete("OtherIntangibleAssets.TwoMonths was retired by Morningstar in 2026; use OtherIntangibleAssets.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("OtherIntangibleAssets.TwoMonths was retired by Morningstar in 2026; use OtherIntangibleAssets.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class OtherIntangibleAssetsBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherIntangibleAssets_NineMonths); + [Obsolete("OtherIntangibleAssets.NineMonths was retired by Morningstar in 2026; use OtherIntangibleAssets.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("OtherIntangibleAssets.NineMonths was retired by Morningstar in 2026; use OtherIntangibleAssets.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/OtherInterestExpenseIncomeStatement.cs b/Common/Data/Fundamental/Generated/OtherInterestExpenseIncomeStatement.cs index 25b89cb139dd..a6b5936c710c 100644 --- a/Common/Data/Fundamental/Generated/OtherInterestExpenseIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/OtherInterestExpenseIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,52 +37,46 @@ public class OtherInterestExpenseIncomeStatement : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_OtherInterestExpense_OneMonth); + [Obsolete("OtherInterestExpense was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("OtherInterestExpense was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_OtherInterestExpense_ThreeMonths); + [Obsolete("OtherInterestExpense was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("OtherInterestExpense was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_OtherInterestExpense_SixMonths); + [Obsolete("OtherInterestExpense was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("OtherInterestExpense was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_OtherInterestExpense_NineMonths); + [Obsolete("OtherInterestExpense was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("OtherInterestExpense was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_OtherInterestExpense_TwelveMonths); + [Obsolete("OtherInterestExpense was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("OtherInterestExpense was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_OtherInterestExpense_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_OtherInterestExpense_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("OtherInterestExpense was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -91,7 +85,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/OtherInterestIncomeIncomeStatement.cs b/Common/Data/Fundamental/Generated/OtherInterestIncomeIncomeStatement.cs index 4d0a45726c17..858d15a2c1b3 100644 --- a/Common/Data/Fundamental/Generated/OtherInterestIncomeIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/OtherInterestIncomeIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,52 +37,46 @@ public class OtherInterestIncomeIncomeStatement : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_OtherInterestIncome_OneMonth); + [Obsolete("OtherInterestIncome was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("OtherInterestIncome was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_OtherInterestIncome_ThreeMonths); + [Obsolete("OtherInterestIncome was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("OtherInterestIncome was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_OtherInterestIncome_SixMonths); + [Obsolete("OtherInterestIncome was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("OtherInterestIncome was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_OtherInterestIncome_NineMonths); + [Obsolete("OtherInterestIncome was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("OtherInterestIncome was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_OtherInterestIncome_TwelveMonths); + [Obsolete("OtherInterestIncome was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("OtherInterestIncome was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_OtherInterestIncome_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_OtherInterestIncome_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("OtherInterestIncome was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -91,7 +85,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/OtherInventoriesBalanceSheet.cs b/Common/Data/Fundamental/Generated/OtherInventoriesBalanceSheet.cs index cd28fe0a90ac..635be43ed86e 100644 --- a/Common/Data/Fundamental/Generated/OtherInventoriesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/OtherInventoriesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,52 +37,46 @@ public class OtherInventoriesBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherInventories_OneMonth); + [Obsolete("OtherInventories was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("OtherInventories was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherInventories_ThreeMonths); + [Obsolete("OtherInventories was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("OtherInventories was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherInventories_SixMonths); + [Obsolete("OtherInventories was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("OtherInventories was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherInventories_NineMonths); + [Obsolete("OtherInventories was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("OtherInventories was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherInventories_TwelveMonths); + [Obsolete("OtherInventories was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("OtherInventories was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherInventories_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherInventories_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("OtherInventories was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -91,7 +85,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/OtherInvestedAssetsBalanceSheet.cs b/Common/Data/Fundamental/Generated/OtherInvestedAssetsBalanceSheet.cs index f6edd9a6399f..2e756c1899af 100644 --- a/Common/Data/Fundamental/Generated/OtherInvestedAssetsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/OtherInvestedAssetsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/OtherInvestmentsBalanceSheet.cs b/Common/Data/Fundamental/Generated/OtherInvestmentsBalanceSheet.cs index 0e00812e1756..eb90afafeff8 100644 --- a/Common/Data/Fundamental/Generated/OtherInvestmentsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/OtherInvestmentsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/OtherLiabilitiesBalanceSheet.cs b/Common/Data/Fundamental/Generated/OtherLiabilitiesBalanceSheet.cs index c5e331e120f4..7eb8240eb37b 100644 --- a/Common/Data/Fundamental/Generated/OtherLiabilitiesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/OtherLiabilitiesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,7 +37,8 @@ public class OtherLiabilitiesBalanceSheet : MultiPeriodField /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherLiabilities_TwoMonths); + [Obsolete("OtherLiabilities.TwoMonths was retired by Morningstar in 2026; use OtherLiabilities.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("OtherLiabilities.TwoMonths was retired by Morningstar in 2026; use OtherLiabilities.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -55,7 +56,8 @@ public class OtherLiabilitiesBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherLiabilities_NineMonths); + [Obsolete("OtherLiabilities.NineMonths was retired by Morningstar in 2026; use OtherLiabilities.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("OtherLiabilities.NineMonths was retired by Morningstar in 2026; use OtherLiabilities.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -91,7 +93,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/OtherLoanAssetsBalanceSheet.cs b/Common/Data/Fundamental/Generated/OtherLoanAssetsBalanceSheet.cs index 2b37383cfdba..780c9e699fb2 100644 --- a/Common/Data/Fundamental/Generated/OtherLoanAssetsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/OtherLoanAssetsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class OtherLoanAssetsBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherLoanAssets_ThreeMonths); + [Obsolete("OtherLoanAssets was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("OtherLoanAssets was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherLoanAssets_TwelveMonths); + [Obsolete("OtherLoanAssets was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("OtherLoanAssets was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherLoanAssets_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherLoanAssets_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("OtherLoanAssets was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/OtherLoansCurrentBalanceSheet.cs b/Common/Data/Fundamental/Generated/OtherLoansCurrentBalanceSheet.cs index c1db512c56d6..757e2fc6f48d 100644 --- a/Common/Data/Fundamental/Generated/OtherLoansCurrentBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/OtherLoansCurrentBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/OtherLoansNonCurrentBalanceSheet.cs b/Common/Data/Fundamental/Generated/OtherLoansNonCurrentBalanceSheet.cs index efffb56a89c3..6f0ac19996b9 100644 --- a/Common/Data/Fundamental/Generated/OtherLoansNonCurrentBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/OtherLoansNonCurrentBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class OtherLoansNonCurrentBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherLoansNonCurrent_ThreeMonths); + [Obsolete("OtherLoansNonCurrent was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("OtherLoansNonCurrent was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherLoansNonCurrent_TwelveMonths); + [Obsolete("OtherLoansNonCurrent was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("OtherLoansNonCurrent was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherLoansNonCurrent_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherLoansNonCurrent_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("OtherLoansNonCurrent was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/OtherLoansTotalBalanceSheet.cs b/Common/Data/Fundamental/Generated/OtherLoansTotalBalanceSheet.cs index b5fcdacb55c5..d7277ae09b29 100644 --- a/Common/Data/Fundamental/Generated/OtherLoansTotalBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/OtherLoansTotalBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/OtherNonCashItemsCashFlowStatement.cs b/Common/Data/Fundamental/Generated/OtherNonCashItemsCashFlowStatement.cs index 5e7c68650bb2..be40df61e696 100644 --- a/Common/Data/Fundamental/Generated/OtherNonCashItemsCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/OtherNonCashItemsCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class OtherNonCashItemsCashFlowStatement : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_OtherNonCashItems_OneMonth); + [Obsolete("OtherNonCashItems was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("OtherNonCashItems was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_OtherNonCashItems_TwoMonths); + [Obsolete("OtherNonCashItems was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("OtherNonCashItems was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_OtherNonCashItems_ThreeMonths); + [Obsolete("OtherNonCashItems was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("OtherNonCashItems was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_OtherNonCashItems_SixMonths); + [Obsolete("OtherNonCashItems was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("OtherNonCashItems was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_OtherNonCashItems_NineMonths); + [Obsolete("OtherNonCashItems was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("OtherNonCashItems was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_OtherNonCashItems_TwelveMonths); + [Obsolete("OtherNonCashItems was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("OtherNonCashItems was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_OtherNonCashItems_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_OtherNonCashItems_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("OtherNonCashItems was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/OtherNonCurrentAssetsBalanceSheet.cs b/Common/Data/Fundamental/Generated/OtherNonCurrentAssetsBalanceSheet.cs index c23bf2b9e010..9daa406556d7 100644 --- a/Common/Data/Fundamental/Generated/OtherNonCurrentAssetsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/OtherNonCurrentAssetsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class OtherNonCurrentAssetsBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherNonCurrentAssets_OneMonth); + [Obsolete("OtherNonCurrentAssets.OneMonth was retired by Morningstar in 2026; use OtherNonCurrentAssets.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("OtherNonCurrentAssets.OneMonth was retired by Morningstar in 2026; use OtherNonCurrentAssets.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherNonCurrentAssets_TwoMonths); + [Obsolete("OtherNonCurrentAssets.TwoMonths was retired by Morningstar in 2026; use OtherNonCurrentAssets.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("OtherNonCurrentAssets.TwoMonths was retired by Morningstar in 2026; use OtherNonCurrentAssets.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class OtherNonCurrentAssetsBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherNonCurrentAssets_NineMonths); + [Obsolete("OtherNonCurrentAssets.NineMonths was retired by Morningstar in 2026; use OtherNonCurrentAssets.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("OtherNonCurrentAssets.NineMonths was retired by Morningstar in 2026; use OtherNonCurrentAssets.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/OtherNonCurrentLiabilitiesBalanceSheet.cs b/Common/Data/Fundamental/Generated/OtherNonCurrentLiabilitiesBalanceSheet.cs index c971d859ada6..aa669c17b763 100644 --- a/Common/Data/Fundamental/Generated/OtherNonCurrentLiabilitiesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/OtherNonCurrentLiabilitiesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class OtherNonCurrentLiabilitiesBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherNonCurrentLiabilities_OneMonth); + [Obsolete("OtherNonCurrentLiabilities.OneMonth was retired by Morningstar in 2026; use OtherNonCurrentLiabilities.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("OtherNonCurrentLiabilities.OneMonth was retired by Morningstar in 2026; use OtherNonCurrentLiabilities.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherNonCurrentLiabilities_TwoMonths); + [Obsolete("OtherNonCurrentLiabilities.TwoMonths was retired by Morningstar in 2026; use OtherNonCurrentLiabilities.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("OtherNonCurrentLiabilities.TwoMonths was retired by Morningstar in 2026; use OtherNonCurrentLiabilities.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class OtherNonCurrentLiabilitiesBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherNonCurrentLiabilities_NineMonths); + [Obsolete("OtherNonCurrentLiabilities.NineMonths was retired by Morningstar in 2026; use OtherNonCurrentLiabilities.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("OtherNonCurrentLiabilities.NineMonths was retired by Morningstar in 2026; use OtherNonCurrentLiabilities.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/OtherNonOperatingIncomeExpensesIncomeStatement.cs b/Common/Data/Fundamental/Generated/OtherNonOperatingIncomeExpensesIncomeStatement.cs index 0acd54397de7..6deb368eaa0c 100644 --- a/Common/Data/Fundamental/Generated/OtherNonOperatingIncomeExpensesIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/OtherNonOperatingIncomeExpensesIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/OtherOperatingExpensesIncomeStatement.cs b/Common/Data/Fundamental/Generated/OtherOperatingExpensesIncomeStatement.cs index 353b3eae8f72..08a4d952c636 100644 --- a/Common/Data/Fundamental/Generated/OtherOperatingExpensesIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/OtherOperatingExpensesIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class OtherOperatingExpensesIncomeStatement : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_OtherOperatingExpenses_OneMonth); + [Obsolete("OtherOperatingExpenses was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("OtherOperatingExpenses was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_OtherOperatingExpenses_TwoMonths); + [Obsolete("OtherOperatingExpenses was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("OtherOperatingExpenses was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_OtherOperatingExpenses_ThreeMonths); + [Obsolete("OtherOperatingExpenses was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("OtherOperatingExpenses was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_OtherOperatingExpenses_SixMonths); + [Obsolete("OtherOperatingExpenses was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("OtherOperatingExpenses was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_OtherOperatingExpenses_NineMonths); + [Obsolete("OtherOperatingExpenses was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("OtherOperatingExpenses was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_OtherOperatingExpenses_TwelveMonths); + [Obsolete("OtherOperatingExpenses was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("OtherOperatingExpenses was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_OtherOperatingExpenses_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_OtherOperatingExpenses_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("OtherOperatingExpenses was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/OtherOperatingIncomeTotalIncomeStatement.cs b/Common/Data/Fundamental/Generated/OtherOperatingIncomeTotalIncomeStatement.cs index cc91035d1efa..62e55c829bb6 100644 --- a/Common/Data/Fundamental/Generated/OtherOperatingIncomeTotalIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/OtherOperatingIncomeTotalIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,52 +37,46 @@ public class OtherOperatingIncomeTotalIncomeStatement : MultiPeriodField /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_OtherOperatingIncomeTotal_TwoMonths); + [Obsolete("OtherOperatingIncomeTotal was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("OtherOperatingIncomeTotal was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_OtherOperatingIncomeTotal_ThreeMonths); + [Obsolete("OtherOperatingIncomeTotal was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("OtherOperatingIncomeTotal was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_OtherOperatingIncomeTotal_SixMonths); + [Obsolete("OtherOperatingIncomeTotal was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("OtherOperatingIncomeTotal was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_OtherOperatingIncomeTotal_NineMonths); + [Obsolete("OtherOperatingIncomeTotal was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("OtherOperatingIncomeTotal was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_OtherOperatingIncomeTotal_TwelveMonths); + [Obsolete("OtherOperatingIncomeTotal was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("OtherOperatingIncomeTotal was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_OtherOperatingIncomeTotal_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_OtherOperatingIncomeTotal_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("OtherOperatingIncomeTotal was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -91,7 +85,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/OtherOperatingInflowsOutflowsofCashCashFlowStatement.cs b/Common/Data/Fundamental/Generated/OtherOperatingInflowsOutflowsofCashCashFlowStatement.cs index ade6a8db57d6..eaac541a0da7 100644 --- a/Common/Data/Fundamental/Generated/OtherOperatingInflowsOutflowsofCashCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/OtherOperatingInflowsOutflowsofCashCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/OtherPayableBalanceSheet.cs b/Common/Data/Fundamental/Generated/OtherPayableBalanceSheet.cs index e779e464f064..a8144fe9d070 100644 --- a/Common/Data/Fundamental/Generated/OtherPayableBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/OtherPayableBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class OtherPayableBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherPayable_OneMonth); + [Obsolete("OtherPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("OtherPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherPayable_TwoMonths); + [Obsolete("OtherPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("OtherPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherPayable_ThreeMonths); + [Obsolete("OtherPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("OtherPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherPayable_SixMonths); + [Obsolete("OtherPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("OtherPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherPayable_NineMonths); + [Obsolete("OtherPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("OtherPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherPayable_TwelveMonths); + [Obsolete("OtherPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("OtherPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherPayable_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherPayable_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("OtherPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/OtherPropertiesBalanceSheet.cs b/Common/Data/Fundamental/Generated/OtherPropertiesBalanceSheet.cs index f46318bdf42b..50a1da50e3a4 100644 --- a/Common/Data/Fundamental/Generated/OtherPropertiesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/OtherPropertiesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,7 +37,8 @@ public class OtherPropertiesBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherProperties_OneMonth); + [Obsolete("OtherProperties.OneMonth was retired by Morningstar in 2026; use OtherProperties.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("OtherProperties.OneMonth was retired by Morningstar in 2026; use OtherProperties.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -55,7 +56,8 @@ public class OtherPropertiesBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherProperties_NineMonths); + [Obsolete("OtherProperties.NineMonths was retired by Morningstar in 2026; use OtherProperties.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("OtherProperties.NineMonths was retired by Morningstar in 2026; use OtherProperties.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -91,7 +93,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/OtherRealEstateOwnedBalanceSheet.cs b/Common/Data/Fundamental/Generated/OtherRealEstateOwnedBalanceSheet.cs index 986c733c8d50..37931009c916 100644 --- a/Common/Data/Fundamental/Generated/OtherRealEstateOwnedBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/OtherRealEstateOwnedBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -49,7 +49,8 @@ public class OtherRealEstateOwnedBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherRealEstateOwned_NineMonths); + [Obsolete("OtherRealEstateOwned.NineMonths was retired by Morningstar in 2026; use OtherRealEstateOwned.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("OtherRealEstateOwned.NineMonths was retired by Morningstar in 2026; use OtherRealEstateOwned.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -85,7 +86,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/OtherReceivablesBalanceSheet.cs b/Common/Data/Fundamental/Generated/OtherReceivablesBalanceSheet.cs index 272e83907745..56221671e83c 100644 --- a/Common/Data/Fundamental/Generated/OtherReceivablesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/OtherReceivablesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,7 +37,8 @@ public class OtherReceivablesBalanceSheet : MultiPeriodField /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherReceivables_TwoMonths); + [Obsolete("OtherReceivables.TwoMonths was retired by Morningstar in 2026; use OtherReceivables.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("OtherReceivables.TwoMonths was retired by Morningstar in 2026; use OtherReceivables.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -55,7 +56,8 @@ public class OtherReceivablesBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherReceivables_NineMonths); + [Obsolete("OtherReceivables.NineMonths was retired by Morningstar in 2026; use OtherReceivables.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("OtherReceivables.NineMonths was retired by Morningstar in 2026; use OtherReceivables.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -91,7 +93,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/OtherReservesBalanceSheet.cs b/Common/Data/Fundamental/Generated/OtherReservesBalanceSheet.cs index f686377a4984..0c589f17e7d3 100644 --- a/Common/Data/Fundamental/Generated/OtherReservesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/OtherReservesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class OtherReservesBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherReserves_ThreeMonths); + [Obsolete("OtherReserves was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("OtherReserves was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherReserves_TwelveMonths); + [Obsolete("OtherReserves was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("OtherReserves was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherReserves_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherReserves_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("OtherReserves was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/OtherShortTermInvestmentsBalanceSheet.cs b/Common/Data/Fundamental/Generated/OtherShortTermInvestmentsBalanceSheet.cs index 26eec3fcc64e..ae1d02ee6529 100644 --- a/Common/Data/Fundamental/Generated/OtherShortTermInvestmentsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/OtherShortTermInvestmentsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -55,7 +55,8 @@ public class OtherShortTermInvestmentsBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_OtherShortTermInvestments_NineMonths); + [Obsolete("OtherShortTermInvestments.NineMonths was retired by Morningstar in 2026; use OtherShortTermInvestments.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("OtherShortTermInvestments.NineMonths was retired by Morningstar in 2026; use OtherShortTermInvestments.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -91,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/OtherSpecialChargesIncomeStatement.cs b/Common/Data/Fundamental/Generated/OtherSpecialChargesIncomeStatement.cs index aaf5225d3250..8d53a69d4eca 100644 --- a/Common/Data/Fundamental/Generated/OtherSpecialChargesIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/OtherSpecialChargesIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/OtherStaffCostsIncomeStatement.cs b/Common/Data/Fundamental/Generated/OtherStaffCostsIncomeStatement.cs index b0b3c2e0a259..a50218b2d19e 100644 --- a/Common/Data/Fundamental/Generated/OtherStaffCostsIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/OtherStaffCostsIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,28 +37,18 @@ public class OtherStaffCostsIncomeStatement : MultiPeriodField /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_OtherStaffCosts_TwelveMonths); + [Obsolete("OtherStaffCosts was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("OtherStaffCosts was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_OtherStaffCosts_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_OtherStaffCosts_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("OtherStaffCosts was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -67,7 +57,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/OtherunderPreferredStockDividendIncomeStatement.cs b/Common/Data/Fundamental/Generated/OtherunderPreferredStockDividendIncomeStatement.cs index d9bd774a01da..17113f5fbc82 100644 --- a/Common/Data/Fundamental/Generated/OtherunderPreferredStockDividendIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/OtherunderPreferredStockDividendIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/PayablesAndAccruedExpensesBalanceSheet.cs b/Common/Data/Fundamental/Generated/PayablesAndAccruedExpensesBalanceSheet.cs index c503d6113348..2986955d5332 100644 --- a/Common/Data/Fundamental/Generated/PayablesAndAccruedExpensesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/PayablesAndAccruedExpensesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class PayablesAndAccruedExpensesBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_PayablesAndAccruedExpenses_OneMonth); + [Obsolete("PayablesAndAccruedExpenses.OneMonth was retired by Morningstar in 2026; use PayablesAndAccruedExpenses.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("PayablesAndAccruedExpenses.OneMonth was retired by Morningstar in 2026; use PayablesAndAccruedExpenses.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_PayablesAndAccruedExpenses_TwoMonths); + [Obsolete("PayablesAndAccruedExpenses.TwoMonths was retired by Morningstar in 2026; use PayablesAndAccruedExpenses.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("PayablesAndAccruedExpenses.TwoMonths was retired by Morningstar in 2026; use PayablesAndAccruedExpenses.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class PayablesAndAccruedExpensesBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_PayablesAndAccruedExpenses_NineMonths); + [Obsolete("PayablesAndAccruedExpenses.NineMonths was retired by Morningstar in 2026; use PayablesAndAccruedExpenses.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("PayablesAndAccruedExpenses.NineMonths was retired by Morningstar in 2026; use PayablesAndAccruedExpenses.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/PayablesBalanceSheet.cs b/Common/Data/Fundamental/Generated/PayablesBalanceSheet.cs index 33a3ffe87e57..051764dd323b 100644 --- a/Common/Data/Fundamental/Generated/PayablesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/PayablesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class PayablesBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_Payables_OneMonth); + [Obsolete("Payables.OneMonth was retired by Morningstar in 2026; use Payables.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("Payables.OneMonth was retired by Morningstar in 2026; use Payables.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_Payables_TwoMonths); + [Obsolete("Payables.TwoMonths was retired by Morningstar in 2026; use Payables.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("Payables.TwoMonths was retired by Morningstar in 2026; use Payables.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class PayablesBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_Payables_NineMonths); + [Obsolete("Payables.NineMonths was retired by Morningstar in 2026; use Payables.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("Payables.NineMonths was retired by Morningstar in 2026; use Payables.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/PaymentForLoansCashFlowStatement.cs b/Common/Data/Fundamental/Generated/PaymentForLoansCashFlowStatement.cs index c0c02f7f808e..afd71d4c93aa 100644 --- a/Common/Data/Fundamental/Generated/PaymentForLoansCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/PaymentForLoansCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/PaymentTurnover.cs b/Common/Data/Fundamental/Generated/PaymentTurnover.cs index 4f555d8d4eb9..1e882ede93a5 100644 --- a/Common/Data/Fundamental/Generated/PaymentTurnover.cs +++ b/Common/Data/Fundamental/Generated/PaymentTurnover.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -43,13 +43,15 @@ public class PaymentTurnover : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_PaymentTurnover_ThreeMonths); + [Obsolete("PaymentTurnover.ThreeMonths was retired by Morningstar in 2026; use PaymentTurnover.OneYear.")] + public double ThreeMonths => throw new NotSupportedException("PaymentTurnover.ThreeMonths was retired by Morningstar in 2026; use PaymentTurnover.OneYear."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_PaymentTurnover_SixMonths); + [Obsolete("PaymentTurnover.SixMonths was retired by Morningstar in 2026; use PaymentTurnover.OneYear.")] + public double SixMonths => throw new NotSupportedException("PaymentTurnover.SixMonths was retired by Morningstar in 2026; use PaymentTurnover.OneYear."); /// /// Returns true if the field contains a value for the default period @@ -79,7 +81,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1Y",OneYear), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths) }) + foreach (var kvp in new[] { new Tuple("1Y",OneYear) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/PaymentstoSuppliersforGoodsandServicesCashFlowStatement.cs b/Common/Data/Fundamental/Generated/PaymentstoSuppliersforGoodsandServicesCashFlowStatement.cs index a9d8d65abebd..9d98ac81cf6f 100644 --- a/Common/Data/Fundamental/Generated/PaymentstoSuppliersforGoodsandServicesCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/PaymentstoSuppliersforGoodsandServicesCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class PaymentstoSuppliersforGoodsandServicesCashFlowStatement : MultiPeri /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_PaymentstoSuppliersforGoodsandServices_ThreeMonths); + [Obsolete("PaymentstoSuppliersforGoodsandServices was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("PaymentstoSuppliersforGoodsandServices was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_PaymentstoSuppliersforGoodsandServices_SixMonths); + [Obsolete("PaymentstoSuppliersforGoodsandServices was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("PaymentstoSuppliersforGoodsandServices was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_PaymentstoSuppliersforGoodsandServices_NineMonths); + [Obsolete("PaymentstoSuppliersforGoodsandServices was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("PaymentstoSuppliersforGoodsandServices was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_PaymentstoSuppliersforGoodsandServices_TwelveMonths); + [Obsolete("PaymentstoSuppliersforGoodsandServices was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("PaymentstoSuppliersforGoodsandServices was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_PaymentstoSuppliersforGoodsandServices_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_PaymentstoSuppliersforGoodsandServices_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("PaymentstoSuppliersforGoodsandServices was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/PensionAndOtherPostretirementBenefitPlansTotalBalanceSheet.cs b/Common/Data/Fundamental/Generated/PensionAndOtherPostretirementBenefitPlansTotalBalanceSheet.cs index 8c9a92d821c0..9489645a6367 100644 --- a/Common/Data/Fundamental/Generated/PensionAndOtherPostretirementBenefitPlansTotalBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/PensionAndOtherPostretirementBenefitPlansTotalBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class PensionAndOtherPostretirementBenefitPlansTotalBalanceSheet : MultiP /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_PensionAndOtherPostretirementBenefitPlansTotal_ThreeMonths); + [Obsolete("PensionAndOtherPostretirementBenefitPlansTotal was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("PensionAndOtherPostretirementBenefitPlansTotal was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_PensionAndOtherPostretirementBenefitPlansTotal_TwelveMonths); + [Obsolete("PensionAndOtherPostretirementBenefitPlansTotal was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("PensionAndOtherPostretirementBenefitPlansTotal was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_PensionAndOtherPostretirementBenefitPlansTotal_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_PensionAndOtherPostretirementBenefitPlansTotal_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("PensionAndOtherPostretirementBenefitPlansTotal was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/PensionCostsIncomeStatement.cs b/Common/Data/Fundamental/Generated/PensionCostsIncomeStatement.cs index 5906525c40aa..a2d3c16ca873 100644 --- a/Common/Data/Fundamental/Generated/PensionCostsIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/PensionCostsIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/PensionandOtherPostRetirementBenefitPlansCurrentBalanceSheet.cs b/Common/Data/Fundamental/Generated/PensionandOtherPostRetirementBenefitPlansCurrentBalanceSheet.cs index d723acf42dd9..d0d85a1ed8ce 100644 --- a/Common/Data/Fundamental/Generated/PensionandOtherPostRetirementBenefitPlansCurrentBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/PensionandOtherPostRetirementBenefitPlansCurrentBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class PensionandOtherPostRetirementBenefitPlansCurrentBalanceSheet : Mult /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_PensionandOtherPostRetirementBenefitPlansCurrent_ThreeMonths); + [Obsolete("PensionandOtherPostRetirementBenefitPlansCurrent was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("PensionandOtherPostRetirementBenefitPlansCurrent was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_PensionandOtherPostRetirementBenefitPlansCurrent_TwelveMonths); + [Obsolete("PensionandOtherPostRetirementBenefitPlansCurrent was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("PensionandOtherPostRetirementBenefitPlansCurrent was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_PensionandOtherPostRetirementBenefitPlansCurrent_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_PensionandOtherPostRetirementBenefitPlansCurrent_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("PensionandOtherPostRetirementBenefitPlansCurrent was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/PeriodAuditor.cs b/Common/Data/Fundamental/Generated/PeriodAuditor.cs index 2dd7bd280b54..387a2161c191 100644 --- a/Common/Data/Fundamental/Generated/PeriodAuditor.cs +++ b/Common/Data/Fundamental/Generated/PeriodAuditor.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class PeriodAuditor : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public string OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_PeriodAuditor_OneMonth); + [Obsolete("PeriodAuditor was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public string OneMonth => throw new NotSupportedException("PeriodAuditor was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public string TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_PeriodAuditor_TwoMonths); + [Obsolete("PeriodAuditor was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public string TwoMonths => throw new NotSupportedException("PeriodAuditor was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public string ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_PeriodAuditor_ThreeMonths); + [Obsolete("PeriodAuditor was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public string ThreeMonths => throw new NotSupportedException("PeriodAuditor was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public string SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_PeriodAuditor_SixMonths); + [Obsolete("PeriodAuditor was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public string SixMonths => throw new NotSupportedException("PeriodAuditor was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public string NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_PeriodAuditor_NineMonths); + [Obsolete("PeriodAuditor was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public string NineMonths => throw new NotSupportedException("PeriodAuditor was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public string TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_PeriodAuditor_TwelveMonths); + [Obsolete("PeriodAuditor was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public string TwelveMonths => throw new NotSupportedException("PeriodAuditor was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(string), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_PeriodAuditor_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override string Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_PeriodAuditor_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(string), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override string Value => throw new NotSupportedException("PeriodAuditor was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field diff --git a/Common/Data/Fundamental/Generated/PolicyLoansBalanceSheet.cs b/Common/Data/Fundamental/Generated/PolicyLoansBalanceSheet.cs index ea2e9d022376..bba474f3c62a 100644 --- a/Common/Data/Fundamental/Generated/PolicyLoansBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/PolicyLoansBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class PolicyLoansBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_PolicyLoans_ThreeMonths); + [Obsolete("PolicyLoans was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("PolicyLoans was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_PolicyLoans_TwelveMonths); + [Obsolete("PolicyLoans was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("PolicyLoans was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_PolicyLoans_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_PolicyLoans_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("PolicyLoans was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/PolicyholderBenefitsCededIncomeStatement.cs b/Common/Data/Fundamental/Generated/PolicyholderBenefitsCededIncomeStatement.cs index 96410ed6de79..d36758f29b6f 100644 --- a/Common/Data/Fundamental/Generated/PolicyholderBenefitsCededIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/PolicyholderBenefitsCededIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,28 +37,18 @@ public class PolicyholderBenefitsCededIncomeStatement : MultiPeriodField /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_PolicyholderBenefitsCeded_TwelveMonths); + [Obsolete("PolicyholderBenefitsCeded was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("PolicyholderBenefitsCeded was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_PolicyholderBenefitsCeded_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_PolicyholderBenefitsCeded_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("PolicyholderBenefitsCeded was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -67,7 +57,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/PolicyholderBenefitsGrossIncomeStatement.cs b/Common/Data/Fundamental/Generated/PolicyholderBenefitsGrossIncomeStatement.cs index ccb83740aef7..86dc8c681182 100644 --- a/Common/Data/Fundamental/Generated/PolicyholderBenefitsGrossIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/PolicyholderBenefitsGrossIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class PolicyholderBenefitsGrossIncomeStatement : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_PolicyholderBenefitsGross_ThreeMonths); + [Obsolete("PolicyholderBenefitsGross was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("PolicyholderBenefitsGross was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_PolicyholderBenefitsGross_SixMonths); + [Obsolete("PolicyholderBenefitsGross was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("PolicyholderBenefitsGross was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_PolicyholderBenefitsGross_NineMonths); + [Obsolete("PolicyholderBenefitsGross was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("PolicyholderBenefitsGross was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_PolicyholderBenefitsGross_TwelveMonths); + [Obsolete("PolicyholderBenefitsGross was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("PolicyholderBenefitsGross was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_PolicyholderBenefitsGross_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_PolicyholderBenefitsGross_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("PolicyholderBenefitsGross was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/PolicyholderDividendsIncomeStatement.cs b/Common/Data/Fundamental/Generated/PolicyholderDividendsIncomeStatement.cs index 1a3631af9915..cb0fadaaa6a9 100644 --- a/Common/Data/Fundamental/Generated/PolicyholderDividendsIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/PolicyholderDividendsIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class PolicyholderDividendsIncomeStatement : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_PolicyholderDividends_ThreeMonths); + [Obsolete("PolicyholderDividends was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("PolicyholderDividends was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_PolicyholderDividends_SixMonths); + [Obsolete("PolicyholderDividends was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("PolicyholderDividends was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_PolicyholderDividends_NineMonths); + [Obsolete("PolicyholderDividends was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("PolicyholderDividends was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_PolicyholderDividends_TwelveMonths); + [Obsolete("PolicyholderDividends was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("PolicyholderDividends was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_PolicyholderDividends_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_PolicyholderDividends_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("PolicyholderDividends was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/PolicyholderFundsBalanceSheet.cs b/Common/Data/Fundamental/Generated/PolicyholderFundsBalanceSheet.cs index 3347ff29dd53..d21e5381a9b5 100644 --- a/Common/Data/Fundamental/Generated/PolicyholderFundsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/PolicyholderFundsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class PolicyholderFundsBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_PolicyholderFunds_ThreeMonths); + [Obsolete("PolicyholderFunds was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("PolicyholderFunds was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_PolicyholderFunds_TwelveMonths); + [Obsolete("PolicyholderFunds was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("PolicyholderFunds was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_PolicyholderFunds_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_PolicyholderFunds_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("PolicyholderFunds was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/PolicyholderInterestIncomeStatement.cs b/Common/Data/Fundamental/Generated/PolicyholderInterestIncomeStatement.cs index 406bba17444c..cc044829057f 100644 --- a/Common/Data/Fundamental/Generated/PolicyholderInterestIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/PolicyholderInterestIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class PolicyholderInterestIncomeStatement : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_PolicyholderInterest_ThreeMonths); + [Obsolete("PolicyholderInterest was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("PolicyholderInterest was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_PolicyholderInterest_SixMonths); + [Obsolete("PolicyholderInterest was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("PolicyholderInterest was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_PolicyholderInterest_NineMonths); + [Obsolete("PolicyholderInterest was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("PolicyholderInterest was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_PolicyholderInterest_TwelveMonths); + [Obsolete("PolicyholderInterest was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("PolicyholderInterest was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_PolicyholderInterest_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_PolicyholderInterest_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("PolicyholderInterest was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/PreTreShaNumBalanceSheet.cs b/Common/Data/Fundamental/Generated/PreTreShaNumBalanceSheet.cs index aee3ed7fa531..e36ac5c25444 100644 --- a/Common/Data/Fundamental/Generated/PreTreShaNumBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/PreTreShaNumBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class PreTreShaNumBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_PreTreShaNum_ThreeMonths); + [Obsolete("PreTreShaNum was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("PreTreShaNum was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_PreTreShaNum_TwelveMonths); + [Obsolete("PreTreShaNum was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("PreTreShaNum was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_PreTreShaNum_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_PreTreShaNum_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("PreTreShaNum was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/PreferredSecuritiesOutsideStockEquityBalanceSheet.cs b/Common/Data/Fundamental/Generated/PreferredSecuritiesOutsideStockEquityBalanceSheet.cs index deb799686a75..62711d7d3e0a 100644 --- a/Common/Data/Fundamental/Generated/PreferredSecuritiesOutsideStockEquityBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/PreferredSecuritiesOutsideStockEquityBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -55,7 +55,8 @@ public class PreferredSecuritiesOutsideStockEquityBalanceSheet : MultiPeriodFiel /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_PreferredSecuritiesOutsideStockEquity_NineMonths); + [Obsolete("PreferredSecuritiesOutsideStockEquity.NineMonths was retired by Morningstar in 2026; use PreferredSecuritiesOutsideStockEquity.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("PreferredSecuritiesOutsideStockEquity.NineMonths was retired by Morningstar in 2026; use PreferredSecuritiesOutsideStockEquity.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -91,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/PreferredSharesNumberBalanceSheet.cs b/Common/Data/Fundamental/Generated/PreferredSharesNumberBalanceSheet.cs index 8612a51b7ed9..2d69800e9412 100644 --- a/Common/Data/Fundamental/Generated/PreferredSharesNumberBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/PreferredSharesNumberBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/PreferredStockBalanceSheet.cs b/Common/Data/Fundamental/Generated/PreferredStockBalanceSheet.cs index 6b7f4f6f6e17..9743352f787a 100644 --- a/Common/Data/Fundamental/Generated/PreferredStockBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/PreferredStockBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class PreferredStockBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_PreferredStock_OneMonth); + [Obsolete("PreferredStock.OneMonth was retired by Morningstar in 2026; use PreferredStock.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("PreferredStock.OneMonth was retired by Morningstar in 2026; use PreferredStock.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_PreferredStock_TwoMonths); + [Obsolete("PreferredStock.TwoMonths was retired by Morningstar in 2026; use PreferredStock.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("PreferredStock.TwoMonths was retired by Morningstar in 2026; use PreferredStock.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class PreferredStockBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_PreferredStock_NineMonths); + [Obsolete("PreferredStock.NineMonths was retired by Morningstar in 2026; use PreferredStock.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("PreferredStock.NineMonths was retired by Morningstar in 2026; use PreferredStock.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/PreferredStockDividendsIncomeStatement.cs b/Common/Data/Fundamental/Generated/PreferredStockDividendsIncomeStatement.cs index e232aa7815df..c1e3426022b2 100644 --- a/Common/Data/Fundamental/Generated/PreferredStockDividendsIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/PreferredStockDividendsIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class PreferredStockDividendsIncomeStatement : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_PreferredStockDividends_OneMonth); + [Obsolete("PreferredStockDividends was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("PreferredStockDividends was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_PreferredStockDividends_TwoMonths); + [Obsolete("PreferredStockDividends was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("PreferredStockDividends was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_PreferredStockDividends_ThreeMonths); + [Obsolete("PreferredStockDividends was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("PreferredStockDividends was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_PreferredStockDividends_SixMonths); + [Obsolete("PreferredStockDividends was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("PreferredStockDividends was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_PreferredStockDividends_NineMonths); + [Obsolete("PreferredStockDividends was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("PreferredStockDividends was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_PreferredStockDividends_TwelveMonths); + [Obsolete("PreferredStockDividends was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("PreferredStockDividends was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_PreferredStockDividends_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_PreferredStockDividends_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("PreferredStockDividends was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/PreferredStockEquityBalanceSheet.cs b/Common/Data/Fundamental/Generated/PreferredStockEquityBalanceSheet.cs index 41bce61011fc..1f502868560a 100644 --- a/Common/Data/Fundamental/Generated/PreferredStockEquityBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/PreferredStockEquityBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -61,7 +61,8 @@ public class PreferredStockEquityBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_PreferredStockEquity_NineMonths); + [Obsolete("PreferredStockEquity.NineMonths was retired by Morningstar in 2026; use PreferredStockEquity.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("PreferredStockEquity.NineMonths was retired by Morningstar in 2026; use PreferredStockEquity.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +98,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/PreferredStockPaymentsCashFlowStatement.cs b/Common/Data/Fundamental/Generated/PreferredStockPaymentsCashFlowStatement.cs index 39b6b670faf9..8f462e40c9de 100644 --- a/Common/Data/Fundamental/Generated/PreferredStockPaymentsCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/PreferredStockPaymentsCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/PrepaidAssetsBalanceSheet.cs b/Common/Data/Fundamental/Generated/PrepaidAssetsBalanceSheet.cs index d2da81e2e57a..36f13a1b48f9 100644 --- a/Common/Data/Fundamental/Generated/PrepaidAssetsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/PrepaidAssetsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class PrepaidAssetsBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_PrepaidAssets_OneMonth); + [Obsolete("PrepaidAssets.OneMonth was retired by Morningstar in 2026; use PrepaidAssets.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("PrepaidAssets.OneMonth was retired by Morningstar in 2026; use PrepaidAssets.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_PrepaidAssets_TwoMonths); + [Obsolete("PrepaidAssets.TwoMonths was retired by Morningstar in 2026; use PrepaidAssets.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("PrepaidAssets.TwoMonths was retired by Morningstar in 2026; use PrepaidAssets.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class PrepaidAssetsBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_PrepaidAssets_NineMonths); + [Obsolete("PrepaidAssets.NineMonths was retired by Morningstar in 2026; use PrepaidAssets.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("PrepaidAssets.NineMonths was retired by Morningstar in 2026; use PrepaidAssets.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/ProceedsFromLoansCashFlowStatement.cs b/Common/Data/Fundamental/Generated/ProceedsFromLoansCashFlowStatement.cs index f7c409225d98..4207c54cae1f 100644 --- a/Common/Data/Fundamental/Generated/ProceedsFromLoansCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/ProceedsFromLoansCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class ProceedsFromLoansCashFlowStatement : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ProceedsFromLoans_ThreeMonths); + [Obsolete("ProceedsFromLoans was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("ProceedsFromLoans was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ProceedsFromLoans_SixMonths); + [Obsolete("ProceedsFromLoans was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("ProceedsFromLoans was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ProceedsFromLoans_NineMonths); + [Obsolete("ProceedsFromLoans was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("ProceedsFromLoans was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ProceedsFromLoans_TwelveMonths); + [Obsolete("ProceedsFromLoans was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("ProceedsFromLoans was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ProceedsFromLoans_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ProceedsFromLoans_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("ProceedsFromLoans was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/ProfitOnDisposalsCashFlowStatement.cs b/Common/Data/Fundamental/Generated/ProfitOnDisposalsCashFlowStatement.cs index 5d2c7f4619f1..0205ad3c6e90 100644 --- a/Common/Data/Fundamental/Generated/ProfitOnDisposalsCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/ProfitOnDisposalsCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class ProfitOnDisposalsCashFlowStatement : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ProfitOnDisposals_ThreeMonths); + [Obsolete("ProfitOnDisposals was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("ProfitOnDisposals was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ProfitOnDisposals_SixMonths); + [Obsolete("ProfitOnDisposals was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("ProfitOnDisposals was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ProfitOnDisposals_NineMonths); + [Obsolete("ProfitOnDisposals was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("ProfitOnDisposals was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ProfitOnDisposals_TwelveMonths); + [Obsolete("ProfitOnDisposals was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("ProfitOnDisposals was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ProfitOnDisposals_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ProfitOnDisposals_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("ProfitOnDisposals was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/PropertiesBalanceSheet.cs b/Common/Data/Fundamental/Generated/PropertiesBalanceSheet.cs index 73c0b40fa72c..bc4fd3af5f6b 100644 --- a/Common/Data/Fundamental/Generated/PropertiesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/PropertiesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/ProvisionForDoubtfulAccountsIncomeStatement.cs b/Common/Data/Fundamental/Generated/ProvisionForDoubtfulAccountsIncomeStatement.cs index 05200320abe9..ee4e12b3839f 100644 --- a/Common/Data/Fundamental/Generated/ProvisionForDoubtfulAccountsIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/ProvisionForDoubtfulAccountsIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,52 +37,46 @@ public class ProvisionForDoubtfulAccountsIncomeStatement : MultiPeriodField /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ProvisionForDoubtfulAccounts_TwoMonths); + [Obsolete("ProvisionForDoubtfulAccounts was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("ProvisionForDoubtfulAccounts was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ProvisionForDoubtfulAccounts_ThreeMonths); + [Obsolete("ProvisionForDoubtfulAccounts was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("ProvisionForDoubtfulAccounts was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ProvisionForDoubtfulAccounts_SixMonths); + [Obsolete("ProvisionForDoubtfulAccounts was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("ProvisionForDoubtfulAccounts was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ProvisionForDoubtfulAccounts_NineMonths); + [Obsolete("ProvisionForDoubtfulAccounts was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("ProvisionForDoubtfulAccounts was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ProvisionForDoubtfulAccounts_TwelveMonths); + [Obsolete("ProvisionForDoubtfulAccounts was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("ProvisionForDoubtfulAccounts was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ProvisionForDoubtfulAccounts_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ProvisionForDoubtfulAccounts_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("ProvisionForDoubtfulAccounts was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -91,7 +85,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/ProvisionForLoanLeaseAndOtherLossesCashFlowStatement.cs b/Common/Data/Fundamental/Generated/ProvisionForLoanLeaseAndOtherLossesCashFlowStatement.cs index f5ee89129626..884b7531b557 100644 --- a/Common/Data/Fundamental/Generated/ProvisionForLoanLeaseAndOtherLossesCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/ProvisionForLoanLeaseAndOtherLossesCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/ProvisionandWriteOffofAssetsCashFlowStatement.cs b/Common/Data/Fundamental/Generated/ProvisionandWriteOffofAssetsCashFlowStatement.cs index 455ca5e8c8c9..39e24b41b237 100644 --- a/Common/Data/Fundamental/Generated/ProvisionandWriteOffofAssetsCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/ProvisionandWriteOffofAssetsCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/ProvisionsTotalBalanceSheet.cs b/Common/Data/Fundamental/Generated/ProvisionsTotalBalanceSheet.cs index 9b63d3119981..7beb1a4d3dce 100644 --- a/Common/Data/Fundamental/Generated/ProvisionsTotalBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/ProvisionsTotalBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/PurchaseOfInvestmentPropertiesCashFlowStatement.cs b/Common/Data/Fundamental/Generated/PurchaseOfInvestmentPropertiesCashFlowStatement.cs index 75c17d952e65..08a9adfac0a9 100644 --- a/Common/Data/Fundamental/Generated/PurchaseOfInvestmentPropertiesCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/PurchaseOfInvestmentPropertiesCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/PurchaseOfJointVentureAssociateCashFlowStatement.cs b/Common/Data/Fundamental/Generated/PurchaseOfJointVentureAssociateCashFlowStatement.cs index c723e4b5b327..7e45d3f8898c 100644 --- a/Common/Data/Fundamental/Generated/PurchaseOfJointVentureAssociateCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/PurchaseOfJointVentureAssociateCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class PurchaseOfJointVentureAssociateCashFlowStatement : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_PurchaseOfJointVentureAssociate_ThreeMonths); + [Obsolete("PurchaseOfJointVentureAssociate was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("PurchaseOfJointVentureAssociate was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_PurchaseOfJointVentureAssociate_SixMonths); + [Obsolete("PurchaseOfJointVentureAssociate was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("PurchaseOfJointVentureAssociate was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_PurchaseOfJointVentureAssociate_NineMonths); + [Obsolete("PurchaseOfJointVentureAssociate was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("PurchaseOfJointVentureAssociate was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_PurchaseOfJointVentureAssociate_TwelveMonths); + [Obsolete("PurchaseOfJointVentureAssociate was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("PurchaseOfJointVentureAssociate was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_PurchaseOfJointVentureAssociate_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_PurchaseOfJointVentureAssociate_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("PurchaseOfJointVentureAssociate was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/PurchaseOfSubsidiariesCashFlowStatement.cs b/Common/Data/Fundamental/Generated/PurchaseOfSubsidiariesCashFlowStatement.cs index eefb4a52d05d..3cd73348179a 100644 --- a/Common/Data/Fundamental/Generated/PurchaseOfSubsidiariesCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/PurchaseOfSubsidiariesCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class PurchaseOfSubsidiariesCashFlowStatement : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_PurchaseOfSubsidiaries_ThreeMonths); + [Obsolete("PurchaseOfSubsidiaries was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("PurchaseOfSubsidiaries was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_PurchaseOfSubsidiaries_SixMonths); + [Obsolete("PurchaseOfSubsidiaries was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("PurchaseOfSubsidiaries was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_PurchaseOfSubsidiaries_NineMonths); + [Obsolete("PurchaseOfSubsidiaries was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("PurchaseOfSubsidiaries was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_PurchaseOfSubsidiaries_TwelveMonths); + [Obsolete("PurchaseOfSubsidiaries was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("PurchaseOfSubsidiaries was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_PurchaseOfSubsidiaries_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_PurchaseOfSubsidiaries_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("PurchaseOfSubsidiaries was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/QuickRatio.cs b/Common/Data/Fundamental/Generated/QuickRatio.cs index 93dcc9a8f587..6dcbe958a02a 100644 --- a/Common/Data/Fundamental/Generated/QuickRatio.cs +++ b/Common/Data/Fundamental/Generated/QuickRatio.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -67,7 +67,8 @@ public class QuickRatio : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_QuickRatio_NineMonths); + [Obsolete("QuickRatio.NineMonths was retired by Morningstar in 2026; use QuickRatio.ThreeMonths (also available: SixMonths, OneYear).")] + public double NineMonths => throw new NotSupportedException("QuickRatio.NineMonths was retired by Morningstar in 2026; use QuickRatio.ThreeMonths (also available: SixMonths, OneYear)."); /// /// Returns true if the field contains a value for the default period @@ -97,7 +98,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1Y",OneYear), new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths) }) + foreach (var kvp in new[] { new Tuple("1Y",OneYear), new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/ROA.cs b/Common/Data/Fundamental/Generated/ROA.cs index 1b3cccf174ce..ab9442e720df 100644 --- a/Common/Data/Fundamental/Generated/ROA.cs +++ b/Common/Data/Fundamental/Generated/ROA.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -43,13 +43,15 @@ public class ROA : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_ROA_ThreeMonths); + [Obsolete("ROA.ThreeMonths was retired by Morningstar in 2026; use ROA.OneYear.")] + public double ThreeMonths => throw new NotSupportedException("ROA.ThreeMonths was retired by Morningstar in 2026; use ROA.OneYear."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_ROA_SixMonths); + [Obsolete("ROA.SixMonths was retired by Morningstar in 2026; use ROA.OneYear.")] + public double SixMonths => throw new NotSupportedException("ROA.SixMonths was retired by Morningstar in 2026; use ROA.OneYear."); /// /// Returns true if the field contains a value for the default period @@ -79,7 +81,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1Y",OneYear), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths) }) + foreach (var kvp in new[] { new Tuple("1Y",OneYear) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/ROE.cs b/Common/Data/Fundamental/Generated/ROE.cs index 00883f201a44..ef8b5dec3732 100644 --- a/Common/Data/Fundamental/Generated/ROE.cs +++ b/Common/Data/Fundamental/Generated/ROE.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -43,13 +43,15 @@ public class ROE : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_ROE_ThreeMonths); + [Obsolete("ROE.ThreeMonths was retired by Morningstar in 2026; use ROE.OneYear.")] + public double ThreeMonths => throw new NotSupportedException("ROE.ThreeMonths was retired by Morningstar in 2026; use ROE.OneYear."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_ROE_SixMonths); + [Obsolete("ROE.SixMonths was retired by Morningstar in 2026; use ROE.OneYear.")] + public double SixMonths => throw new NotSupportedException("ROE.SixMonths was retired by Morningstar in 2026; use ROE.OneYear."); /// /// Returns true if the field contains a value for the default period @@ -79,7 +81,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1Y",OneYear), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths) }) + foreach (var kvp in new[] { new Tuple("1Y",OneYear) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/ROIC.cs b/Common/Data/Fundamental/Generated/ROIC.cs index f7fc25576c77..675df32ce7b6 100644 --- a/Common/Data/Fundamental/Generated/ROIC.cs +++ b/Common/Data/Fundamental/Generated/ROIC.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -43,13 +43,15 @@ public class ROIC : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_ROIC_ThreeMonths); + [Obsolete("ROIC.ThreeMonths was retired by Morningstar in 2026; use ROIC.OneYear.")] + public double ThreeMonths => throw new NotSupportedException("ROIC.ThreeMonths was retired by Morningstar in 2026; use ROIC.OneYear."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_ROIC_SixMonths); + [Obsolete("ROIC.SixMonths was retired by Morningstar in 2026; use ROIC.OneYear.")] + public double SixMonths => throw new NotSupportedException("ROIC.SixMonths was retired by Morningstar in 2026; use ROIC.OneYear."); /// /// Returns true if the field contains a value for the default period @@ -79,7 +81,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1Y",OneYear), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths) }) + foreach (var kvp in new[] { new Tuple("1Y",OneYear) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/RawMaterialsBalanceSheet.cs b/Common/Data/Fundamental/Generated/RawMaterialsBalanceSheet.cs index a2052522c5c8..355d67ef98f9 100644 --- a/Common/Data/Fundamental/Generated/RawMaterialsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/RawMaterialsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,52 +37,46 @@ public class RawMaterialsBalanceSheet : MultiPeriodField /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_RawMaterials_TwoMonths); + [Obsolete("RawMaterials was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("RawMaterials was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_RawMaterials_ThreeMonths); + [Obsolete("RawMaterials was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("RawMaterials was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_RawMaterials_SixMonths); + [Obsolete("RawMaterials was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("RawMaterials was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_RawMaterials_NineMonths); + [Obsolete("RawMaterials was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("RawMaterials was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_RawMaterials_TwelveMonths); + [Obsolete("RawMaterials was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("RawMaterials was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_RawMaterials_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_RawMaterials_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("RawMaterials was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -91,7 +85,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/RealizedGainLossOnSaleOfLoansAndLeaseCashFlowStatement.cs b/Common/Data/Fundamental/Generated/RealizedGainLossOnSaleOfLoansAndLeaseCashFlowStatement.cs index 38f05eaf5bcf..4e784567bf5d 100644 --- a/Common/Data/Fundamental/Generated/RealizedGainLossOnSaleOfLoansAndLeaseCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/RealizedGainLossOnSaleOfLoansAndLeaseCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,52 +37,46 @@ public class RealizedGainLossOnSaleOfLoansAndLeaseCashFlowStatement : MultiPerio /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_RealizedGainLossOnSaleOfLoansAndLease_OneMonth); + [Obsolete("RealizedGainLossOnSaleOfLoansAndLease was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("RealizedGainLossOnSaleOfLoansAndLease was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_RealizedGainLossOnSaleOfLoansAndLease_ThreeMonths); + [Obsolete("RealizedGainLossOnSaleOfLoansAndLease was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("RealizedGainLossOnSaleOfLoansAndLease was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_RealizedGainLossOnSaleOfLoansAndLease_SixMonths); + [Obsolete("RealizedGainLossOnSaleOfLoansAndLease was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("RealizedGainLossOnSaleOfLoansAndLease was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_RealizedGainLossOnSaleOfLoansAndLease_NineMonths); + [Obsolete("RealizedGainLossOnSaleOfLoansAndLease was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("RealizedGainLossOnSaleOfLoansAndLease was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_RealizedGainLossOnSaleOfLoansAndLease_TwelveMonths); + [Obsolete("RealizedGainLossOnSaleOfLoansAndLease was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("RealizedGainLossOnSaleOfLoansAndLease was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_RealizedGainLossOnSaleOfLoansAndLease_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_RealizedGainLossOnSaleOfLoansAndLease_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("RealizedGainLossOnSaleOfLoansAndLease was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -91,7 +85,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/ReceiptsfromCustomersCashFlowStatement.cs b/Common/Data/Fundamental/Generated/ReceiptsfromCustomersCashFlowStatement.cs index d51d56b23e46..8aff47ea0545 100644 --- a/Common/Data/Fundamental/Generated/ReceiptsfromCustomersCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/ReceiptsfromCustomersCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class ReceiptsfromCustomersCashFlowStatement : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ReceiptsfromCustomers_ThreeMonths); + [Obsolete("ReceiptsfromCustomers was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("ReceiptsfromCustomers was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ReceiptsfromCustomers_SixMonths); + [Obsolete("ReceiptsfromCustomers was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("ReceiptsfromCustomers was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ReceiptsfromCustomers_NineMonths); + [Obsolete("ReceiptsfromCustomers was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("ReceiptsfromCustomers was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ReceiptsfromCustomers_TwelveMonths); + [Obsolete("ReceiptsfromCustomers was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("ReceiptsfromCustomers was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ReceiptsfromCustomers_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ReceiptsfromCustomers_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("ReceiptsfromCustomers was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/ReceiptsfromGovernmentGrantsCashFlowStatement.cs b/Common/Data/Fundamental/Generated/ReceiptsfromGovernmentGrantsCashFlowStatement.cs index 464c96bae55d..17c40f35c50e 100644 --- a/Common/Data/Fundamental/Generated/ReceiptsfromGovernmentGrantsCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/ReceiptsfromGovernmentGrantsCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class ReceiptsfromGovernmentGrantsCashFlowStatement : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ReceiptsfromGovernmentGrants_ThreeMonths); + [Obsolete("ReceiptsfromGovernmentGrants was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("ReceiptsfromGovernmentGrants was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ReceiptsfromGovernmentGrants_SixMonths); + [Obsolete("ReceiptsfromGovernmentGrants was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("ReceiptsfromGovernmentGrants was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ReceiptsfromGovernmentGrants_NineMonths); + [Obsolete("ReceiptsfromGovernmentGrants was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("ReceiptsfromGovernmentGrants was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ReceiptsfromGovernmentGrants_TwelveMonths); + [Obsolete("ReceiptsfromGovernmentGrants was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("ReceiptsfromGovernmentGrants was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ReceiptsfromGovernmentGrants_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ReceiptsfromGovernmentGrants_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("ReceiptsfromGovernmentGrants was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/ReceivableTurnover.cs b/Common/Data/Fundamental/Generated/ReceivableTurnover.cs index 87934365f018..e38afed6329f 100644 --- a/Common/Data/Fundamental/Generated/ReceivableTurnover.cs +++ b/Common/Data/Fundamental/Generated/ReceivableTurnover.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -43,13 +43,15 @@ public class ReceivableTurnover : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_ReceivableTurnover_ThreeMonths); + [Obsolete("ReceivableTurnover.ThreeMonths was retired by Morningstar in 2026; use ReceivableTurnover.OneYear.")] + public double ThreeMonths => throw new NotSupportedException("ReceivableTurnover.ThreeMonths was retired by Morningstar in 2026; use ReceivableTurnover.OneYear."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_ReceivableTurnover_SixMonths); + [Obsolete("ReceivableTurnover.SixMonths was retired by Morningstar in 2026; use ReceivableTurnover.OneYear.")] + public double SixMonths => throw new NotSupportedException("ReceivableTurnover.SixMonths was retired by Morningstar in 2026; use ReceivableTurnover.OneYear."); /// /// Returns true if the field contains a value for the default period @@ -79,7 +81,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1Y",OneYear), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths) }) + foreach (var kvp in new[] { new Tuple("1Y",OneYear) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/ReceivablesAdjustmentsAllowancesBalanceSheet.cs b/Common/Data/Fundamental/Generated/ReceivablesAdjustmentsAllowancesBalanceSheet.cs index 479353f4dbc6..1a65a56f5848 100644 --- a/Common/Data/Fundamental/Generated/ReceivablesAdjustmentsAllowancesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/ReceivablesAdjustmentsAllowancesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,40 +37,32 @@ public class ReceivablesAdjustmentsAllowancesBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ReceivablesAdjustmentsAllowances_ThreeMonths); + [Obsolete("ReceivablesAdjustmentsAllowances was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("ReceivablesAdjustmentsAllowances was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ReceivablesAdjustmentsAllowances_NineMonths); + [Obsolete("ReceivablesAdjustmentsAllowances was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("ReceivablesAdjustmentsAllowances was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ReceivablesAdjustmentsAllowances_TwelveMonths); + [Obsolete("ReceivablesAdjustmentsAllowances was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("ReceivablesAdjustmentsAllowances was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ReceivablesAdjustmentsAllowances_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ReceivablesAdjustmentsAllowances_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("ReceivablesAdjustmentsAllowances was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -79,7 +71,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/ReceivablesBalanceSheet.cs b/Common/Data/Fundamental/Generated/ReceivablesBalanceSheet.cs index dfc3b4fc5a43..52a403305d0f 100644 --- a/Common/Data/Fundamental/Generated/ReceivablesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/ReceivablesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class ReceivablesBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_Receivables_OneMonth); + [Obsolete("Receivables.OneMonth was retired by Morningstar in 2026; use Receivables.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("Receivables.OneMonth was retired by Morningstar in 2026; use Receivables.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_Receivables_TwoMonths); + [Obsolete("Receivables.TwoMonths was retired by Morningstar in 2026; use Receivables.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("Receivables.TwoMonths was retired by Morningstar in 2026; use Receivables.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class ReceivablesBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_Receivables_NineMonths); + [Obsolete("Receivables.NineMonths was retired by Morningstar in 2026; use Receivables.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("Receivables.NineMonths was retired by Morningstar in 2026; use Receivables.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/ReconciledDepreciationIncomeStatement.cs b/Common/Data/Fundamental/Generated/ReconciledDepreciationIncomeStatement.cs index 5d2ad388ae44..cb9287f1b6af 100644 --- a/Common/Data/Fundamental/Generated/ReconciledDepreciationIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/ReconciledDepreciationIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class ReconciledDepreciationIncomeStatement : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ReconciledDepreciation_OneMonth); + [Obsolete("ReconciledDepreciation was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("ReconciledDepreciation was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ReconciledDepreciation_TwoMonths); + [Obsolete("ReconciledDepreciation was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("ReconciledDepreciation was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ReconciledDepreciation_ThreeMonths); + [Obsolete("ReconciledDepreciation was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("ReconciledDepreciation was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ReconciledDepreciation_SixMonths); + [Obsolete("ReconciledDepreciation was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("ReconciledDepreciation was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ReconciledDepreciation_NineMonths); + [Obsolete("ReconciledDepreciation was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("ReconciledDepreciation was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ReconciledDepreciation_TwelveMonths); + [Obsolete("ReconciledDepreciation was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("ReconciledDepreciation was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ReconciledDepreciation_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ReconciledDepreciation_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("ReconciledDepreciation was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/RegressionGrowthOperatingRevenue5Years.cs b/Common/Data/Fundamental/Generated/RegressionGrowthOperatingRevenue5Years.cs index ce5addfe3b74..66726bbe55be 100644 --- a/Common/Data/Fundamental/Generated/RegressionGrowthOperatingRevenue5Years.cs +++ b/Common/Data/Fundamental/Generated/RegressionGrowthOperatingRevenue5Years.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,28 +37,18 @@ public class RegressionGrowthOperatingRevenue5Years : MultiPeriodField /// Gets/sets the FiveYears period value for the field /// [JsonProperty("5Y")] - public double FiveYears => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_RegressionGrowthOperatingRevenue5Years_FiveYears); + [Obsolete("RegressionGrowthOperatingRevenue5Years was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double FiveYears => throw new NotSupportedException("RegressionGrowthOperatingRevenue5Years was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_RegressionGrowthOperatingRevenue5Years_FiveYears)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_RegressionGrowthOperatingRevenue5Years_FiveYears); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("RegressionGrowthOperatingRevenue5Years was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -67,7 +57,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("5Y",FiveYears) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/RegressionGrowthofDividends5Years.cs b/Common/Data/Fundamental/Generated/RegressionGrowthofDividends5Years.cs index 26b0b31262b2..7924cc09251f 100644 --- a/Common/Data/Fundamental/Generated/RegressionGrowthofDividends5Years.cs +++ b/Common/Data/Fundamental/Generated/RegressionGrowthofDividends5Years.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,28 +37,18 @@ public class RegressionGrowthofDividends5Years : MultiPeriodField /// Gets/sets the FiveYears period value for the field /// [JsonProperty("5Y")] - public double FiveYears => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningRatios_RegressionGrowthofDividends5Years_FiveYears); + [Obsolete("RegressionGrowthofDividends5Years was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double FiveYears => throw new NotSupportedException("RegressionGrowthofDividends5Years was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningRatios_RegressionGrowthofDividends5Years_FiveYears)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningRatios_RegressionGrowthofDividends5Years_FiveYears); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("RegressionGrowthofDividends5Years was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -67,7 +57,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("5Y",FiveYears) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/ReinsuranceAssetsBalanceSheet.cs b/Common/Data/Fundamental/Generated/ReinsuranceAssetsBalanceSheet.cs index cd3569fa69e8..a7e8dcb56997 100644 --- a/Common/Data/Fundamental/Generated/ReinsuranceAssetsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/ReinsuranceAssetsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/ReinsuranceBalancesPayableBalanceSheet.cs b/Common/Data/Fundamental/Generated/ReinsuranceBalancesPayableBalanceSheet.cs index ecaa7e937b28..d8f13eeae1e8 100644 --- a/Common/Data/Fundamental/Generated/ReinsuranceBalancesPayableBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/ReinsuranceBalancesPayableBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/ReinsuranceRecoverableBalanceSheet.cs b/Common/Data/Fundamental/Generated/ReinsuranceRecoverableBalanceSheet.cs index 0cd92cdf3a76..184ecaa26299 100644 --- a/Common/Data/Fundamental/Generated/ReinsuranceRecoverableBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/ReinsuranceRecoverableBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/ReinsuranceRecoveriesClaimsandBenefitsIncomeStatement.cs b/Common/Data/Fundamental/Generated/ReinsuranceRecoveriesClaimsandBenefitsIncomeStatement.cs index d3658421e7aa..133c26726800 100644 --- a/Common/Data/Fundamental/Generated/ReinsuranceRecoveriesClaimsandBenefitsIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/ReinsuranceRecoveriesClaimsandBenefitsIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class ReinsuranceRecoveriesClaimsandBenefitsIncomeStatement : MultiPeriod /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ReinsuranceRecoveriesClaimsandBenefits_ThreeMonths); + [Obsolete("ReinsuranceRecoveriesClaimsandBenefits was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("ReinsuranceRecoveriesClaimsandBenefits was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ReinsuranceRecoveriesClaimsandBenefits_SixMonths); + [Obsolete("ReinsuranceRecoveriesClaimsandBenefits was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("ReinsuranceRecoveriesClaimsandBenefits was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ReinsuranceRecoveriesClaimsandBenefits_NineMonths); + [Obsolete("ReinsuranceRecoveriesClaimsandBenefits was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("ReinsuranceRecoveriesClaimsandBenefits was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ReinsuranceRecoveriesClaimsandBenefits_TwelveMonths); + [Obsolete("ReinsuranceRecoveriesClaimsandBenefits was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("ReinsuranceRecoveriesClaimsandBenefits was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ReinsuranceRecoveriesClaimsandBenefits_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ReinsuranceRecoveriesClaimsandBenefits_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("ReinsuranceRecoveriesClaimsandBenefits was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/ReinsuranceRecoveriesofInvestmentContractIncomeStatement.cs b/Common/Data/Fundamental/Generated/ReinsuranceRecoveriesofInvestmentContractIncomeStatement.cs index 0ec4e2e36e70..84ee38b25022 100644 --- a/Common/Data/Fundamental/Generated/ReinsuranceRecoveriesofInvestmentContractIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/ReinsuranceRecoveriesofInvestmentContractIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class ReinsuranceRecoveriesofInvestmentContractIncomeStatement : MultiPer /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ReinsuranceRecoveriesofInvestmentContract_ThreeMonths); + [Obsolete("ReinsuranceRecoveriesofInvestmentContract was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("ReinsuranceRecoveriesofInvestmentContract was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ReinsuranceRecoveriesofInvestmentContract_SixMonths); + [Obsolete("ReinsuranceRecoveriesofInvestmentContract was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("ReinsuranceRecoveriesofInvestmentContract was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ReinsuranceRecoveriesofInvestmentContract_NineMonths); + [Obsolete("ReinsuranceRecoveriesofInvestmentContract was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("ReinsuranceRecoveriesofInvestmentContract was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ReinsuranceRecoveriesofInvestmentContract_TwelveMonths); + [Obsolete("ReinsuranceRecoveriesofInvestmentContract was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("ReinsuranceRecoveriesofInvestmentContract was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ReinsuranceRecoveriesofInvestmentContract_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ReinsuranceRecoveriesofInvestmentContract_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("ReinsuranceRecoveriesofInvestmentContract was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/RentAndLandingFeesIncomeStatement.cs b/Common/Data/Fundamental/Generated/RentAndLandingFeesIncomeStatement.cs index 4c2ed3a56137..a0485f1156e7 100644 --- a/Common/Data/Fundamental/Generated/RentAndLandingFeesIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/RentAndLandingFeesIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class RentAndLandingFeesIncomeStatement : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_RentAndLandingFees_OneMonth); + [Obsolete("RentAndLandingFees was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("RentAndLandingFees was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_RentAndLandingFees_TwoMonths); + [Obsolete("RentAndLandingFees was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("RentAndLandingFees was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_RentAndLandingFees_ThreeMonths); + [Obsolete("RentAndLandingFees was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("RentAndLandingFees was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_RentAndLandingFees_SixMonths); + [Obsolete("RentAndLandingFees was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("RentAndLandingFees was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_RentAndLandingFees_NineMonths); + [Obsolete("RentAndLandingFees was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("RentAndLandingFees was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_RentAndLandingFees_TwelveMonths); + [Obsolete("RentAndLandingFees was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("RentAndLandingFees was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_RentAndLandingFees_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_RentAndLandingFees_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("RentAndLandingFees was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/RentExpenseSupplementalIncomeStatement.cs b/Common/Data/Fundamental/Generated/RentExpenseSupplementalIncomeStatement.cs index ef68a7e44f68..e5ea895f5c7e 100644 --- a/Common/Data/Fundamental/Generated/RentExpenseSupplementalIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/RentExpenseSupplementalIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/RentandLandingFeesCostofRevenueIncomeStatement.cs b/Common/Data/Fundamental/Generated/RentandLandingFeesCostofRevenueIncomeStatement.cs index 97c05d8d81d6..f39ceab12fe3 100644 --- a/Common/Data/Fundamental/Generated/RentandLandingFeesCostofRevenueIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/RentandLandingFeesCostofRevenueIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class RentandLandingFeesCostofRevenueIncomeStatement : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_RentandLandingFeesCostofRevenue_ThreeMonths); + [Obsolete("RentandLandingFeesCostofRevenue was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("RentandLandingFeesCostofRevenue was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_RentandLandingFeesCostofRevenue_SixMonths); + [Obsolete("RentandLandingFeesCostofRevenue was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("RentandLandingFeesCostofRevenue was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_RentandLandingFeesCostofRevenue_NineMonths); + [Obsolete("RentandLandingFeesCostofRevenue was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("RentandLandingFeesCostofRevenue was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_RentandLandingFeesCostofRevenue_TwelveMonths); + [Obsolete("RentandLandingFeesCostofRevenue was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("RentandLandingFeesCostofRevenue was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_RentandLandingFeesCostofRevenue_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_RentandLandingFeesCostofRevenue_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("RentandLandingFeesCostofRevenue was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/ReorganizationOtherCostsCashFlowStatement.cs b/Common/Data/Fundamental/Generated/ReorganizationOtherCostsCashFlowStatement.cs index b2957c0cdb17..f7c46a62e71e 100644 --- a/Common/Data/Fundamental/Generated/ReorganizationOtherCostsCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/ReorganizationOtherCostsCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class ReorganizationOtherCostsCashFlowStatement : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ReorganizationOtherCosts_ThreeMonths); + [Obsolete("ReorganizationOtherCosts was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("ReorganizationOtherCosts was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ReorganizationOtherCosts_SixMonths); + [Obsolete("ReorganizationOtherCosts was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("ReorganizationOtherCosts was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ReorganizationOtherCosts_NineMonths); + [Obsolete("ReorganizationOtherCosts was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("ReorganizationOtherCosts was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ReorganizationOtherCosts_TwelveMonths); + [Obsolete("ReorganizationOtherCosts was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("ReorganizationOtherCosts was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ReorganizationOtherCosts_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ReorganizationOtherCosts_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("ReorganizationOtherCosts was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/ReportedBasicAdjustedFundFromOperations.cs b/Common/Data/Fundamental/Generated/ReportedBasicAdjustedFundFromOperations.cs new file mode 100644 index 000000000000..e04fa3954790 --- /dev/null +++ b/Common/Data/Fundamental/Generated/ReportedBasicAdjustedFundFromOperations.cs @@ -0,0 +1,125 @@ +/* + * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. + * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * +*/ + +using System; +using System.Linq; +using Python.Runtime; +using Newtonsoft.Json; +using System.Collections.Generic; +using QuantConnect.Data.UniverseSelection; + +namespace QuantConnect.Data.Fundamental +{ + /// + /// Adjusted funds from operations as reported, on a basic share basis + /// + public class ReportedBasicAdjustedFundFromOperations : MultiPeriodField + { + /// + /// The default period + /// + protected override string DefaultPeriod => "TwelveMonths"; + + /// + /// Gets/sets the OneMonth period value for the field + /// + [JsonProperty("1M")] + public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedBasicAdjustedFundFromOperations_OneMonth); + + /// + /// Gets/sets the ThreeMonths period value for the field + /// + [JsonProperty("3M")] + public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedBasicAdjustedFundFromOperations_ThreeMonths); + + /// + /// Gets/sets the SixMonths period value for the field + /// + [JsonProperty("6M")] + public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedBasicAdjustedFundFromOperations_SixMonths); + + /// + /// Gets/sets the NineMonths period value for the field + /// + [JsonProperty("9M")] + public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedBasicAdjustedFundFromOperations_NineMonths); + + /// + /// Gets/sets the TwelveMonths period value for the field + /// + [JsonProperty("12M")] + public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedBasicAdjustedFundFromOperations_TwelveMonths); + + /// + /// Returns true if the field contains a value for the default period + /// + public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedBasicAdjustedFundFromOperations_TwelveMonths)); + + /// + /// Returns the default value for the field + /// + public override double Value + { + get + { + var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedBasicAdjustedFundFromOperations_TwelveMonths); + if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) + { + return defaultValue; + } + return base.Value; + } + } + + /// + /// Gets a dictionary of period names and values for the field + /// + /// The dictionary of period names and values + public override IReadOnlyDictionary GetPeriodValues() + { + var result = new Dictionary(); + foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + { + if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) + { + result[kvp.Item1] = kvp.Item2; + } + } + return result; + } + + /// + /// Gets the value of the field for the requested period + /// + /// The requested period + /// The value for the period + public override double GetPeriodValue(string period) => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, Enum.Parse($"FinancialStatements_ReportedBasicAdjustedFundFromOperations_{ConvertPeriod(period)}")); + + /// + /// Creates a new empty instance + /// + public ReportedBasicAdjustedFundFromOperations() + { + } + + /// + /// Creates a new instance for the given time and security + /// + public ReportedBasicAdjustedFundFromOperations(ITimeProvider timeProvider, SecurityIdentifier securityIdentifier) : base(timeProvider, securityIdentifier) + { + } + } +} diff --git a/Common/Data/Fundamental/Generated/ReportedBasicAdjustedFundFromOperationsPerShare.cs b/Common/Data/Fundamental/Generated/ReportedBasicAdjustedFundFromOperationsPerShare.cs new file mode 100644 index 000000000000..6d10e0ee6ecb --- /dev/null +++ b/Common/Data/Fundamental/Generated/ReportedBasicAdjustedFundFromOperationsPerShare.cs @@ -0,0 +1,125 @@ +/* + * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. + * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * +*/ + +using System; +using System.Linq; +using Python.Runtime; +using Newtonsoft.Json; +using System.Collections.Generic; +using QuantConnect.Data.UniverseSelection; + +namespace QuantConnect.Data.Fundamental +{ + /// + /// Adjusted funds from operations per basic share, as reported + /// + public class ReportedBasicAdjustedFundFromOperationsPerShare : MultiPeriodField + { + /// + /// The default period + /// + protected override string DefaultPeriod => "TwelveMonths"; + + /// + /// Gets/sets the OneMonth period value for the field + /// + [JsonProperty("1M")] + public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedBasicAdjustedFundFromOperationsPerShare_OneMonth); + + /// + /// Gets/sets the ThreeMonths period value for the field + /// + [JsonProperty("3M")] + public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedBasicAdjustedFundFromOperationsPerShare_ThreeMonths); + + /// + /// Gets/sets the SixMonths period value for the field + /// + [JsonProperty("6M")] + public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedBasicAdjustedFundFromOperationsPerShare_SixMonths); + + /// + /// Gets/sets the NineMonths period value for the field + /// + [JsonProperty("9M")] + public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedBasicAdjustedFundFromOperationsPerShare_NineMonths); + + /// + /// Gets/sets the TwelveMonths period value for the field + /// + [JsonProperty("12M")] + public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedBasicAdjustedFundFromOperationsPerShare_TwelveMonths); + + /// + /// Returns true if the field contains a value for the default period + /// + public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedBasicAdjustedFundFromOperationsPerShare_TwelveMonths)); + + /// + /// Returns the default value for the field + /// + public override double Value + { + get + { + var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedBasicAdjustedFundFromOperationsPerShare_TwelveMonths); + if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) + { + return defaultValue; + } + return base.Value; + } + } + + /// + /// Gets a dictionary of period names and values for the field + /// + /// The dictionary of period names and values + public override IReadOnlyDictionary GetPeriodValues() + { + var result = new Dictionary(); + foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + { + if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) + { + result[kvp.Item1] = kvp.Item2; + } + } + return result; + } + + /// + /// Gets the value of the field for the requested period + /// + /// The requested period + /// The value for the period + public override double GetPeriodValue(string period) => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, Enum.Parse($"FinancialStatements_ReportedBasicAdjustedFundFromOperationsPerShare_{ConvertPeriod(period)}")); + + /// + /// Creates a new empty instance + /// + public ReportedBasicAdjustedFundFromOperationsPerShare() + { + } + + /// + /// Creates a new instance for the given time and security + /// + public ReportedBasicAdjustedFundFromOperationsPerShare(ITimeProvider timeProvider, SecurityIdentifier securityIdentifier) : base(timeProvider, securityIdentifier) + { + } + } +} diff --git a/Common/Data/Fundamental/Generated/ReportedBasicFundFromOperationsPerShare.cs b/Common/Data/Fundamental/Generated/ReportedBasicFundFromOperationsPerShare.cs new file mode 100644 index 000000000000..9e8abc0c2932 --- /dev/null +++ b/Common/Data/Fundamental/Generated/ReportedBasicFundFromOperationsPerShare.cs @@ -0,0 +1,125 @@ +/* + * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. + * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * +*/ + +using System; +using System.Linq; +using Python.Runtime; +using Newtonsoft.Json; +using System.Collections.Generic; +using QuantConnect.Data.UniverseSelection; + +namespace QuantConnect.Data.Fundamental +{ + /// + /// Funds from operations per basic share, as reported + /// + public class ReportedBasicFundFromOperationsPerShare : MultiPeriodField + { + /// + /// The default period + /// + protected override string DefaultPeriod => "TwelveMonths"; + + /// + /// Gets/sets the OneMonth period value for the field + /// + [JsonProperty("1M")] + public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedBasicFundFromOperationsPerShare_OneMonth); + + /// + /// Gets/sets the ThreeMonths period value for the field + /// + [JsonProperty("3M")] + public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedBasicFundFromOperationsPerShare_ThreeMonths); + + /// + /// Gets/sets the SixMonths period value for the field + /// + [JsonProperty("6M")] + public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedBasicFundFromOperationsPerShare_SixMonths); + + /// + /// Gets/sets the NineMonths period value for the field + /// + [JsonProperty("9M")] + public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedBasicFundFromOperationsPerShare_NineMonths); + + /// + /// Gets/sets the TwelveMonths period value for the field + /// + [JsonProperty("12M")] + public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedBasicFundFromOperationsPerShare_TwelveMonths); + + /// + /// Returns true if the field contains a value for the default period + /// + public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedBasicFundFromOperationsPerShare_TwelveMonths)); + + /// + /// Returns the default value for the field + /// + public override double Value + { + get + { + var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedBasicFundFromOperationsPerShare_TwelveMonths); + if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) + { + return defaultValue; + } + return base.Value; + } + } + + /// + /// Gets a dictionary of period names and values for the field + /// + /// The dictionary of period names and values + public override IReadOnlyDictionary GetPeriodValues() + { + var result = new Dictionary(); + foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + { + if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) + { + result[kvp.Item1] = kvp.Item2; + } + } + return result; + } + + /// + /// Gets the value of the field for the requested period + /// + /// The requested period + /// The value for the period + public override double GetPeriodValue(string period) => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, Enum.Parse($"FinancialStatements_ReportedBasicFundFromOperationsPerShare_{ConvertPeriod(period)}")); + + /// + /// Creates a new empty instance + /// + public ReportedBasicFundFromOperationsPerShare() + { + } + + /// + /// Creates a new instance for the given time and security + /// + public ReportedBasicFundFromOperationsPerShare(ITimeProvider timeProvider, SecurityIdentifier securityIdentifier) : base(timeProvider, securityIdentifier) + { + } + } +} diff --git a/Common/Data/Fundamental/Generated/ReportedDilutedAdjustedFundFromOperations.cs b/Common/Data/Fundamental/Generated/ReportedDilutedAdjustedFundFromOperations.cs new file mode 100644 index 000000000000..065044a52a18 --- /dev/null +++ b/Common/Data/Fundamental/Generated/ReportedDilutedAdjustedFundFromOperations.cs @@ -0,0 +1,125 @@ +/* + * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. + * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * +*/ + +using System; +using System.Linq; +using Python.Runtime; +using Newtonsoft.Json; +using System.Collections.Generic; +using QuantConnect.Data.UniverseSelection; + +namespace QuantConnect.Data.Fundamental +{ + /// + /// Adjusted funds from operations as reported, on a diluted share basis + /// + public class ReportedDilutedAdjustedFundFromOperations : MultiPeriodField + { + /// + /// The default period + /// + protected override string DefaultPeriod => "TwelveMonths"; + + /// + /// Gets/sets the OneMonth period value for the field + /// + [JsonProperty("1M")] + public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedDilutedAdjustedFundFromOperations_OneMonth); + + /// + /// Gets/sets the ThreeMonths period value for the field + /// + [JsonProperty("3M")] + public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedDilutedAdjustedFundFromOperations_ThreeMonths); + + /// + /// Gets/sets the SixMonths period value for the field + /// + [JsonProperty("6M")] + public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedDilutedAdjustedFundFromOperations_SixMonths); + + /// + /// Gets/sets the NineMonths period value for the field + /// + [JsonProperty("9M")] + public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedDilutedAdjustedFundFromOperations_NineMonths); + + /// + /// Gets/sets the TwelveMonths period value for the field + /// + [JsonProperty("12M")] + public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedDilutedAdjustedFundFromOperations_TwelveMonths); + + /// + /// Returns true if the field contains a value for the default period + /// + public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedDilutedAdjustedFundFromOperations_TwelveMonths)); + + /// + /// Returns the default value for the field + /// + public override double Value + { + get + { + var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedDilutedAdjustedFundFromOperations_TwelveMonths); + if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) + { + return defaultValue; + } + return base.Value; + } + } + + /// + /// Gets a dictionary of period names and values for the field + /// + /// The dictionary of period names and values + public override IReadOnlyDictionary GetPeriodValues() + { + var result = new Dictionary(); + foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + { + if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) + { + result[kvp.Item1] = kvp.Item2; + } + } + return result; + } + + /// + /// Gets the value of the field for the requested period + /// + /// The requested period + /// The value for the period + public override double GetPeriodValue(string period) => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, Enum.Parse($"FinancialStatements_ReportedDilutedAdjustedFundFromOperations_{ConvertPeriod(period)}")); + + /// + /// Creates a new empty instance + /// + public ReportedDilutedAdjustedFundFromOperations() + { + } + + /// + /// Creates a new instance for the given time and security + /// + public ReportedDilutedAdjustedFundFromOperations(ITimeProvider timeProvider, SecurityIdentifier securityIdentifier) : base(timeProvider, securityIdentifier) + { + } + } +} diff --git a/Common/Data/Fundamental/Generated/ReportedDilutedAdjustedFundFromOperationsPerShare.cs b/Common/Data/Fundamental/Generated/ReportedDilutedAdjustedFundFromOperationsPerShare.cs new file mode 100644 index 000000000000..a065f32ed37a --- /dev/null +++ b/Common/Data/Fundamental/Generated/ReportedDilutedAdjustedFundFromOperationsPerShare.cs @@ -0,0 +1,125 @@ +/* + * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. + * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * +*/ + +using System; +using System.Linq; +using Python.Runtime; +using Newtonsoft.Json; +using System.Collections.Generic; +using QuantConnect.Data.UniverseSelection; + +namespace QuantConnect.Data.Fundamental +{ + /// + /// Adjusted funds from operations per diluted share, as reported + /// + public class ReportedDilutedAdjustedFundFromOperationsPerShare : MultiPeriodField + { + /// + /// The default period + /// + protected override string DefaultPeriod => "TwelveMonths"; + + /// + /// Gets/sets the OneMonth period value for the field + /// + [JsonProperty("1M")] + public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedDilutedAdjustedFundFromOperationsPerShare_OneMonth); + + /// + /// Gets/sets the ThreeMonths period value for the field + /// + [JsonProperty("3M")] + public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedDilutedAdjustedFundFromOperationsPerShare_ThreeMonths); + + /// + /// Gets/sets the SixMonths period value for the field + /// + [JsonProperty("6M")] + public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedDilutedAdjustedFundFromOperationsPerShare_SixMonths); + + /// + /// Gets/sets the NineMonths period value for the field + /// + [JsonProperty("9M")] + public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedDilutedAdjustedFundFromOperationsPerShare_NineMonths); + + /// + /// Gets/sets the TwelveMonths period value for the field + /// + [JsonProperty("12M")] + public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedDilutedAdjustedFundFromOperationsPerShare_TwelveMonths); + + /// + /// Returns true if the field contains a value for the default period + /// + public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedDilutedAdjustedFundFromOperationsPerShare_TwelveMonths)); + + /// + /// Returns the default value for the field + /// + public override double Value + { + get + { + var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedDilutedAdjustedFundFromOperationsPerShare_TwelveMonths); + if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) + { + return defaultValue; + } + return base.Value; + } + } + + /// + /// Gets a dictionary of period names and values for the field + /// + /// The dictionary of period names and values + public override IReadOnlyDictionary GetPeriodValues() + { + var result = new Dictionary(); + foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + { + if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) + { + result[kvp.Item1] = kvp.Item2; + } + } + return result; + } + + /// + /// Gets the value of the field for the requested period + /// + /// The requested period + /// The value for the period + public override double GetPeriodValue(string period) => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, Enum.Parse($"FinancialStatements_ReportedDilutedAdjustedFundFromOperationsPerShare_{ConvertPeriod(period)}")); + + /// + /// Creates a new empty instance + /// + public ReportedDilutedAdjustedFundFromOperationsPerShare() + { + } + + /// + /// Creates a new instance for the given time and security + /// + public ReportedDilutedAdjustedFundFromOperationsPerShare(ITimeProvider timeProvider, SecurityIdentifier securityIdentifier) : base(timeProvider, securityIdentifier) + { + } + } +} diff --git a/Common/Data/Fundamental/Generated/ReportedDilutedFundFromOperations.cs b/Common/Data/Fundamental/Generated/ReportedDilutedFundFromOperations.cs new file mode 100644 index 000000000000..53711bf18231 --- /dev/null +++ b/Common/Data/Fundamental/Generated/ReportedDilutedFundFromOperations.cs @@ -0,0 +1,125 @@ +/* + * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. + * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * +*/ + +using System; +using System.Linq; +using Python.Runtime; +using Newtonsoft.Json; +using System.Collections.Generic; +using QuantConnect.Data.UniverseSelection; + +namespace QuantConnect.Data.Fundamental +{ + /// + /// Funds from operations as reported, on a diluted share basis + /// + public class ReportedDilutedFundFromOperations : MultiPeriodField + { + /// + /// The default period + /// + protected override string DefaultPeriod => "TwelveMonths"; + + /// + /// Gets/sets the OneMonth period value for the field + /// + [JsonProperty("1M")] + public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedDilutedFundFromOperations_OneMonth); + + /// + /// Gets/sets the ThreeMonths period value for the field + /// + [JsonProperty("3M")] + public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedDilutedFundFromOperations_ThreeMonths); + + /// + /// Gets/sets the SixMonths period value for the field + /// + [JsonProperty("6M")] + public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedDilutedFundFromOperations_SixMonths); + + /// + /// Gets/sets the NineMonths period value for the field + /// + [JsonProperty("9M")] + public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedDilutedFundFromOperations_NineMonths); + + /// + /// Gets/sets the TwelveMonths period value for the field + /// + [JsonProperty("12M")] + public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedDilutedFundFromOperations_TwelveMonths); + + /// + /// Returns true if the field contains a value for the default period + /// + public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedDilutedFundFromOperations_TwelveMonths)); + + /// + /// Returns the default value for the field + /// + public override double Value + { + get + { + var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedDilutedFundFromOperations_TwelveMonths); + if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) + { + return defaultValue; + } + return base.Value; + } + } + + /// + /// Gets a dictionary of period names and values for the field + /// + /// The dictionary of period names and values + public override IReadOnlyDictionary GetPeriodValues() + { + var result = new Dictionary(); + foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + { + if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) + { + result[kvp.Item1] = kvp.Item2; + } + } + return result; + } + + /// + /// Gets the value of the field for the requested period + /// + /// The requested period + /// The value for the period + public override double GetPeriodValue(string period) => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, Enum.Parse($"FinancialStatements_ReportedDilutedFundFromOperations_{ConvertPeriod(period)}")); + + /// + /// Creates a new empty instance + /// + public ReportedDilutedFundFromOperations() + { + } + + /// + /// Creates a new instance for the given time and security + /// + public ReportedDilutedFundFromOperations(ITimeProvider timeProvider, SecurityIdentifier securityIdentifier) : base(timeProvider, securityIdentifier) + { + } + } +} diff --git a/Common/Data/Fundamental/Generated/ReportedDilutedFundFromOperationsPerShare.cs b/Common/Data/Fundamental/Generated/ReportedDilutedFundFromOperationsPerShare.cs new file mode 100644 index 000000000000..417884555dfe --- /dev/null +++ b/Common/Data/Fundamental/Generated/ReportedDilutedFundFromOperationsPerShare.cs @@ -0,0 +1,125 @@ +/* + * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. + * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * +*/ + +using System; +using System.Linq; +using Python.Runtime; +using Newtonsoft.Json; +using System.Collections.Generic; +using QuantConnect.Data.UniverseSelection; + +namespace QuantConnect.Data.Fundamental +{ + /// + /// Funds from operations per diluted share, as reported + /// + public class ReportedDilutedFundFromOperationsPerShare : MultiPeriodField + { + /// + /// The default period + /// + protected override string DefaultPeriod => "TwelveMonths"; + + /// + /// Gets/sets the OneMonth period value for the field + /// + [JsonProperty("1M")] + public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedDilutedFundFromOperationsPerShare_OneMonth); + + /// + /// Gets/sets the ThreeMonths period value for the field + /// + [JsonProperty("3M")] + public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedDilutedFundFromOperationsPerShare_ThreeMonths); + + /// + /// Gets/sets the SixMonths period value for the field + /// + [JsonProperty("6M")] + public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedDilutedFundFromOperationsPerShare_SixMonths); + + /// + /// Gets/sets the NineMonths period value for the field + /// + [JsonProperty("9M")] + public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedDilutedFundFromOperationsPerShare_NineMonths); + + /// + /// Gets/sets the TwelveMonths period value for the field + /// + [JsonProperty("12M")] + public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedDilutedFundFromOperationsPerShare_TwelveMonths); + + /// + /// Returns true if the field contains a value for the default period + /// + public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedDilutedFundFromOperationsPerShare_TwelveMonths)); + + /// + /// Returns the default value for the field + /// + public override double Value + { + get + { + var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_ReportedDilutedFundFromOperationsPerShare_TwelveMonths); + if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) + { + return defaultValue; + } + return base.Value; + } + } + + /// + /// Gets a dictionary of period names and values for the field + /// + /// The dictionary of period names and values + public override IReadOnlyDictionary GetPeriodValues() + { + var result = new Dictionary(); + foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + { + if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) + { + result[kvp.Item1] = kvp.Item2; + } + } + return result; + } + + /// + /// Gets the value of the field for the requested period + /// + /// The requested period + /// The value for the period + public override double GetPeriodValue(string period) => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, Enum.Parse($"FinancialStatements_ReportedDilutedFundFromOperationsPerShare_{ConvertPeriod(period)}")); + + /// + /// Creates a new empty instance + /// + public ReportedDilutedFundFromOperationsPerShare() + { + } + + /// + /// Creates a new instance for the given time and security + /// + public ReportedDilutedFundFromOperationsPerShare(ITimeProvider timeProvider, SecurityIdentifier securityIdentifier) : base(timeProvider, securityIdentifier) + { + } + } +} diff --git a/Common/Data/Fundamental/Generated/ReportedNormalizedBasicEPS.cs b/Common/Data/Fundamental/Generated/ReportedNormalizedBasicEPS.cs index 621dabf4d920..ff4fb8baef16 100644 --- a/Common/Data/Fundamental/Generated/ReportedNormalizedBasicEPS.cs +++ b/Common/Data/Fundamental/Generated/ReportedNormalizedBasicEPS.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/ReportedNormalizedDilutedEPS.cs b/Common/Data/Fundamental/Generated/ReportedNormalizedDilutedEPS.cs index 87ae3e9f249a..7b3cf63814f8 100644 --- a/Common/Data/Fundamental/Generated/ReportedNormalizedDilutedEPS.cs +++ b/Common/Data/Fundamental/Generated/ReportedNormalizedDilutedEPS.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/RestrictedCashAndCashEquivalentsBalanceSheet.cs b/Common/Data/Fundamental/Generated/RestrictedCashAndCashEquivalentsBalanceSheet.cs index 8db0be9cbfa0..18b45d59c178 100644 --- a/Common/Data/Fundamental/Generated/RestrictedCashAndCashEquivalentsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/RestrictedCashAndCashEquivalentsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -49,7 +49,8 @@ public class RestrictedCashAndCashEquivalentsBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_RestrictedCashAndCashEquivalents_NineMonths); + [Obsolete("RestrictedCashAndCashEquivalents.NineMonths was retired by Morningstar in 2026; use RestrictedCashAndCashEquivalents.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("RestrictedCashAndCashEquivalents.NineMonths was retired by Morningstar in 2026; use RestrictedCashAndCashEquivalents.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -85,7 +86,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/RestrictedCashAndInvestmentsBalanceSheet.cs b/Common/Data/Fundamental/Generated/RestrictedCashAndInvestmentsBalanceSheet.cs index 61e885f50e3d..588a2eda20c5 100644 --- a/Common/Data/Fundamental/Generated/RestrictedCashAndInvestmentsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/RestrictedCashAndInvestmentsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -49,7 +49,8 @@ public class RestrictedCashAndInvestmentsBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_RestrictedCashAndInvestments_NineMonths); + [Obsolete("RestrictedCashAndInvestments.NineMonths was retired by Morningstar in 2026; use RestrictedCashAndInvestments.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("RestrictedCashAndInvestments.NineMonths was retired by Morningstar in 2026; use RestrictedCashAndInvestments.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -85,7 +86,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/RestrictedCashBalanceSheet.cs b/Common/Data/Fundamental/Generated/RestrictedCashBalanceSheet.cs index 6f57ccacbd00..85523e9cbff2 100644 --- a/Common/Data/Fundamental/Generated/RestrictedCashBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/RestrictedCashBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class RestrictedCashBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_RestrictedCash_OneMonth); + [Obsolete("RestrictedCash.OneMonth was retired by Morningstar in 2026; use RestrictedCash.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("RestrictedCash.OneMonth was retired by Morningstar in 2026; use RestrictedCash.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_RestrictedCash_TwoMonths); + [Obsolete("RestrictedCash.TwoMonths was retired by Morningstar in 2026; use RestrictedCash.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("RestrictedCash.TwoMonths was retired by Morningstar in 2026; use RestrictedCash.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class RestrictedCashBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_RestrictedCash_NineMonths); + [Obsolete("RestrictedCash.NineMonths was retired by Morningstar in 2026; use RestrictedCash.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("RestrictedCash.NineMonths was retired by Morningstar in 2026; use RestrictedCash.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/RestrictedInvestmentsBalanceSheet.cs b/Common/Data/Fundamental/Generated/RestrictedInvestmentsBalanceSheet.cs index d40e64148aa0..6adf726bf8a2 100644 --- a/Common/Data/Fundamental/Generated/RestrictedInvestmentsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/RestrictedInvestmentsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/RestructuringAndMergernAcquisitionIncomeStatement.cs b/Common/Data/Fundamental/Generated/RestructuringAndMergernAcquisitionIncomeStatement.cs index b4f2a31771f7..7466bd3cfc3d 100644 --- a/Common/Data/Fundamental/Generated/RestructuringAndMergernAcquisitionIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/RestructuringAndMergernAcquisitionIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class RestructuringAndMergernAcquisitionIncomeStatement : MultiPeriodFiel /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_RestructuringAndMergernAcquisition_OneMonth); + [Obsolete("RestructuringAndMergernAcquisition was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("RestructuringAndMergernAcquisition was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_RestructuringAndMergernAcquisition_TwoMonths); + [Obsolete("RestructuringAndMergernAcquisition was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("RestructuringAndMergernAcquisition was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_RestructuringAndMergernAcquisition_ThreeMonths); + [Obsolete("RestructuringAndMergernAcquisition was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("RestructuringAndMergernAcquisition was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_RestructuringAndMergernAcquisition_SixMonths); + [Obsolete("RestructuringAndMergernAcquisition was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("RestructuringAndMergernAcquisition was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_RestructuringAndMergernAcquisition_NineMonths); + [Obsolete("RestructuringAndMergernAcquisition was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("RestructuringAndMergernAcquisition was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_RestructuringAndMergernAcquisition_TwelveMonths); + [Obsolete("RestructuringAndMergernAcquisition was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("RestructuringAndMergernAcquisition was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_RestructuringAndMergernAcquisition_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_RestructuringAndMergernAcquisition_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("RestructuringAndMergernAcquisition was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/RetainedEarningsBalanceSheet.cs b/Common/Data/Fundamental/Generated/RetainedEarningsBalanceSheet.cs index d928579f7cf1..3b73515f4f54 100644 --- a/Common/Data/Fundamental/Generated/RetainedEarningsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/RetainedEarningsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class RetainedEarningsBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_RetainedEarnings_OneMonth); + [Obsolete("RetainedEarnings.OneMonth was retired by Morningstar in 2026; use RetainedEarnings.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("RetainedEarnings.OneMonth was retired by Morningstar in 2026; use RetainedEarnings.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_RetainedEarnings_TwoMonths); + [Obsolete("RetainedEarnings.TwoMonths was retired by Morningstar in 2026; use RetainedEarnings.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("RetainedEarnings.TwoMonths was retired by Morningstar in 2026; use RetainedEarnings.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class RetainedEarningsBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_RetainedEarnings_NineMonths); + [Obsolete("RetainedEarnings.NineMonths was retired by Morningstar in 2026; use RetainedEarnings.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("RetainedEarnings.NineMonths was retired by Morningstar in 2026; use RetainedEarnings.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/RiskWeightedAsset.cs b/Common/Data/Fundamental/Generated/RiskWeightedAsset.cs new file mode 100644 index 000000000000..5d91466384be --- /dev/null +++ b/Common/Data/Fundamental/Generated/RiskWeightedAsset.cs @@ -0,0 +1,125 @@ +/* + * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. + * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * +*/ + +using System; +using System.Linq; +using Python.Runtime; +using Newtonsoft.Json; +using System.Collections.Generic; +using QuantConnect.Data.UniverseSelection; + +namespace QuantConnect.Data.Fundamental +{ + /// + /// Assets weighted by credit risk, the denominator of the regulatory capital ratios + /// + public class RiskWeightedAsset : MultiPeriodField + { + /// + /// The default period + /// + protected override string DefaultPeriod => "TwelveMonths"; + + /// + /// Gets/sets the OneMonth period value for the field + /// + [JsonProperty("1M")] + public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_RiskWeightedAsset_OneMonth); + + /// + /// Gets/sets the ThreeMonths period value for the field + /// + [JsonProperty("3M")] + public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_RiskWeightedAsset_ThreeMonths); + + /// + /// Gets/sets the SixMonths period value for the field + /// + [JsonProperty("6M")] + public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_RiskWeightedAsset_SixMonths); + + /// + /// Gets/sets the NineMonths period value for the field + /// + [JsonProperty("9M")] + public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_RiskWeightedAsset_NineMonths); + + /// + /// Gets/sets the TwelveMonths period value for the field + /// + [JsonProperty("12M")] + public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_RiskWeightedAsset_TwelveMonths); + + /// + /// Returns true if the field contains a value for the default period + /// + public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_RiskWeightedAsset_TwelveMonths)); + + /// + /// Returns the default value for the field + /// + public override double Value + { + get + { + var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_RiskWeightedAsset_TwelveMonths); + if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) + { + return defaultValue; + } + return base.Value; + } + } + + /// + /// Gets a dictionary of period names and values for the field + /// + /// The dictionary of period names and values + public override IReadOnlyDictionary GetPeriodValues() + { + var result = new Dictionary(); + foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + { + if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) + { + result[kvp.Item1] = kvp.Item2; + } + } + return result; + } + + /// + /// Gets the value of the field for the requested period + /// + /// The requested period + /// The value for the period + public override double GetPeriodValue(string period) => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, Enum.Parse($"FinancialStatements_RiskWeightedAsset_{ConvertPeriod(period)}")); + + /// + /// Creates a new empty instance + /// + public RiskWeightedAsset() + { + } + + /// + /// Creates a new instance for the given time and security + /// + public RiskWeightedAsset(ITimeProvider timeProvider, SecurityIdentifier securityIdentifier) : base(timeProvider, securityIdentifier) + { + } + } +} diff --git a/Common/Data/Fundamental/Generated/SalariesAndWagesIncomeStatement.cs b/Common/Data/Fundamental/Generated/SalariesAndWagesIncomeStatement.cs index e8ad8e7cfc1c..7dc7130baa5d 100644 --- a/Common/Data/Fundamental/Generated/SalariesAndWagesIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/SalariesAndWagesIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class SalariesAndWagesIncomeStatement : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_SalariesAndWages_OneMonth); + [Obsolete("SalariesAndWages was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("SalariesAndWages was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_SalariesAndWages_TwoMonths); + [Obsolete("SalariesAndWages was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("SalariesAndWages was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_SalariesAndWages_ThreeMonths); + [Obsolete("SalariesAndWages was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("SalariesAndWages was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_SalariesAndWages_SixMonths); + [Obsolete("SalariesAndWages was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("SalariesAndWages was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_SalariesAndWages_NineMonths); + [Obsolete("SalariesAndWages was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("SalariesAndWages was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_SalariesAndWages_TwelveMonths); + [Obsolete("SalariesAndWages was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("SalariesAndWages was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_SalariesAndWages_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_SalariesAndWages_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("SalariesAndWages was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/SaleOfIntangiblesCashFlowStatement.cs b/Common/Data/Fundamental/Generated/SaleOfIntangiblesCashFlowStatement.cs index 5726f8f5b5e6..56128199b47f 100644 --- a/Common/Data/Fundamental/Generated/SaleOfIntangiblesCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/SaleOfIntangiblesCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/SaleOfInvestmentPropertiesCashFlowStatement.cs b/Common/Data/Fundamental/Generated/SaleOfInvestmentPropertiesCashFlowStatement.cs index 4d15d49ffc63..d500c0a4db6e 100644 --- a/Common/Data/Fundamental/Generated/SaleOfInvestmentPropertiesCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/SaleOfInvestmentPropertiesCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/SaleOfJointVentureAssociateCashFlowStatement.cs b/Common/Data/Fundamental/Generated/SaleOfJointVentureAssociateCashFlowStatement.cs index 8983dccecc9e..e3a7b16a3b72 100644 --- a/Common/Data/Fundamental/Generated/SaleOfJointVentureAssociateCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/SaleOfJointVentureAssociateCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class SaleOfJointVentureAssociateCashFlowStatement : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_SaleOfJointVentureAssociate_ThreeMonths); + [Obsolete("SaleOfJointVentureAssociate was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("SaleOfJointVentureAssociate was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_SaleOfJointVentureAssociate_SixMonths); + [Obsolete("SaleOfJointVentureAssociate was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("SaleOfJointVentureAssociate was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_SaleOfJointVentureAssociate_NineMonths); + [Obsolete("SaleOfJointVentureAssociate was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("SaleOfJointVentureAssociate was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_SaleOfJointVentureAssociate_TwelveMonths); + [Obsolete("SaleOfJointVentureAssociate was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("SaleOfJointVentureAssociate was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_SaleOfJointVentureAssociate_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_SaleOfJointVentureAssociate_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("SaleOfJointVentureAssociate was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/SaleOfSubsidiariesCashFlowStatement.cs b/Common/Data/Fundamental/Generated/SaleOfSubsidiariesCashFlowStatement.cs index 92b83013d593..84567a774809 100644 --- a/Common/Data/Fundamental/Generated/SaleOfSubsidiariesCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/SaleOfSubsidiariesCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class SaleOfSubsidiariesCashFlowStatement : MultiPeriodField /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_SaleOfSubsidiaries_SixMonths); + [Obsolete("SaleOfSubsidiaries was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("SaleOfSubsidiaries was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_SaleOfSubsidiaries_TwelveMonths); + [Obsolete("SaleOfSubsidiaries was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("SaleOfSubsidiaries was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_SaleOfSubsidiaries_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_SaleOfSubsidiaries_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("SaleOfSubsidiaries was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/SalesPerEmployee.cs b/Common/Data/Fundamental/Generated/SalesPerEmployee.cs index 677b1d158d82..4bb78ee03db6 100644 --- a/Common/Data/Fundamental/Generated/SalesPerEmployee.cs +++ b/Common/Data/Fundamental/Generated/SalesPerEmployee.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -43,31 +43,36 @@ public class SalesPerEmployee : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_SalesPerEmployee_OneMonth); + [Obsolete("SalesPerEmployee.OneMonth was retired by Morningstar in 2026; use SalesPerEmployee.OneYear.")] + public double OneMonth => throw new NotSupportedException("SalesPerEmployee.OneMonth was retired by Morningstar in 2026; use SalesPerEmployee.OneYear."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_SalesPerEmployee_TwoMonths); + [Obsolete("SalesPerEmployee.TwoMonths was retired by Morningstar in 2026; use SalesPerEmployee.OneYear.")] + public double TwoMonths => throw new NotSupportedException("SalesPerEmployee.TwoMonths was retired by Morningstar in 2026; use SalesPerEmployee.OneYear."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_SalesPerEmployee_ThreeMonths); + [Obsolete("SalesPerEmployee.ThreeMonths was retired by Morningstar in 2026; use SalesPerEmployee.OneYear.")] + public double ThreeMonths => throw new NotSupportedException("SalesPerEmployee.ThreeMonths was retired by Morningstar in 2026; use SalesPerEmployee.OneYear."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_SalesPerEmployee_SixMonths); + [Obsolete("SalesPerEmployee.SixMonths was retired by Morningstar in 2026; use SalesPerEmployee.OneYear.")] + public double SixMonths => throw new NotSupportedException("SalesPerEmployee.SixMonths was retired by Morningstar in 2026; use SalesPerEmployee.OneYear."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_SalesPerEmployee_NineMonths); + [Obsolete("SalesPerEmployee.NineMonths was retired by Morningstar in 2026; use SalesPerEmployee.OneYear.")] + public double NineMonths => throw new NotSupportedException("SalesPerEmployee.NineMonths was retired by Morningstar in 2026; use SalesPerEmployee.OneYear."); /// /// Returns true if the field contains a value for the default period @@ -97,7 +102,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1Y",OneYear), new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths) }) + foreach (var kvp in new[] { new Tuple("1Y",OneYear) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/SecuritiesActivitiesIncomeStatement.cs b/Common/Data/Fundamental/Generated/SecuritiesActivitiesIncomeStatement.cs index e1673eb4c6f0..ae634bf698f9 100644 --- a/Common/Data/Fundamental/Generated/SecuritiesActivitiesIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/SecuritiesActivitiesIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class SecuritiesActivitiesIncomeStatement : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_SecuritiesActivities_ThreeMonths); + [Obsolete("SecuritiesActivities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("SecuritiesActivities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_SecuritiesActivities_SixMonths); + [Obsolete("SecuritiesActivities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("SecuritiesActivities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_SecuritiesActivities_NineMonths); + [Obsolete("SecuritiesActivities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("SecuritiesActivities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_SecuritiesActivities_TwelveMonths); + [Obsolete("SecuritiesActivities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("SecuritiesActivities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_SecuritiesActivities_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_SecuritiesActivities_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("SecuritiesActivities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/SecuritiesAndInvestmentsBalanceSheet.cs b/Common/Data/Fundamental/Generated/SecuritiesAndInvestmentsBalanceSheet.cs index 4e1cbcc39770..bce4a4b71857 100644 --- a/Common/Data/Fundamental/Generated/SecuritiesAndInvestmentsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/SecuritiesAndInvestmentsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -55,7 +55,8 @@ public class SecuritiesAndInvestmentsBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_SecuritiesAndInvestments_NineMonths); + [Obsolete("SecuritiesAndInvestments.NineMonths was retired by Morningstar in 2026; use SecuritiesAndInvestments.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("SecuritiesAndInvestments.NineMonths was retired by Morningstar in 2026; use SecuritiesAndInvestments.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -91,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/SecuritiesLoanedBalanceSheet.cs b/Common/Data/Fundamental/Generated/SecuritiesLoanedBalanceSheet.cs index 925ff85434f2..cfb59c8d7dc8 100644 --- a/Common/Data/Fundamental/Generated/SecuritiesLoanedBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/SecuritiesLoanedBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class SecuritiesLoanedBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_SecuritiesLoaned_ThreeMonths); + [Obsolete("SecuritiesLoaned was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("SecuritiesLoaned was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_SecuritiesLoaned_TwelveMonths); + [Obsolete("SecuritiesLoaned was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("SecuritiesLoaned was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_SecuritiesLoaned_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_SecuritiesLoaned_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("SecuritiesLoaned was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/SecurityAgreeToBeResellBalanceSheet.cs b/Common/Data/Fundamental/Generated/SecurityAgreeToBeResellBalanceSheet.cs index f217fa7abd9d..89b799f56498 100644 --- a/Common/Data/Fundamental/Generated/SecurityAgreeToBeResellBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/SecurityAgreeToBeResellBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/SecurityBorrowedBalanceSheet.cs b/Common/Data/Fundamental/Generated/SecurityBorrowedBalanceSheet.cs index 6285caf3a12f..866ddabdd068 100644 --- a/Common/Data/Fundamental/Generated/SecurityBorrowedBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/SecurityBorrowedBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class SecurityBorrowedBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_SecurityBorrowed_ThreeMonths); + [Obsolete("SecurityBorrowed was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("SecurityBorrowed was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_SecurityBorrowed_TwelveMonths); + [Obsolete("SecurityBorrowed was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("SecurityBorrowed was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_SecurityBorrowed_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_SecurityBorrowed_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("SecurityBorrowed was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/SecurityReference.cs b/Common/Data/Fundamental/Generated/SecurityReference.cs index 2df490954c6f..c289de29bc43 100644 --- a/Common/Data/Fundamental/Generated/SecurityReference.cs +++ b/Common/Data/Fundamental/Generated/SecurityReference.cs @@ -55,6 +55,17 @@ public class SecurityReference : FundamentalTimeDependentProperty [JsonProperty("1004")] public string CurrencyId => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.SecurityReference_CurrencyId); + /// + /// The International Securities Identification Number of the share. Those issued by CUSIP + /// Global Services are licensed separately and are not included, so this is populated for + /// non US issuers. + /// + /// + /// Morningstar DataId: 1007 + /// + [JsonProperty("1007")] + public string ISIN => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.SecurityReference_ISIN); + /// /// The initial day that the share begins trading on a public exchange. /// @@ -244,6 +255,15 @@ public class SecurityReference : FundamentalTimeDependentProperty [JsonProperty("1029")] public string MarketDataID => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.SecurityReference_MarketDataID); + /// + /// Whether the security is in its initial public offering period + /// + /// + /// Morningstar DataId: 45008 + /// + [JsonProperty("45008")] + public bool IsIPO => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.SecurityReference_IsIPO); + /// /// Creates a new instance for the given time and security /// diff --git a/Common/Data/Fundamental/Generated/SellingAndMarketingExpenseIncomeStatement.cs b/Common/Data/Fundamental/Generated/SellingAndMarketingExpenseIncomeStatement.cs index 51853b53b917..86a2261f1906 100644 --- a/Common/Data/Fundamental/Generated/SellingAndMarketingExpenseIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/SellingAndMarketingExpenseIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class SellingAndMarketingExpenseIncomeStatement : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_SellingAndMarketingExpense_OneMonth); + [Obsolete("SellingAndMarketingExpense was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("SellingAndMarketingExpense was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_SellingAndMarketingExpense_TwoMonths); + [Obsolete("SellingAndMarketingExpense was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("SellingAndMarketingExpense was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_SellingAndMarketingExpense_ThreeMonths); + [Obsolete("SellingAndMarketingExpense was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("SellingAndMarketingExpense was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_SellingAndMarketingExpense_SixMonths); + [Obsolete("SellingAndMarketingExpense was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("SellingAndMarketingExpense was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_SellingAndMarketingExpense_NineMonths); + [Obsolete("SellingAndMarketingExpense was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("SellingAndMarketingExpense was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_SellingAndMarketingExpense_TwelveMonths); + [Obsolete("SellingAndMarketingExpense was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("SellingAndMarketingExpense was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_SellingAndMarketingExpense_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_SellingAndMarketingExpense_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("SellingAndMarketingExpense was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/ServiceChargeOnDepositorAccountsIncomeStatement.cs b/Common/Data/Fundamental/Generated/ServiceChargeOnDepositorAccountsIncomeStatement.cs index c2a2da8225d8..b2b86391fc57 100644 --- a/Common/Data/Fundamental/Generated/ServiceChargeOnDepositorAccountsIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/ServiceChargeOnDepositorAccountsIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,52 +37,46 @@ public class ServiceChargeOnDepositorAccountsIncomeStatement : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ServiceChargeOnDepositorAccounts_OneMonth); + [Obsolete("ServiceChargeOnDepositorAccounts was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("ServiceChargeOnDepositorAccounts was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ServiceChargeOnDepositorAccounts_ThreeMonths); + [Obsolete("ServiceChargeOnDepositorAccounts was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("ServiceChargeOnDepositorAccounts was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ServiceChargeOnDepositorAccounts_SixMonths); + [Obsolete("ServiceChargeOnDepositorAccounts was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("ServiceChargeOnDepositorAccounts was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ServiceChargeOnDepositorAccounts_NineMonths); + [Obsolete("ServiceChargeOnDepositorAccounts was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("ServiceChargeOnDepositorAccounts was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ServiceChargeOnDepositorAccounts_TwelveMonths); + [Obsolete("ServiceChargeOnDepositorAccounts was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("ServiceChargeOnDepositorAccounts was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ServiceChargeOnDepositorAccounts_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_ServiceChargeOnDepositorAccounts_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("ServiceChargeOnDepositorAccounts was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -91,7 +85,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/ShareIssuedBalanceSheet.cs b/Common/Data/Fundamental/Generated/ShareIssuedBalanceSheet.cs index fdd5b7d3c638..f210cdd2221d 100644 --- a/Common/Data/Fundamental/Generated/ShareIssuedBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/ShareIssuedBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class ShareIssuedBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ShareIssued_ThreeMonths); + [Obsolete("ShareIssued was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("ShareIssued was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ShareIssued_TwelveMonths); + [Obsolete("ShareIssued was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("ShareIssued was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ShareIssued_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ShareIssued_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("ShareIssued was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/ShareOfAssociatesCashFlowStatement.cs b/Common/Data/Fundamental/Generated/ShareOfAssociatesCashFlowStatement.cs index b8311d4b06de..8b58160fda23 100644 --- a/Common/Data/Fundamental/Generated/ShareOfAssociatesCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/ShareOfAssociatesCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class ShareOfAssociatesCashFlowStatement : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ShareOfAssociates_ThreeMonths); + [Obsolete("ShareOfAssociates was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("ShareOfAssociates was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ShareOfAssociates_SixMonths); + [Obsolete("ShareOfAssociates was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("ShareOfAssociates was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ShareOfAssociates_NineMonths); + [Obsolete("ShareOfAssociates was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("ShareOfAssociates was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ShareOfAssociates_TwelveMonths); + [Obsolete("ShareOfAssociates was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("ShareOfAssociates was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ShareOfAssociates_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_ShareOfAssociates_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("ShareOfAssociates was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/ShortTermInvestmentsAvailableForSaleBalanceSheet.cs b/Common/Data/Fundamental/Generated/ShortTermInvestmentsAvailableForSaleBalanceSheet.cs index 7dccf16562cb..164bb4b3f40c 100644 --- a/Common/Data/Fundamental/Generated/ShortTermInvestmentsAvailableForSaleBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/ShortTermInvestmentsAvailableForSaleBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/ShortTermInvestmentsHeldToMaturityBalanceSheet.cs b/Common/Data/Fundamental/Generated/ShortTermInvestmentsHeldToMaturityBalanceSheet.cs index a8d322c53945..f4468d414974 100644 --- a/Common/Data/Fundamental/Generated/ShortTermInvestmentsHeldToMaturityBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/ShortTermInvestmentsHeldToMaturityBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class ShortTermInvestmentsHeldToMaturityBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ShortTermInvestmentsHeldToMaturity_ThreeMonths); + [Obsolete("ShortTermInvestmentsHeldToMaturity was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("ShortTermInvestmentsHeldToMaturity was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ShortTermInvestmentsHeldToMaturity_TwelveMonths); + [Obsolete("ShortTermInvestmentsHeldToMaturity was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("ShortTermInvestmentsHeldToMaturity was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ShortTermInvestmentsHeldToMaturity_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ShortTermInvestmentsHeldToMaturity_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("ShortTermInvestmentsHeldToMaturity was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/ShortTermInvestmentsTradingBalanceSheet.cs b/Common/Data/Fundamental/Generated/ShortTermInvestmentsTradingBalanceSheet.cs index 5fd7be03ba04..e12eb1de0113 100644 --- a/Common/Data/Fundamental/Generated/ShortTermInvestmentsTradingBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/ShortTermInvestmentsTradingBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class ShortTermInvestmentsTradingBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ShortTermInvestmentsTrading_ThreeMonths); + [Obsolete("ShortTermInvestmentsTrading was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("ShortTermInvestmentsTrading was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ShortTermInvestmentsTrading_TwelveMonths); + [Obsolete("ShortTermInvestmentsTrading was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("ShortTermInvestmentsTrading was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ShortTermInvestmentsTrading_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_ShortTermInvestmentsTrading_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("ShortTermInvestmentsTrading was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/SocialSecurityCostsIncomeStatement.cs b/Common/Data/Fundamental/Generated/SocialSecurityCostsIncomeStatement.cs index 9ed1c771496b..22c54f484f8b 100644 --- a/Common/Data/Fundamental/Generated/SocialSecurityCostsIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/SocialSecurityCostsIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/StaffCostsIncomeStatement.cs b/Common/Data/Fundamental/Generated/StaffCostsIncomeStatement.cs index 8a38d21b35d0..d1ed25c2f746 100644 --- a/Common/Data/Fundamental/Generated/StaffCostsIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/StaffCostsIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,52 +37,46 @@ public class StaffCostsIncomeStatement : MultiPeriodField /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_StaffCosts_TwoMonths); + [Obsolete("StaffCosts was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("StaffCosts was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_StaffCosts_ThreeMonths); + [Obsolete("StaffCosts was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("StaffCosts was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_StaffCosts_SixMonths); + [Obsolete("StaffCosts was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("StaffCosts was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_StaffCosts_NineMonths); + [Obsolete("StaffCosts was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("StaffCosts was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_StaffCosts_TwelveMonths); + [Obsolete("StaffCosts was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("StaffCosts was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_StaffCosts_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_StaffCosts_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("StaffCosts was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -91,7 +85,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/StockBasedCompensationIncomeStatement.cs b/Common/Data/Fundamental/Generated/StockBasedCompensationIncomeStatement.cs index e7b33822f609..c9ac7ae09004 100644 --- a/Common/Data/Fundamental/Generated/StockBasedCompensationIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/StockBasedCompensationIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class StockBasedCompensationIncomeStatement : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_StockBasedCompensation_ThreeMonths); + [Obsolete("StockBasedCompensation was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("StockBasedCompensation was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_StockBasedCompensation_SixMonths); + [Obsolete("StockBasedCompensation was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("StockBasedCompensation was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_StockBasedCompensation_NineMonths); + [Obsolete("StockBasedCompensation was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("StockBasedCompensation was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_StockBasedCompensation_TwelveMonths); + [Obsolete("StockBasedCompensation was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("StockBasedCompensation was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_StockBasedCompensation_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_StockBasedCompensation_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("StockBasedCompensation was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/StockholdersEquityBalanceSheet.cs b/Common/Data/Fundamental/Generated/StockholdersEquityBalanceSheet.cs index 71d10b0fb74e..6aaeac216e01 100644 --- a/Common/Data/Fundamental/Generated/StockholdersEquityBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/StockholdersEquityBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class StockholdersEquityBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_StockholdersEquity_OneMonth); + [Obsolete("StockholdersEquity.OneMonth was retired by Morningstar in 2026; use StockholdersEquity.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("StockholdersEquity.OneMonth was retired by Morningstar in 2026; use StockholdersEquity.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_StockholdersEquity_TwoMonths); + [Obsolete("StockholdersEquity.TwoMonths was retired by Morningstar in 2026; use StockholdersEquity.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("StockholdersEquity.TwoMonths was retired by Morningstar in 2026; use StockholdersEquity.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class StockholdersEquityBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_StockholdersEquity_NineMonths); + [Obsolete("StockholdersEquity.NineMonths was retired by Morningstar in 2026; use StockholdersEquity.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("StockholdersEquity.NineMonths was retired by Morningstar in 2026; use StockholdersEquity.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/SubordinatedLiabilitiesBalanceSheet.cs b/Common/Data/Fundamental/Generated/SubordinatedLiabilitiesBalanceSheet.cs index 8809479271d9..90889410e827 100644 --- a/Common/Data/Fundamental/Generated/SubordinatedLiabilitiesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/SubordinatedLiabilitiesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/TangibleBookValueBalanceSheet.cs b/Common/Data/Fundamental/Generated/TangibleBookValueBalanceSheet.cs index cc7ec9908047..6d480be094a9 100644 --- a/Common/Data/Fundamental/Generated/TangibleBookValueBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/TangibleBookValueBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class TangibleBookValueBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TangibleBookValue_OneMonth); + [Obsolete("TangibleBookValue.OneMonth was retired by Morningstar in 2026; use TangibleBookValue.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("TangibleBookValue.OneMonth was retired by Morningstar in 2026; use TangibleBookValue.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TangibleBookValue_TwoMonths); + [Obsolete("TangibleBookValue.TwoMonths was retired by Morningstar in 2026; use TangibleBookValue.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("TangibleBookValue.TwoMonths was retired by Morningstar in 2026; use TangibleBookValue.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class TangibleBookValueBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TangibleBookValue_NineMonths); + [Obsolete("TangibleBookValue.NineMonths was retired by Morningstar in 2026; use TangibleBookValue.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("TangibleBookValue.NineMonths was retired by Morningstar in 2026; use TangibleBookValue.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/TaxAssetsTotalBalanceSheet.cs b/Common/Data/Fundamental/Generated/TaxAssetsTotalBalanceSheet.cs index 702ee4303471..4a73263bf761 100644 --- a/Common/Data/Fundamental/Generated/TaxAssetsTotalBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/TaxAssetsTotalBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class TaxAssetsTotalBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TaxAssetsTotal_ThreeMonths); + [Obsolete("TaxAssetsTotal was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("TaxAssetsTotal was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TaxAssetsTotal_TwelveMonths); + [Obsolete("TaxAssetsTotal was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("TaxAssetsTotal was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TaxAssetsTotal_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TaxAssetsTotal_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("TaxAssetsTotal was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/TaxLossCarryforwardBasicEPS.cs b/Common/Data/Fundamental/Generated/TaxLossCarryforwardBasicEPS.cs index 09fedf507d09..dc49817db0e4 100644 --- a/Common/Data/Fundamental/Generated/TaxLossCarryforwardBasicEPS.cs +++ b/Common/Data/Fundamental/Generated/TaxLossCarryforwardBasicEPS.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class TaxLossCarryforwardBasicEPS : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_TaxLossCarryforwardBasicEPS_ThreeMonths); + [Obsolete("TaxLossCarryforwardBasicEPS was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("TaxLossCarryforwardBasicEPS was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_TaxLossCarryforwardBasicEPS_SixMonths); + [Obsolete("TaxLossCarryforwardBasicEPS was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("TaxLossCarryforwardBasicEPS was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_TaxLossCarryforwardBasicEPS_NineMonths); + [Obsolete("TaxLossCarryforwardBasicEPS was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("TaxLossCarryforwardBasicEPS was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_TaxLossCarryforwardBasicEPS_TwelveMonths); + [Obsolete("TaxLossCarryforwardBasicEPS was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("TaxLossCarryforwardBasicEPS was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_TaxLossCarryforwardBasicEPS_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_TaxLossCarryforwardBasicEPS_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("TaxLossCarryforwardBasicEPS was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/TaxLossCarryforwardDilutedEPS.cs b/Common/Data/Fundamental/Generated/TaxLossCarryforwardDilutedEPS.cs index 0d1e33558bed..42695ee6b6f8 100644 --- a/Common/Data/Fundamental/Generated/TaxLossCarryforwardDilutedEPS.cs +++ b/Common/Data/Fundamental/Generated/TaxLossCarryforwardDilutedEPS.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class TaxLossCarryforwardDilutedEPS : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_TaxLossCarryforwardDilutedEPS_ThreeMonths); + [Obsolete("TaxLossCarryforwardDilutedEPS was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("TaxLossCarryforwardDilutedEPS was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_TaxLossCarryforwardDilutedEPS_SixMonths); + [Obsolete("TaxLossCarryforwardDilutedEPS was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("TaxLossCarryforwardDilutedEPS was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_TaxLossCarryforwardDilutedEPS_NineMonths); + [Obsolete("TaxLossCarryforwardDilutedEPS was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("TaxLossCarryforwardDilutedEPS was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_TaxLossCarryforwardDilutedEPS_TwelveMonths); + [Obsolete("TaxLossCarryforwardDilutedEPS was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("TaxLossCarryforwardDilutedEPS was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_TaxLossCarryforwardDilutedEPS_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_TaxLossCarryforwardDilutedEPS_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("TaxLossCarryforwardDilutedEPS was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/TaxesAssetsCurrentBalanceSheet.cs b/Common/Data/Fundamental/Generated/TaxesAssetsCurrentBalanceSheet.cs index c3ddf54b5145..6817e3e2eaca 100644 --- a/Common/Data/Fundamental/Generated/TaxesAssetsCurrentBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/TaxesAssetsCurrentBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/TaxesReceivableBalanceSheet.cs b/Common/Data/Fundamental/Generated/TaxesReceivableBalanceSheet.cs index f10476314f0b..17edbd200cb4 100644 --- a/Common/Data/Fundamental/Generated/TaxesReceivableBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/TaxesReceivableBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,52 +37,46 @@ public class TaxesReceivableBalanceSheet : MultiPeriodField /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TaxesReceivable_TwoMonths); + [Obsolete("TaxesReceivable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("TaxesReceivable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TaxesReceivable_ThreeMonths); + [Obsolete("TaxesReceivable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("TaxesReceivable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TaxesReceivable_SixMonths); + [Obsolete("TaxesReceivable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("TaxesReceivable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TaxesReceivable_NineMonths); + [Obsolete("TaxesReceivable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("TaxesReceivable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TaxesReceivable_TwelveMonths); + [Obsolete("TaxesReceivable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("TaxesReceivable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TaxesReceivable_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TaxesReceivable_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("TaxesReceivable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -91,7 +85,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/TaxesRefundPaidCashFlowStatement.cs b/Common/Data/Fundamental/Generated/TaxesRefundPaidCashFlowStatement.cs index 8463241e4e75..f5de647bf280 100644 --- a/Common/Data/Fundamental/Generated/TaxesRefundPaidCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/TaxesRefundPaidCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/TaxesRefundPaidDirectCashFlowStatement.cs b/Common/Data/Fundamental/Generated/TaxesRefundPaidDirectCashFlowStatement.cs index 70afcbb87173..2d42ccfa4685 100644 --- a/Common/Data/Fundamental/Generated/TaxesRefundPaidDirectCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/TaxesRefundPaidDirectCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class TaxesRefundPaidDirectCashFlowStatement : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_TaxesRefundPaidDirect_ThreeMonths); + [Obsolete("TaxesRefundPaidDirect was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("TaxesRefundPaidDirect was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_TaxesRefundPaidDirect_SixMonths); + [Obsolete("TaxesRefundPaidDirect was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("TaxesRefundPaidDirect was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_TaxesRefundPaidDirect_NineMonths); + [Obsolete("TaxesRefundPaidDirect was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("TaxesRefundPaidDirect was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_TaxesRefundPaidDirect_TwelveMonths); + [Obsolete("TaxesRefundPaidDirect was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("TaxesRefundPaidDirect was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_TaxesRefundPaidDirect_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_TaxesRefundPaidDirect_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("TaxesRefundPaidDirect was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/Tier1Capital.cs b/Common/Data/Fundamental/Generated/Tier1Capital.cs new file mode 100644 index 000000000000..0185c4422c4f --- /dev/null +++ b/Common/Data/Fundamental/Generated/Tier1Capital.cs @@ -0,0 +1,125 @@ +/* + * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. + * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * +*/ + +using System; +using System.Linq; +using Python.Runtime; +using Newtonsoft.Json; +using System.Collections.Generic; +using QuantConnect.Data.UniverseSelection; + +namespace QuantConnect.Data.Fundamental +{ + /// + /// Tier 1 capital: common equity, qualifying preferred equity and retained earnings + /// + public class Tier1Capital : MultiPeriodField + { + /// + /// The default period + /// + protected override string DefaultPeriod => "TwelveMonths"; + + /// + /// Gets/sets the OneMonth period value for the field + /// + [JsonProperty("1M")] + public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_Tier1Capital_OneMonth); + + /// + /// Gets/sets the ThreeMonths period value for the field + /// + [JsonProperty("3M")] + public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_Tier1Capital_ThreeMonths); + + /// + /// Gets/sets the SixMonths period value for the field + /// + [JsonProperty("6M")] + public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_Tier1Capital_SixMonths); + + /// + /// Gets/sets the NineMonths period value for the field + /// + [JsonProperty("9M")] + public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_Tier1Capital_NineMonths); + + /// + /// Gets/sets the TwelveMonths period value for the field + /// + [JsonProperty("12M")] + public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_Tier1Capital_TwelveMonths); + + /// + /// Returns true if the field contains a value for the default period + /// + public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_Tier1Capital_TwelveMonths)); + + /// + /// Returns the default value for the field + /// + public override double Value + { + get + { + var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_Tier1Capital_TwelveMonths); + if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) + { + return defaultValue; + } + return base.Value; + } + } + + /// + /// Gets a dictionary of period names and values for the field + /// + /// The dictionary of period names and values + public override IReadOnlyDictionary GetPeriodValues() + { + var result = new Dictionary(); + foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + { + if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) + { + result[kvp.Item1] = kvp.Item2; + } + } + return result; + } + + /// + /// Gets the value of the field for the requested period + /// + /// The requested period + /// The value for the period + public override double GetPeriodValue(string period) => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, Enum.Parse($"FinancialStatements_Tier1Capital_{ConvertPeriod(period)}")); + + /// + /// Creates a new empty instance + /// + public Tier1Capital() + { + } + + /// + /// Creates a new instance for the given time and security + /// + public Tier1Capital(ITimeProvider timeProvider, SecurityIdentifier securityIdentifier) : base(timeProvider, securityIdentifier) + { + } + } +} diff --git a/Common/Data/Fundamental/Generated/Tier1CapitalRatio.cs b/Common/Data/Fundamental/Generated/Tier1CapitalRatio.cs new file mode 100644 index 000000000000..105140ef4ebd --- /dev/null +++ b/Common/Data/Fundamental/Generated/Tier1CapitalRatio.cs @@ -0,0 +1,125 @@ +/* + * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. + * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * +*/ + +using System; +using System.Linq; +using Python.Runtime; +using Newtonsoft.Json; +using System.Collections.Generic; +using QuantConnect.Data.UniverseSelection; + +namespace QuantConnect.Data.Fundamental +{ + /// + /// Tier 1 capital divided by risk weighted assets + /// + public class Tier1CapitalRatio : MultiPeriodField + { + /// + /// The default period + /// + protected override string DefaultPeriod => "TwelveMonths"; + + /// + /// Gets/sets the OneMonth period value for the field + /// + [JsonProperty("1M")] + public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_Tier1CapitalRatio_OneMonth); + + /// + /// Gets/sets the ThreeMonths period value for the field + /// + [JsonProperty("3M")] + public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_Tier1CapitalRatio_ThreeMonths); + + /// + /// Gets/sets the SixMonths period value for the field + /// + [JsonProperty("6M")] + public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_Tier1CapitalRatio_SixMonths); + + /// + /// Gets/sets the NineMonths period value for the field + /// + [JsonProperty("9M")] + public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_Tier1CapitalRatio_NineMonths); + + /// + /// Gets/sets the TwelveMonths period value for the field + /// + [JsonProperty("12M")] + public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_Tier1CapitalRatio_TwelveMonths); + + /// + /// Returns true if the field contains a value for the default period + /// + public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_Tier1CapitalRatio_TwelveMonths)); + + /// + /// Returns the default value for the field + /// + public override double Value + { + get + { + var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_Tier1CapitalRatio_TwelveMonths); + if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) + { + return defaultValue; + } + return base.Value; + } + } + + /// + /// Gets a dictionary of period names and values for the field + /// + /// The dictionary of period names and values + public override IReadOnlyDictionary GetPeriodValues() + { + var result = new Dictionary(); + foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + { + if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) + { + result[kvp.Item1] = kvp.Item2; + } + } + return result; + } + + /// + /// Gets the value of the field for the requested period + /// + /// The requested period + /// The value for the period + public override double GetPeriodValue(string period) => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, Enum.Parse($"FinancialStatements_Tier1CapitalRatio_{ConvertPeriod(period)}")); + + /// + /// Creates a new empty instance + /// + public Tier1CapitalRatio() + { + } + + /// + /// Creates a new instance for the given time and security + /// + public Tier1CapitalRatio(ITimeProvider timeProvider, SecurityIdentifier securityIdentifier) : base(timeProvider, securityIdentifier) + { + } + } +} diff --git a/Common/Data/Fundamental/Generated/Tier1LeverageRatio.cs b/Common/Data/Fundamental/Generated/Tier1LeverageRatio.cs new file mode 100644 index 000000000000..804838b86a28 --- /dev/null +++ b/Common/Data/Fundamental/Generated/Tier1LeverageRatio.cs @@ -0,0 +1,125 @@ +/* + * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. + * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * +*/ + +using System; +using System.Linq; +using Python.Runtime; +using Newtonsoft.Json; +using System.Collections.Generic; +using QuantConnect.Data.UniverseSelection; + +namespace QuantConnect.Data.Fundamental +{ + /// + /// Tier 1 capital divided by average total consolidated assets + /// + public class Tier1LeverageRatio : MultiPeriodField + { + /// + /// The default period + /// + protected override string DefaultPeriod => "TwelveMonths"; + + /// + /// Gets/sets the OneMonth period value for the field + /// + [JsonProperty("1M")] + public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_Tier1LeverageRatio_OneMonth); + + /// + /// Gets/sets the ThreeMonths period value for the field + /// + [JsonProperty("3M")] + public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_Tier1LeverageRatio_ThreeMonths); + + /// + /// Gets/sets the SixMonths period value for the field + /// + [JsonProperty("6M")] + public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_Tier1LeverageRatio_SixMonths); + + /// + /// Gets/sets the NineMonths period value for the field + /// + [JsonProperty("9M")] + public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_Tier1LeverageRatio_NineMonths); + + /// + /// Gets/sets the TwelveMonths period value for the field + /// + [JsonProperty("12M")] + public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_Tier1LeverageRatio_TwelveMonths); + + /// + /// Returns true if the field contains a value for the default period + /// + public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_Tier1LeverageRatio_TwelveMonths)); + + /// + /// Returns the default value for the field + /// + public override double Value + { + get + { + var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_Tier1LeverageRatio_TwelveMonths); + if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) + { + return defaultValue; + } + return base.Value; + } + } + + /// + /// Gets a dictionary of period names and values for the field + /// + /// The dictionary of period names and values + public override IReadOnlyDictionary GetPeriodValues() + { + var result = new Dictionary(); + foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + { + if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) + { + result[kvp.Item1] = kvp.Item2; + } + } + return result; + } + + /// + /// Gets the value of the field for the requested period + /// + /// The requested period + /// The value for the period + public override double GetPeriodValue(string period) => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, Enum.Parse($"FinancialStatements_Tier1LeverageRatio_{ConvertPeriod(period)}")); + + /// + /// Creates a new empty instance + /// + public Tier1LeverageRatio() + { + } + + /// + /// Creates a new instance for the given time and security + /// + public Tier1LeverageRatio(ITimeProvider timeProvider, SecurityIdentifier securityIdentifier) : base(timeProvider, securityIdentifier) + { + } + } +} diff --git a/Common/Data/Fundamental/Generated/Tier2Capital.cs b/Common/Data/Fundamental/Generated/Tier2Capital.cs new file mode 100644 index 000000000000..a35d5c91aadd --- /dev/null +++ b/Common/Data/Fundamental/Generated/Tier2Capital.cs @@ -0,0 +1,125 @@ +/* + * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. + * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * +*/ + +using System; +using System.Linq; +using Python.Runtime; +using Newtonsoft.Json; +using System.Collections.Generic; +using QuantConnect.Data.UniverseSelection; + +namespace QuantConnect.Data.Fundamental +{ + /// + /// Tier 2 capital: subordinated debt, cumulative preferred stock and loan loss allowances + /// + public class Tier2Capital : MultiPeriodField + { + /// + /// The default period + /// + protected override string DefaultPeriod => "TwelveMonths"; + + /// + /// Gets/sets the OneMonth period value for the field + /// + [JsonProperty("1M")] + public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_Tier2Capital_OneMonth); + + /// + /// Gets/sets the ThreeMonths period value for the field + /// + [JsonProperty("3M")] + public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_Tier2Capital_ThreeMonths); + + /// + /// Gets/sets the SixMonths period value for the field + /// + [JsonProperty("6M")] + public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_Tier2Capital_SixMonths); + + /// + /// Gets/sets the NineMonths period value for the field + /// + [JsonProperty("9M")] + public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_Tier2Capital_NineMonths); + + /// + /// Gets/sets the TwelveMonths period value for the field + /// + [JsonProperty("12M")] + public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_Tier2Capital_TwelveMonths); + + /// + /// Returns true if the field contains a value for the default period + /// + public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_Tier2Capital_TwelveMonths)); + + /// + /// Returns the default value for the field + /// + public override double Value + { + get + { + var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_Tier2Capital_TwelveMonths); + if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) + { + return defaultValue; + } + return base.Value; + } + } + + /// + /// Gets a dictionary of period names and values for the field + /// + /// The dictionary of period names and values + public override IReadOnlyDictionary GetPeriodValues() + { + var result = new Dictionary(); + foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + { + if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) + { + result[kvp.Item1] = kvp.Item2; + } + } + return result; + } + + /// + /// Gets the value of the field for the requested period + /// + /// The requested period + /// The value for the period + public override double GetPeriodValue(string period) => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, Enum.Parse($"FinancialStatements_Tier2Capital_{ConvertPeriod(period)}")); + + /// + /// Creates a new empty instance + /// + public Tier2Capital() + { + } + + /// + /// Creates a new instance for the given time and security + /// + public Tier2Capital(ITimeProvider timeProvider, SecurityIdentifier securityIdentifier) : base(timeProvider, securityIdentifier) + { + } + } +} diff --git a/Common/Data/Fundamental/Generated/Tier2CapitalRatio.cs b/Common/Data/Fundamental/Generated/Tier2CapitalRatio.cs new file mode 100644 index 000000000000..280a9a09a395 --- /dev/null +++ b/Common/Data/Fundamental/Generated/Tier2CapitalRatio.cs @@ -0,0 +1,125 @@ +/* + * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. + * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * +*/ + +using System; +using System.Linq; +using Python.Runtime; +using Newtonsoft.Json; +using System.Collections.Generic; +using QuantConnect.Data.UniverseSelection; + +namespace QuantConnect.Data.Fundamental +{ + /// + /// Tier 2 capital divided by risk weighted assets + /// + public class Tier2CapitalRatio : MultiPeriodField + { + /// + /// The default period + /// + protected override string DefaultPeriod => "TwelveMonths"; + + /// + /// Gets/sets the OneMonth period value for the field + /// + [JsonProperty("1M")] + public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_Tier2CapitalRatio_OneMonth); + + /// + /// Gets/sets the ThreeMonths period value for the field + /// + [JsonProperty("3M")] + public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_Tier2CapitalRatio_ThreeMonths); + + /// + /// Gets/sets the SixMonths period value for the field + /// + [JsonProperty("6M")] + public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_Tier2CapitalRatio_SixMonths); + + /// + /// Gets/sets the NineMonths period value for the field + /// + [JsonProperty("9M")] + public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_Tier2CapitalRatio_NineMonths); + + /// + /// Gets/sets the TwelveMonths period value for the field + /// + [JsonProperty("12M")] + public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_Tier2CapitalRatio_TwelveMonths); + + /// + /// Returns true if the field contains a value for the default period + /// + public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_Tier2CapitalRatio_TwelveMonths)); + + /// + /// Returns the default value for the field + /// + public override double Value + { + get + { + var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_Tier2CapitalRatio_TwelveMonths); + if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) + { + return defaultValue; + } + return base.Value; + } + } + + /// + /// Gets a dictionary of period names and values for the field + /// + /// The dictionary of period names and values + public override IReadOnlyDictionary GetPeriodValues() + { + var result = new Dictionary(); + foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + { + if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) + { + result[kvp.Item1] = kvp.Item2; + } + } + return result; + } + + /// + /// Gets the value of the field for the requested period + /// + /// The requested period + /// The value for the period + public override double GetPeriodValue(string period) => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, Enum.Parse($"FinancialStatements_Tier2CapitalRatio_{ConvertPeriod(period)}")); + + /// + /// Creates a new empty instance + /// + public Tier2CapitalRatio() + { + } + + /// + /// Creates a new instance for the given time and security + /// + public Tier2CapitalRatio(ITimeProvider timeProvider, SecurityIdentifier securityIdentifier) : base(timeProvider, securityIdentifier) + { + } + } +} diff --git a/Common/Data/Fundamental/Generated/TotalAdjustmentsforNonCashItemsCashFlowStatement.cs b/Common/Data/Fundamental/Generated/TotalAdjustmentsforNonCashItemsCashFlowStatement.cs index 8e069629668f..efe38cc14ba7 100644 --- a/Common/Data/Fundamental/Generated/TotalAdjustmentsforNonCashItemsCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/TotalAdjustmentsforNonCashItemsCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/TotalAssetsBalanceSheet.cs b/Common/Data/Fundamental/Generated/TotalAssetsBalanceSheet.cs index ec0e8c5e573d..3e562f34ca99 100644 --- a/Common/Data/Fundamental/Generated/TotalAssetsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/TotalAssetsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class TotalAssetsBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalAssets_OneMonth); + [Obsolete("TotalAssets.OneMonth was retired by Morningstar in 2026; use TotalAssets.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("TotalAssets.OneMonth was retired by Morningstar in 2026; use TotalAssets.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalAssets_TwoMonths); + [Obsolete("TotalAssets.TwoMonths was retired by Morningstar in 2026; use TotalAssets.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("TotalAssets.TwoMonths was retired by Morningstar in 2026; use TotalAssets.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class TotalAssetsBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalAssets_NineMonths); + [Obsolete("TotalAssets.NineMonths was retired by Morningstar in 2026; use TotalAssets.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("TotalAssets.NineMonths was retired by Morningstar in 2026; use TotalAssets.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/TotalCapital.cs b/Common/Data/Fundamental/Generated/TotalCapital.cs new file mode 100644 index 000000000000..fc88ca11ada6 --- /dev/null +++ b/Common/Data/Fundamental/Generated/TotalCapital.cs @@ -0,0 +1,125 @@ +/* + * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. + * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * +*/ + +using System; +using System.Linq; +using Python.Runtime; +using Newtonsoft.Json; +using System.Collections.Generic; +using QuantConnect.Data.UniverseSelection; + +namespace QuantConnect.Data.Fundamental +{ + /// + /// The sum of tier 1 and tier 2 capital, in currency rather than as a ratio + /// + public class TotalCapital : MultiPeriodField + { + /// + /// The default period + /// + protected override string DefaultPeriod => "TwelveMonths"; + + /// + /// Gets/sets the OneMonth period value for the field + /// + [JsonProperty("1M")] + public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_TotalCapital_OneMonth); + + /// + /// Gets/sets the ThreeMonths period value for the field + /// + [JsonProperty("3M")] + public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_TotalCapital_ThreeMonths); + + /// + /// Gets/sets the SixMonths period value for the field + /// + [JsonProperty("6M")] + public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_TotalCapital_SixMonths); + + /// + /// Gets/sets the NineMonths period value for the field + /// + [JsonProperty("9M")] + public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_TotalCapital_NineMonths); + + /// + /// Gets/sets the TwelveMonths period value for the field + /// + [JsonProperty("12M")] + public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_TotalCapital_TwelveMonths); + + /// + /// Returns true if the field contains a value for the default period + /// + public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_TotalCapital_TwelveMonths)); + + /// + /// Returns the default value for the field + /// + public override double Value + { + get + { + var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_TotalCapital_TwelveMonths); + if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) + { + return defaultValue; + } + return base.Value; + } + } + + /// + /// Gets a dictionary of period names and values for the field + /// + /// The dictionary of period names and values + public override IReadOnlyDictionary GetPeriodValues() + { + var result = new Dictionary(); + foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + { + if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) + { + result[kvp.Item1] = kvp.Item2; + } + } + return result; + } + + /// + /// Gets the value of the field for the requested period + /// + /// The requested period + /// The value for the period + public override double GetPeriodValue(string period) => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, Enum.Parse($"FinancialStatements_TotalCapital_{ConvertPeriod(period)}")); + + /// + /// Creates a new empty instance + /// + public TotalCapital() + { + } + + /// + /// Creates a new instance for the given time and security + /// + public TotalCapital(ITimeProvider timeProvider, SecurityIdentifier securityIdentifier) : base(timeProvider, securityIdentifier) + { + } + } +} diff --git a/Common/Data/Fundamental/Generated/TotalCapitalizationBalanceSheet.cs b/Common/Data/Fundamental/Generated/TotalCapitalizationBalanceSheet.cs index 264a2b5e6415..59f6d13b0dee 100644 --- a/Common/Data/Fundamental/Generated/TotalCapitalizationBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/TotalCapitalizationBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class TotalCapitalizationBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalCapitalization_OneMonth); + [Obsolete("TotalCapitalization was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("TotalCapitalization was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalCapitalization_TwoMonths); + [Obsolete("TotalCapitalization was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("TotalCapitalization was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalCapitalization_ThreeMonths); + [Obsolete("TotalCapitalization was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("TotalCapitalization was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalCapitalization_SixMonths); + [Obsolete("TotalCapitalization was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("TotalCapitalization was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalCapitalization_NineMonths); + [Obsolete("TotalCapitalization was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("TotalCapitalization was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalCapitalization_TwelveMonths); + [Obsolete("TotalCapitalization was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("TotalCapitalization was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalCapitalization_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalCapitalization_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("TotalCapitalization was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/TotalDebtBalanceSheet.cs b/Common/Data/Fundamental/Generated/TotalDebtBalanceSheet.cs index 87978773516d..7bea74bfca91 100644 --- a/Common/Data/Fundamental/Generated/TotalDebtBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/TotalDebtBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class TotalDebtBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalDebt_OneMonth); + [Obsolete("TotalDebt.OneMonth was retired by Morningstar in 2026; use TotalDebt.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("TotalDebt.OneMonth was retired by Morningstar in 2026; use TotalDebt.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalDebt_TwoMonths); + [Obsolete("TotalDebt.TwoMonths was retired by Morningstar in 2026; use TotalDebt.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("TotalDebt.TwoMonths was retired by Morningstar in 2026; use TotalDebt.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class TotalDebtBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalDebt_NineMonths); + [Obsolete("TotalDebt.NineMonths was retired by Morningstar in 2026; use TotalDebt.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("TotalDebt.NineMonths was retired by Morningstar in 2026; use TotalDebt.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/TotalDebtEquityRatio.cs b/Common/Data/Fundamental/Generated/TotalDebtEquityRatio.cs index 15301d70d02d..0d0b8de358c8 100644 --- a/Common/Data/Fundamental/Generated/TotalDebtEquityRatio.cs +++ b/Common/Data/Fundamental/Generated/TotalDebtEquityRatio.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -67,7 +67,8 @@ public class TotalDebtEquityRatio : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_TotalDebtEquityRatio_NineMonths); + [Obsolete("TotalDebtEquityRatio.NineMonths was retired by Morningstar in 2026; use TotalDebtEquityRatio.ThreeMonths (also available: SixMonths, OneYear).")] + public double NineMonths => throw new NotSupportedException("TotalDebtEquityRatio.NineMonths was retired by Morningstar in 2026; use TotalDebtEquityRatio.ThreeMonths (also available: SixMonths, OneYear)."); /// /// Returns true if the field contains a value for the default period @@ -97,7 +98,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1Y",OneYear), new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths) }) + foreach (var kvp in new[] { new Tuple("1Y",OneYear), new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/TotalDebtInMaturityScheduleBalanceSheet.cs b/Common/Data/Fundamental/Generated/TotalDebtInMaturityScheduleBalanceSheet.cs index 409a3068f3f9..5876c49b78ab 100644 --- a/Common/Data/Fundamental/Generated/TotalDebtInMaturityScheduleBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/TotalDebtInMaturityScheduleBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class TotalDebtInMaturityScheduleBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalDebtInMaturitySchedule_ThreeMonths); + [Obsolete("TotalDebtInMaturitySchedule was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("TotalDebtInMaturitySchedule was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalDebtInMaturitySchedule_TwelveMonths); + [Obsolete("TotalDebtInMaturitySchedule was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("TotalDebtInMaturitySchedule was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalDebtInMaturitySchedule_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalDebtInMaturitySchedule_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("TotalDebtInMaturitySchedule was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/TotalDepositsBalanceSheet.cs b/Common/Data/Fundamental/Generated/TotalDepositsBalanceSheet.cs index 7c2fe2afbb2e..5c1c4408c16f 100644 --- a/Common/Data/Fundamental/Generated/TotalDepositsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/TotalDepositsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -49,7 +49,8 @@ public class TotalDepositsBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalDeposits_NineMonths); + [Obsolete("TotalDeposits.NineMonths was retired by Morningstar in 2026; use TotalDeposits.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("TotalDeposits.NineMonths was retired by Morningstar in 2026; use TotalDeposits.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -85,7 +86,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/TotalDividendPerShare.cs b/Common/Data/Fundamental/Generated/TotalDividendPerShare.cs index 867821b1e362..382174a27f8d 100644 --- a/Common/Data/Fundamental/Generated/TotalDividendPerShare.cs +++ b/Common/Data/Fundamental/Generated/TotalDividendPerShare.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class TotalDividendPerShare : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_TotalDividendPerShare_OneMonth); + [Obsolete("TotalDividendPerShare.OneMonth was retired by Morningstar in 2026; use TotalDividendPerShare.ThreeMonths (also available: SixMonths, NineMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("TotalDividendPerShare.OneMonth was retired by Morningstar in 2026; use TotalDividendPerShare.ThreeMonths (also available: SixMonths, NineMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.EarningReports_TotalDividendPerShare_TwoMonths); + [Obsolete("TotalDividendPerShare.TwoMonths was retired by Morningstar in 2026; use TotalDividendPerShare.ThreeMonths (also available: SixMonths, NineMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("TotalDividendPerShare.TwoMonths was retired by Morningstar in 2026; use TotalDividendPerShare.ThreeMonths (also available: SixMonths, NineMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -97,7 +99,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/TotalEquityAsReportedBalanceSheet.cs b/Common/Data/Fundamental/Generated/TotalEquityAsReportedBalanceSheet.cs index ece28328073c..55bfce309ebd 100644 --- a/Common/Data/Fundamental/Generated/TotalEquityAsReportedBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/TotalEquityAsReportedBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/TotalEquityBalanceSheet.cs b/Common/Data/Fundamental/Generated/TotalEquityBalanceSheet.cs index 95f59dc92451..be312d46a3eb 100644 --- a/Common/Data/Fundamental/Generated/TotalEquityBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/TotalEquityBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class TotalEquityBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalEquity_OneMonth); + [Obsolete("TotalEquity.OneMonth was retired by Morningstar in 2026; use TotalEquity.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("TotalEquity.OneMonth was retired by Morningstar in 2026; use TotalEquity.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalEquity_TwoMonths); + [Obsolete("TotalEquity.TwoMonths was retired by Morningstar in 2026; use TotalEquity.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("TotalEquity.TwoMonths was retired by Morningstar in 2026; use TotalEquity.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class TotalEquityBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalEquity_NineMonths); + [Obsolete("TotalEquity.NineMonths was retired by Morningstar in 2026; use TotalEquity.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("TotalEquity.NineMonths was retired by Morningstar in 2026; use TotalEquity.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/TotalEquityGrossMinorityInterestBalanceSheet.cs b/Common/Data/Fundamental/Generated/TotalEquityGrossMinorityInterestBalanceSheet.cs index f825f7349d93..fcc3b171983a 100644 --- a/Common/Data/Fundamental/Generated/TotalEquityGrossMinorityInterestBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/TotalEquityGrossMinorityInterestBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class TotalEquityGrossMinorityInterestBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalEquityGrossMinorityInterest_OneMonth); + [Obsolete("TotalEquityGrossMinorityInterest.OneMonth was retired by Morningstar in 2026; use TotalEquityGrossMinorityInterest.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("TotalEquityGrossMinorityInterest.OneMonth was retired by Morningstar in 2026; use TotalEquityGrossMinorityInterest.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalEquityGrossMinorityInterest_TwoMonths); + [Obsolete("TotalEquityGrossMinorityInterest.TwoMonths was retired by Morningstar in 2026; use TotalEquityGrossMinorityInterest.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("TotalEquityGrossMinorityInterest.TwoMonths was retired by Morningstar in 2026; use TotalEquityGrossMinorityInterest.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class TotalEquityGrossMinorityInterestBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalEquityGrossMinorityInterest_NineMonths); + [Obsolete("TotalEquityGrossMinorityInterest.NineMonths was retired by Morningstar in 2026; use TotalEquityGrossMinorityInterest.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("TotalEquityGrossMinorityInterest.NineMonths was retired by Morningstar in 2026; use TotalEquityGrossMinorityInterest.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/TotalFinancialLeaseObligationsBalanceSheet.cs b/Common/Data/Fundamental/Generated/TotalFinancialLeaseObligationsBalanceSheet.cs index 7e8e8df86250..421c8ade49d1 100644 --- a/Common/Data/Fundamental/Generated/TotalFinancialLeaseObligationsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/TotalFinancialLeaseObligationsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/TotalInvestmentsBalanceSheet.cs b/Common/Data/Fundamental/Generated/TotalInvestmentsBalanceSheet.cs index 9e4b363783a5..5ab933e1b1ce 100644 --- a/Common/Data/Fundamental/Generated/TotalInvestmentsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/TotalInvestmentsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,40 +37,32 @@ public class TotalInvestmentsBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalInvestments_ThreeMonths); + [Obsolete("TotalInvestments was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("TotalInvestments was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalInvestments_SixMonths); + [Obsolete("TotalInvestments was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("TotalInvestments was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalInvestments_TwelveMonths); + [Obsolete("TotalInvestments was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("TotalInvestments was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalInvestments_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalInvestments_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("TotalInvestments was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -79,7 +71,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/TotalLiabilitiesAsReportedBalanceSheet.cs b/Common/Data/Fundamental/Generated/TotalLiabilitiesAsReportedBalanceSheet.cs index 84e613aed1b8..a7031f11895b 100644 --- a/Common/Data/Fundamental/Generated/TotalLiabilitiesAsReportedBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/TotalLiabilitiesAsReportedBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/TotalLiabilitiesNetMinorityInterestBalanceSheet.cs b/Common/Data/Fundamental/Generated/TotalLiabilitiesNetMinorityInterestBalanceSheet.cs index f023ef1aba79..e86d3ffdfcae 100644 --- a/Common/Data/Fundamental/Generated/TotalLiabilitiesNetMinorityInterestBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/TotalLiabilitiesNetMinorityInterestBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class TotalLiabilitiesNetMinorityInterestBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalLiabilitiesNetMinorityInterest_OneMonth); + [Obsolete("TotalLiabilitiesNetMinorityInterest.OneMonth was retired by Morningstar in 2026; use TotalLiabilitiesNetMinorityInterest.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("TotalLiabilitiesNetMinorityInterest.OneMonth was retired by Morningstar in 2026; use TotalLiabilitiesNetMinorityInterest.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalLiabilitiesNetMinorityInterest_TwoMonths); + [Obsolete("TotalLiabilitiesNetMinorityInterest.TwoMonths was retired by Morningstar in 2026; use TotalLiabilitiesNetMinorityInterest.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("TotalLiabilitiesNetMinorityInterest.TwoMonths was retired by Morningstar in 2026; use TotalLiabilitiesNetMinorityInterest.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class TotalLiabilitiesNetMinorityInterestBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalLiabilitiesNetMinorityInterest_NineMonths); + [Obsolete("TotalLiabilitiesNetMinorityInterest.NineMonths was retired by Morningstar in 2026; use TotalLiabilitiesNetMinorityInterest.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("TotalLiabilitiesNetMinorityInterest.NineMonths was retired by Morningstar in 2026; use TotalLiabilitiesNetMinorityInterest.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/TotalMoneyMarketInvestmentsIncomeStatement.cs b/Common/Data/Fundamental/Generated/TotalMoneyMarketInvestmentsIncomeStatement.cs index 3af8d951d438..7599e1b87678 100644 --- a/Common/Data/Fundamental/Generated/TotalMoneyMarketInvestmentsIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/TotalMoneyMarketInvestmentsIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -55,7 +55,8 @@ public class TotalMoneyMarketInvestmentsIncomeStatement : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_TotalMoneyMarketInvestments_NineMonths); + [Obsolete("TotalMoneyMarketInvestments.NineMonths was retired by Morningstar in 2026; use TotalMoneyMarketInvestments.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("TotalMoneyMarketInvestments.NineMonths was retired by Morningstar in 2026; use TotalMoneyMarketInvestments.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -91,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/TotalNonCurrentAssetsBalanceSheet.cs b/Common/Data/Fundamental/Generated/TotalNonCurrentAssetsBalanceSheet.cs index 58f9e453126b..e563d5d07ea5 100644 --- a/Common/Data/Fundamental/Generated/TotalNonCurrentAssetsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/TotalNonCurrentAssetsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class TotalNonCurrentAssetsBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalNonCurrentAssets_OneMonth); + [Obsolete("TotalNonCurrentAssets.OneMonth was retired by Morningstar in 2026; use TotalNonCurrentAssets.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("TotalNonCurrentAssets.OneMonth was retired by Morningstar in 2026; use TotalNonCurrentAssets.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalNonCurrentAssets_TwoMonths); + [Obsolete("TotalNonCurrentAssets.TwoMonths was retired by Morningstar in 2026; use TotalNonCurrentAssets.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("TotalNonCurrentAssets.TwoMonths was retired by Morningstar in 2026; use TotalNonCurrentAssets.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class TotalNonCurrentAssetsBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalNonCurrentAssets_NineMonths); + [Obsolete("TotalNonCurrentAssets.NineMonths was retired by Morningstar in 2026; use TotalNonCurrentAssets.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("TotalNonCurrentAssets.NineMonths was retired by Morningstar in 2026; use TotalNonCurrentAssets.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/TotalNonCurrentLiabilitiesNetMinorityInterestBalanceSheet.cs b/Common/Data/Fundamental/Generated/TotalNonCurrentLiabilitiesNetMinorityInterestBalanceSheet.cs index 53f352a20cf2..b55a21e07694 100644 --- a/Common/Data/Fundamental/Generated/TotalNonCurrentLiabilitiesNetMinorityInterestBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/TotalNonCurrentLiabilitiesNetMinorityInterestBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class TotalNonCurrentLiabilitiesNetMinorityInterestBalanceSheet : MultiPe /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalNonCurrentLiabilitiesNetMinorityInterest_OneMonth); + [Obsolete("TotalNonCurrentLiabilitiesNetMinorityInterest.OneMonth was retired by Morningstar in 2026; use TotalNonCurrentLiabilitiesNetMinorityInterest.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("TotalNonCurrentLiabilitiesNetMinorityInterest.OneMonth was retired by Morningstar in 2026; use TotalNonCurrentLiabilitiesNetMinorityInterest.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalNonCurrentLiabilitiesNetMinorityInterest_TwoMonths); + [Obsolete("TotalNonCurrentLiabilitiesNetMinorityInterest.TwoMonths was retired by Morningstar in 2026; use TotalNonCurrentLiabilitiesNetMinorityInterest.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("TotalNonCurrentLiabilitiesNetMinorityInterest.TwoMonths was retired by Morningstar in 2026; use TotalNonCurrentLiabilitiesNetMinorityInterest.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class TotalNonCurrentLiabilitiesNetMinorityInterestBalanceSheet : MultiPe /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalNonCurrentLiabilitiesNetMinorityInterest_NineMonths); + [Obsolete("TotalNonCurrentLiabilitiesNetMinorityInterest.NineMonths was retired by Morningstar in 2026; use TotalNonCurrentLiabilitiesNetMinorityInterest.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("TotalNonCurrentLiabilitiesNetMinorityInterest.NineMonths was retired by Morningstar in 2026; use TotalNonCurrentLiabilitiesNetMinorityInterest.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/TotalOperatingIncomeAsReportedIncomeStatement.cs b/Common/Data/Fundamental/Generated/TotalOperatingIncomeAsReportedIncomeStatement.cs index 0b4b40f27d1e..b350c17725fb 100644 --- a/Common/Data/Fundamental/Generated/TotalOperatingIncomeAsReportedIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/TotalOperatingIncomeAsReportedIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class TotalOperatingIncomeAsReportedIncomeStatement : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_TotalOperatingIncomeAsReported_ThreeMonths); + [Obsolete("TotalOperatingIncomeAsReported was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("TotalOperatingIncomeAsReported was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_TotalOperatingIncomeAsReported_SixMonths); + [Obsolete("TotalOperatingIncomeAsReported was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("TotalOperatingIncomeAsReported was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_TotalOperatingIncomeAsReported_NineMonths); + [Obsolete("TotalOperatingIncomeAsReported was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("TotalOperatingIncomeAsReported was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_TotalOperatingIncomeAsReported_TwelveMonths); + [Obsolete("TotalOperatingIncomeAsReported was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("TotalOperatingIncomeAsReported was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_TotalOperatingIncomeAsReported_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_TotalOperatingIncomeAsReported_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("TotalOperatingIncomeAsReported was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/TotalOtherFinanceCostIncomeStatement.cs b/Common/Data/Fundamental/Generated/TotalOtherFinanceCostIncomeStatement.cs index 2b6678b4cb3f..74fb9320ce57 100644 --- a/Common/Data/Fundamental/Generated/TotalOtherFinanceCostIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/TotalOtherFinanceCostIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class TotalOtherFinanceCostIncomeStatement : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_TotalOtherFinanceCost_ThreeMonths); + [Obsolete("TotalOtherFinanceCost was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("TotalOtherFinanceCost was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_TotalOtherFinanceCost_SixMonths); + [Obsolete("TotalOtherFinanceCost was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("TotalOtherFinanceCost was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_TotalOtherFinanceCost_NineMonths); + [Obsolete("TotalOtherFinanceCost was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("TotalOtherFinanceCost was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_TotalOtherFinanceCost_TwelveMonths); + [Obsolete("TotalOtherFinanceCost was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("TotalOtherFinanceCost was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_TotalOtherFinanceCost_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_TotalOtherFinanceCost_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("TotalOtherFinanceCost was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/TotalPremiumsEarnedIncomeStatement.cs b/Common/Data/Fundamental/Generated/TotalPremiumsEarnedIncomeStatement.cs index 1138140d5864..74d023628322 100644 --- a/Common/Data/Fundamental/Generated/TotalPremiumsEarnedIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/TotalPremiumsEarnedIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/TotalRevenueAsReportedIncomeStatement.cs b/Common/Data/Fundamental/Generated/TotalRevenueAsReportedIncomeStatement.cs index c9a27fc27930..521d69a4df5d 100644 --- a/Common/Data/Fundamental/Generated/TotalRevenueAsReportedIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/TotalRevenueAsReportedIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/TotalRiskBasedCapital.cs b/Common/Data/Fundamental/Generated/TotalRiskBasedCapital.cs index 2aaf2f24583f..220a093eccfb 100644 --- a/Common/Data/Fundamental/Generated/TotalRiskBasedCapital.cs +++ b/Common/Data/Fundamental/Generated/TotalRiskBasedCapital.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,7 +37,8 @@ public class TotalRiskBasedCapital : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_TotalRiskBasedCapital_OneMonth); + [Obsolete("TotalRiskBasedCapital.OneMonth was retired by Morningstar in 2026; use TotalRiskBasedCapital.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("TotalRiskBasedCapital.OneMonth was retired by Morningstar in 2026; use TotalRiskBasedCapital.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -55,7 +56,8 @@ public class TotalRiskBasedCapital : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_TotalRiskBasedCapital_NineMonths); + [Obsolete("TotalRiskBasedCapital.NineMonths was retired by Morningstar in 2026; use TotalRiskBasedCapital.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("TotalRiskBasedCapital.NineMonths was retired by Morningstar in 2026; use TotalRiskBasedCapital.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -91,7 +93,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/TotalTaxPayableBalanceSheet.cs b/Common/Data/Fundamental/Generated/TotalTaxPayableBalanceSheet.cs index 7a459ddab87d..6e3fbcab3661 100644 --- a/Common/Data/Fundamental/Generated/TotalTaxPayableBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/TotalTaxPayableBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class TotalTaxPayableBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalTaxPayable_OneMonth); + [Obsolete("TotalTaxPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("TotalTaxPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalTaxPayable_TwoMonths); + [Obsolete("TotalTaxPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("TotalTaxPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalTaxPayable_ThreeMonths); + [Obsolete("TotalTaxPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("TotalTaxPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalTaxPayable_SixMonths); + [Obsolete("TotalTaxPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("TotalTaxPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalTaxPayable_NineMonths); + [Obsolete("TotalTaxPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("TotalTaxPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalTaxPayable_TwelveMonths); + [Obsolete("TotalTaxPayable was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("TotalTaxPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalTaxPayable_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TotalTaxPayable_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("TotalTaxPayable was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/TradeAndOtherReceivablesNonCurrentBalanceSheet.cs b/Common/Data/Fundamental/Generated/TradeAndOtherReceivablesNonCurrentBalanceSheet.cs index 8a856c547de2..9e68daa5e432 100644 --- a/Common/Data/Fundamental/Generated/TradeAndOtherReceivablesNonCurrentBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/TradeAndOtherReceivablesNonCurrentBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/TradeandOtherPayablesNonCurrentBalanceSheet.cs b/Common/Data/Fundamental/Generated/TradeandOtherPayablesNonCurrentBalanceSheet.cs index 49348c5d8bc2..a6cdde5bb7db 100644 --- a/Common/Data/Fundamental/Generated/TradeandOtherPayablesNonCurrentBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/TradeandOtherPayablesNonCurrentBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/TradingAndOtherReceivableBalanceSheet.cs b/Common/Data/Fundamental/Generated/TradingAndOtherReceivableBalanceSheet.cs index 9ec2d4869567..ab444b0625c5 100644 --- a/Common/Data/Fundamental/Generated/TradingAndOtherReceivableBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/TradingAndOtherReceivableBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/TradingAssetsBalanceSheet.cs b/Common/Data/Fundamental/Generated/TradingAssetsBalanceSheet.cs index 70feb00e595a..90db4d50b248 100644 --- a/Common/Data/Fundamental/Generated/TradingAssetsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/TradingAssetsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class TradingAssetsBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TradingAssets_ThreeMonths); + [Obsolete("TradingAssets was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("TradingAssets was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TradingAssets_TwelveMonths); + [Obsolete("TradingAssets was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("TradingAssets was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TradingAssets_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TradingAssets_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("TradingAssets was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/TradingLiabilitiesBalanceSheet.cs b/Common/Data/Fundamental/Generated/TradingLiabilitiesBalanceSheet.cs index 19d982c4be72..8f88afdeb0f8 100644 --- a/Common/Data/Fundamental/Generated/TradingLiabilitiesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/TradingLiabilitiesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/TradingSecuritiesBalanceSheet.cs b/Common/Data/Fundamental/Generated/TradingSecuritiesBalanceSheet.cs index aae40631c817..2117f163281f 100644 --- a/Common/Data/Fundamental/Generated/TradingSecuritiesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/TradingSecuritiesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,40 +37,32 @@ public class TradingSecuritiesBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TradingSecurities_ThreeMonths); + [Obsolete("TradingSecurities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("TradingSecurities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TradingSecurities_SixMonths); + [Obsolete("TradingSecurities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("TradingSecurities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TradingSecurities_TwelveMonths); + [Obsolete("TradingSecurities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("TradingSecurities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TradingSecurities_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TradingSecurities_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("TradingSecurities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -79,7 +71,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/TradingandFinancialLiabilitiesBalanceSheet.cs b/Common/Data/Fundamental/Generated/TradingandFinancialLiabilitiesBalanceSheet.cs index 28c7b711d3d1..5d9878bb9a53 100644 --- a/Common/Data/Fundamental/Generated/TradingandFinancialLiabilitiesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/TradingandFinancialLiabilitiesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/TreasuryBillsandOtherEligibleBillsBalanceSheet.cs b/Common/Data/Fundamental/Generated/TreasuryBillsandOtherEligibleBillsBalanceSheet.cs index 1de38c49337d..c73e51e11e66 100644 --- a/Common/Data/Fundamental/Generated/TreasuryBillsandOtherEligibleBillsBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/TreasuryBillsandOtherEligibleBillsBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class TreasuryBillsandOtherEligibleBillsBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TreasuryBillsandOtherEligibleBills_ThreeMonths); + [Obsolete("TreasuryBillsandOtherEligibleBills was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("TreasuryBillsandOtherEligibleBills was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TreasuryBillsandOtherEligibleBills_TwelveMonths); + [Obsolete("TreasuryBillsandOtherEligibleBills was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("TreasuryBillsandOtherEligibleBills was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TreasuryBillsandOtherEligibleBills_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TreasuryBillsandOtherEligibleBills_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("TreasuryBillsandOtherEligibleBills was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/TreasurySharesNumberBalanceSheet.cs b/Common/Data/Fundamental/Generated/TreasurySharesNumberBalanceSheet.cs index e3dcd6083955..e1d721572772 100644 --- a/Common/Data/Fundamental/Generated/TreasurySharesNumberBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/TreasurySharesNumberBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class TreasurySharesNumberBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TreasurySharesNumber_ThreeMonths); + [Obsolete("TreasurySharesNumber was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("TreasurySharesNumber was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TreasurySharesNumber_TwelveMonths); + [Obsolete("TreasurySharesNumber was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("TreasurySharesNumber was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TreasurySharesNumber_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TreasurySharesNumber_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("TreasurySharesNumber was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/TreasuryStockBalanceSheet.cs b/Common/Data/Fundamental/Generated/TreasuryStockBalanceSheet.cs index 917a2ef9bad3..081f9dc851df 100644 --- a/Common/Data/Fundamental/Generated/TreasuryStockBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/TreasuryStockBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class TreasuryStockBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TreasuryStock_OneMonth); + [Obsolete("TreasuryStock was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("TreasuryStock was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TreasuryStock_TwoMonths); + [Obsolete("TreasuryStock was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("TreasuryStock was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TreasuryStock_ThreeMonths); + [Obsolete("TreasuryStock was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("TreasuryStock was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TreasuryStock_SixMonths); + [Obsolete("TreasuryStock was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("TreasuryStock was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TreasuryStock_NineMonths); + [Obsolete("TreasuryStock was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("TreasuryStock was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TreasuryStock_TwelveMonths); + [Obsolete("TreasuryStock was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("TreasuryStock was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TreasuryStock_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TreasuryStock_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("TreasuryStock was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/TrustFeesbyCommissionsIncomeStatement.cs b/Common/Data/Fundamental/Generated/TrustFeesbyCommissionsIncomeStatement.cs index 179870a26f81..4bb36d0a1db6 100644 --- a/Common/Data/Fundamental/Generated/TrustFeesbyCommissionsIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/TrustFeesbyCommissionsIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class TrustFeesbyCommissionsIncomeStatement : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_TrustFeesbyCommissions_ThreeMonths); + [Obsolete("TrustFeesbyCommissions was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("TrustFeesbyCommissions was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_TrustFeesbyCommissions_SixMonths); + [Obsolete("TrustFeesbyCommissions was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("TrustFeesbyCommissions was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_TrustFeesbyCommissions_NineMonths); + [Obsolete("TrustFeesbyCommissions was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("TrustFeesbyCommissions was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_TrustFeesbyCommissions_TwelveMonths); + [Obsolete("TrustFeesbyCommissions was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("TrustFeesbyCommissions was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_TrustFeesbyCommissions_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_TrustFeesbyCommissions_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("TrustFeesbyCommissions was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/UnallocatedSurplusBalanceSheet.cs b/Common/Data/Fundamental/Generated/UnallocatedSurplusBalanceSheet.cs index 46936f8baeac..4d2206125668 100644 --- a/Common/Data/Fundamental/Generated/UnallocatedSurplusBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/UnallocatedSurplusBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,34 +37,25 @@ public class UnallocatedSurplusBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_UnallocatedSurplus_ThreeMonths); + [Obsolete("UnallocatedSurplus was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("UnallocatedSurplus was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_UnallocatedSurplus_TwelveMonths); + [Obsolete("UnallocatedSurplus was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("UnallocatedSurplus was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_UnallocatedSurplus_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_UnallocatedSurplus_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("UnallocatedSurplus was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -73,7 +64,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/UnbilledReceivablesBalanceSheet.cs b/Common/Data/Fundamental/Generated/UnbilledReceivablesBalanceSheet.cs index aad6d03cb75a..70d526a37e5c 100644 --- a/Common/Data/Fundamental/Generated/UnbilledReceivablesBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/UnbilledReceivablesBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/UnderwritingExpensesIncomeStatement.cs b/Common/Data/Fundamental/Generated/UnderwritingExpensesIncomeStatement.cs index 37ed2eddd400..36cb54a77d7b 100644 --- a/Common/Data/Fundamental/Generated/UnderwritingExpensesIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/UnderwritingExpensesIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/UnearnedIncomeBalanceSheet.cs b/Common/Data/Fundamental/Generated/UnearnedIncomeBalanceSheet.cs index 39d541c4c6a9..f87be6a80421 100644 --- a/Common/Data/Fundamental/Generated/UnearnedIncomeBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/UnearnedIncomeBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -49,7 +49,8 @@ public class UnearnedIncomeBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_UnearnedIncome_NineMonths); + [Obsolete("UnearnedIncome.NineMonths was retired by Morningstar in 2026; use UnearnedIncome.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("UnearnedIncome.NineMonths was retired by Morningstar in 2026; use UnearnedIncome.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -85,7 +86,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/UnpaidLossAndLossReserveBalanceSheet.cs b/Common/Data/Fundamental/Generated/UnpaidLossAndLossReserveBalanceSheet.cs index 210d70327b06..874a5888ad03 100644 --- a/Common/Data/Fundamental/Generated/UnpaidLossAndLossReserveBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/UnpaidLossAndLossReserveBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class UnpaidLossAndLossReserveBalanceSheet : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_UnpaidLossAndLossReserve_ThreeMonths); + [Obsolete("UnpaidLossAndLossReserve was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("UnpaidLossAndLossReserve was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_UnpaidLossAndLossReserve_SixMonths); + [Obsolete("UnpaidLossAndLossReserve was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("UnpaidLossAndLossReserve was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_UnpaidLossAndLossReserve_NineMonths); + [Obsolete("UnpaidLossAndLossReserve was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("UnpaidLossAndLossReserve was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_UnpaidLossAndLossReserve_TwelveMonths); + [Obsolete("UnpaidLossAndLossReserve was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("UnpaidLossAndLossReserve was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_UnpaidLossAndLossReserve_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_UnpaidLossAndLossReserve_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("UnpaidLossAndLossReserve was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/UnrealizedGainLossOnInvestmentSecuritiesCashFlowStatement.cs b/Common/Data/Fundamental/Generated/UnrealizedGainLossOnInvestmentSecuritiesCashFlowStatement.cs index a7059870c6fb..e814731040f7 100644 --- a/Common/Data/Fundamental/Generated/UnrealizedGainLossOnInvestmentSecuritiesCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/UnrealizedGainLossOnInvestmentSecuritiesCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class UnrealizedGainLossOnInvestmentSecuritiesCashFlowStatement : MultiPe /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_UnrealizedGainLossOnInvestmentSecurities_OneMonth); + [Obsolete("UnrealizedGainLossOnInvestmentSecurities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("UnrealizedGainLossOnInvestmentSecurities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_UnrealizedGainLossOnInvestmentSecurities_TwoMonths); + [Obsolete("UnrealizedGainLossOnInvestmentSecurities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("UnrealizedGainLossOnInvestmentSecurities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_UnrealizedGainLossOnInvestmentSecurities_ThreeMonths); + [Obsolete("UnrealizedGainLossOnInvestmentSecurities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("UnrealizedGainLossOnInvestmentSecurities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_UnrealizedGainLossOnInvestmentSecurities_SixMonths); + [Obsolete("UnrealizedGainLossOnInvestmentSecurities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("UnrealizedGainLossOnInvestmentSecurities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_UnrealizedGainLossOnInvestmentSecurities_NineMonths); + [Obsolete("UnrealizedGainLossOnInvestmentSecurities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("UnrealizedGainLossOnInvestmentSecurities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_UnrealizedGainLossOnInvestmentSecurities_TwelveMonths); + [Obsolete("UnrealizedGainLossOnInvestmentSecurities was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("UnrealizedGainLossOnInvestmentSecurities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_UnrealizedGainLossOnInvestmentSecurities_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_CashFlowStatement_UnrealizedGainLossOnInvestmentSecurities_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("UnrealizedGainLossOnInvestmentSecurities was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/UnrealizedGainsLossesOnDerivativesCashFlowStatement.cs b/Common/Data/Fundamental/Generated/UnrealizedGainsLossesOnDerivativesCashFlowStatement.cs index 6c8563219e94..15d622de93ea 100644 --- a/Common/Data/Fundamental/Generated/UnrealizedGainsLossesOnDerivativesCashFlowStatement.cs +++ b/Common/Data/Fundamental/Generated/UnrealizedGainsLossesOnDerivativesCashFlowStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/ValuationRatios.cs b/Common/Data/Fundamental/Generated/ValuationRatios.cs index 8bc6f5d34d82..2fa8d1e0a379 100644 --- a/Common/Data/Fundamental/Generated/ValuationRatios.cs +++ b/Common/Data/Fundamental/Generated/ValuationRatios.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -413,7 +413,8 @@ public class ValuationRatios : FundamentalTimeDependentProperty /// Morningstar DataId: 14042 /// [JsonProperty("14042")] - public string ForwardCalculationStyle => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.ValuationRatios_ForwardCalculationStyle); + [Obsolete("ForwardCalculationStyle was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public string ForwardCalculationStyle => throw new NotSupportedException("ForwardCalculationStyle was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Used to collect the forward dividend for companies where our formula will not produce the correct value. @@ -431,7 +432,8 @@ public class ValuationRatios : FundamentalTimeDependentProperty /// Morningstar DataId: 14044 /// [JsonProperty("14044")] - public string TrailingCalculationStyle => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.ValuationRatios_TrailingCalculationStyle); + [Obsolete("TrailingCalculationStyle was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public string TrailingCalculationStyle => throw new NotSupportedException("TrailingCalculationStyle was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Used to collect the trailing dividend for companies where our formula will not produce the correct value. @@ -1144,6 +1146,204 @@ public class ValuationRatios : FundamentalTimeDependentProperty [JsonProperty("14123")] public double NormalizedPEGRatio => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.ValuationRatios_NormalizedPEGRatio); + /// + /// Normalized earnings divided by price + /// + /// + /// Morningstar DataId: 45009 + /// + [JsonProperty("45009")] + public double NormalizedEarningsYield => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.ValuationRatios_NormalizedEarningsYield); + + /// + /// Diluted enterprise value divided by total assets + /// + /// + /// Morningstar DataId: 45010 + /// + [JsonProperty("45010")] + public double DilutedEVToAssets => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.ValuationRatios_DilutedEVToAssets); + + /// + /// Diluted enterprise value divided by revenue + /// + /// + /// Morningstar DataId: 45011 + /// + [JsonProperty("45011")] + public double DilutedEVToRevenue => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.ValuationRatios_DilutedEVToRevenue); + + /// + /// Diluted enterprise value divided by EBITDA + /// + /// + /// Morningstar DataId: 45012 + /// + [JsonProperty("45012")] + public double DilutedEVToEBITDA => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.ValuationRatios_DilutedEVToEBITDA); + + /// + /// Diluted enterprise value divided by EBIT + /// + /// + /// Morningstar DataId: 45013 + /// + [JsonProperty("45013")] + public double DilutedEVToEBIT => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.ValuationRatios_DilutedEVToEBIT); + + /// + /// Diluted enterprise value divided by free cash flow + /// + /// + /// Morningstar DataId: 45014 + /// + [JsonProperty("45014")] + public double DilutedEVToFCF => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.ValuationRatios_DilutedEVToFCF); + + /// + /// Diluted enterprise value divided by normalized EBITDA + /// + /// + /// Morningstar DataId: 45015 + /// + [JsonProperty("45015")] + public double DilutedEVToNormalizedEBITDA => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.ValuationRatios_DilutedEVToNormalizedEBITDA); + + /// + /// Diluted enterprise value divided by normalized EBIT + /// + /// + /// Morningstar DataId: 45016 + /// + [JsonProperty("45016")] + public double DilutedEVToNormalizedEBIT => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.ValuationRatios_DilutedEVToNormalizedEBIT); + + /// + /// Enterprise value divided by normalized EBITDA + /// + /// + /// Morningstar DataId: 45017 + /// + [JsonProperty("45017")] + public double NormalizedEVToEBITDA => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.ValuationRatios_NormalizedEVToEBITDA); + + /// + /// Enterprise value divided by normalized EBIT + /// + /// + /// Morningstar DataId: 45018 + /// + [JsonProperty("45018")] + public double NormalizedEVToEBIT => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.ValuationRatios_NormalizedEVToEBIT); + + /// + /// Total debt divided by enterprise value + /// + /// + /// Morningstar DataId: 45019 + /// + [JsonProperty("45019")] + public double TotalDebtToEV => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.ValuationRatios_TotalDebtToEV); + + /// + /// Five year average of enterprise value to EBITDA + /// + /// + /// Morningstar DataId: 45020 + /// + [JsonProperty("45020")] + public double EVToEBITDA5YrAvg => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.ValuationRatios_EVToEBITDA5YrAvg); + + /// + /// Five year average of enterprise value to EBIT + /// + /// + /// Morningstar DataId: 45021 + /// + [JsonProperty("45021")] + public double EVToEBIT5YrAvg => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.ValuationRatios_EVToEBIT5YrAvg); + + /// + /// Five year average of the price to book ratio + /// + /// + /// Morningstar DataId: 45022 + /// + [JsonProperty("45022")] + public double PBRatio5YrAvg => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.ValuationRatios_PBRatio5YrAvg); + + /// + /// Five year average of the price to sales ratio + /// + /// + /// Morningstar DataId: 45023 + /// + [JsonProperty("45023")] + public double PSRatio5YrAvg => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.ValuationRatios_PSRatio5YrAvg); + + /// + /// One year average of the price to free cash flow ratio + /// + /// + /// Morningstar DataId: 45024 + /// + [JsonProperty("45024")] + public double FCFRatio1YrAvg => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.ValuationRatios_FCFRatio1YrAvg); + + /// + /// Five year average of the price to free cash flow ratio + /// + /// + /// Morningstar DataId: 45025 + /// + [JsonProperty("45025")] + public double FCFRatio5YrAvg => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.ValuationRatios_FCFRatio5YrAvg); + + /// + /// Ten year average of the price to free cash flow ratio + /// + /// + /// Morningstar DataId: 45026 + /// + [JsonProperty("45026")] + public double FCFRatio10YrAvg => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.ValuationRatios_FCFRatio10YrAvg); + + /// + /// Five year average of the price to cash flow ratio + /// + /// + /// Morningstar DataId: 45027 + /// + [JsonProperty("45027")] + public double PCashRatio5YrAvg => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.ValuationRatios_PCashRatio5YrAvg); + + /// + /// Five year average of the earning yield + /// + /// + /// Morningstar DataId: 45028 + /// + [JsonProperty("45028")] + public double EarningYield5YrAvg => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.ValuationRatios_EarningYield5YrAvg); + + /// + /// Five year average of the buy back yield + /// + /// + /// Morningstar DataId: 45029 + /// + [JsonProperty("45029")] + public double BuyBackYield5YrAvg => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.ValuationRatios_BuyBackYield5YrAvg); + + /// + /// Five year average of the total yield + /// + /// + /// Morningstar DataId: 45030 + /// + [JsonProperty("45030")] + public double TotalYield5YrAvg => FundamentalService.Get(_timeProvider.GetUtcNow(), _securityIdentifier, FundamentalProperty.ValuationRatios_TotalYield5YrAvg); + /// /// Creates a new instance for the given time and security /// diff --git a/Common/Data/Fundamental/Generated/WagesandSalariesIncomeStatement.cs b/Common/Data/Fundamental/Generated/WagesandSalariesIncomeStatement.cs index c67a02e459b3..fc31492b534e 100644 --- a/Common/Data/Fundamental/Generated/WagesandSalariesIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/WagesandSalariesIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * diff --git a/Common/Data/Fundamental/Generated/WorkInProcessBalanceSheet.cs b/Common/Data/Fundamental/Generated/WorkInProcessBalanceSheet.cs index 1f48a8b899b6..727d53a453f7 100644 --- a/Common/Data/Fundamental/Generated/WorkInProcessBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/WorkInProcessBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,58 +37,53 @@ public class WorkInProcessBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_WorkInProcess_OneMonth); + [Obsolete("WorkInProcess was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double OneMonth => throw new NotSupportedException("WorkInProcess was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_WorkInProcess_TwoMonths); + [Obsolete("WorkInProcess was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwoMonths => throw new NotSupportedException("WorkInProcess was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_WorkInProcess_ThreeMonths); + [Obsolete("WorkInProcess was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("WorkInProcess was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_WorkInProcess_SixMonths); + [Obsolete("WorkInProcess was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("WorkInProcess was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_WorkInProcess_NineMonths); + [Obsolete("WorkInProcess was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("WorkInProcess was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_WorkInProcess_TwelveMonths); + [Obsolete("WorkInProcess was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("WorkInProcess was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_WorkInProcess_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_WorkInProcess_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("WorkInProcess was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -97,7 +92,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/WorkingCapitalBalanceSheet.cs b/Common/Data/Fundamental/Generated/WorkingCapitalBalanceSheet.cs index d077f7917362..d123008a7948 100644 --- a/Common/Data/Fundamental/Generated/WorkingCapitalBalanceSheet.cs +++ b/Common/Data/Fundamental/Generated/WorkingCapitalBalanceSheet.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,13 +37,15 @@ public class WorkingCapitalBalanceSheet : MultiPeriodField /// Gets/sets the OneMonth period value for the field /// [JsonProperty("1M")] - public double OneMonth => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_WorkingCapital_OneMonth); + [Obsolete("WorkingCapital.OneMonth was retired by Morningstar in 2026; use WorkingCapital.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double OneMonth => throw new NotSupportedException("WorkingCapital.OneMonth was retired by Morningstar in 2026; use WorkingCapital.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwoMonths period value for the field /// [JsonProperty("2M")] - public double TwoMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_WorkingCapital_TwoMonths); + [Obsolete("WorkingCapital.TwoMonths was retired by Morningstar in 2026; use WorkingCapital.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double TwoMonths => throw new NotSupportedException("WorkingCapital.TwoMonths was retired by Morningstar in 2026; use WorkingCapital.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the ThreeMonths period value for the field @@ -61,7 +63,8 @@ public class WorkingCapitalBalanceSheet : MultiPeriodField /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_WorkingCapital_NineMonths); + [Obsolete("WorkingCapital.NineMonths was retired by Morningstar in 2026; use WorkingCapital.ThreeMonths (also available: SixMonths, TwelveMonths).")] + public double NineMonths => throw new NotSupportedException("WorkingCapital.NineMonths was retired by Morningstar in 2026; use WorkingCapital.ThreeMonths (also available: SixMonths, TwelveMonths)."); /// /// Gets/sets the TwelveMonths period value for the field @@ -97,7 +100,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1M",OneMonth), new Tuple("2M",TwoMonths), new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("12M",TwelveMonths) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/WorkingCapitalTurnoverRatio.cs b/Common/Data/Fundamental/Generated/WorkingCapitalTurnoverRatio.cs index 7ec4a67ee20c..95224c7359f9 100644 --- a/Common/Data/Fundamental/Generated/WorkingCapitalTurnoverRatio.cs +++ b/Common/Data/Fundamental/Generated/WorkingCapitalTurnoverRatio.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -43,7 +43,8 @@ public class WorkingCapitalTurnoverRatio : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.OperationRatios_WorkingCapitalTurnoverRatio_ThreeMonths); + [Obsolete("WorkingCapitalTurnoverRatio.ThreeMonths was retired by Morningstar in 2026; use WorkingCapitalTurnoverRatio.OneYear.")] + public double ThreeMonths => throw new NotSupportedException("WorkingCapitalTurnoverRatio.ThreeMonths was retired by Morningstar in 2026; use WorkingCapitalTurnoverRatio.OneYear."); /// /// Returns true if the field contains a value for the default period @@ -73,7 +74,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("1Y",OneYear), new Tuple("3M",ThreeMonths) }) + foreach (var kvp in new[] { new Tuple("1Y",OneYear) }) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) { diff --git a/Common/Data/Fundamental/Generated/WriteOffIncomeStatement.cs b/Common/Data/Fundamental/Generated/WriteOffIncomeStatement.cs index 7b149315344f..02a452f5c3ff 100644 --- a/Common/Data/Fundamental/Generated/WriteOffIncomeStatement.cs +++ b/Common/Data/Fundamental/Generated/WriteOffIncomeStatement.cs @@ -1,4 +1,4 @@ -/* +/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation. * @@ -37,46 +37,39 @@ public class WriteOffIncomeStatement : MultiPeriodField /// Gets/sets the ThreeMonths period value for the field /// [JsonProperty("3M")] - public double ThreeMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_WriteOff_ThreeMonths); + [Obsolete("WriteOff was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double ThreeMonths => throw new NotSupportedException("WriteOff was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the SixMonths period value for the field /// [JsonProperty("6M")] - public double SixMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_WriteOff_SixMonths); + [Obsolete("WriteOff was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double SixMonths => throw new NotSupportedException("WriteOff was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the NineMonths period value for the field /// [JsonProperty("9M")] - public double NineMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_WriteOff_NineMonths); + [Obsolete("WriteOff was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double NineMonths => throw new NotSupportedException("WriteOff was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets/sets the TwelveMonths period value for the field /// [JsonProperty("12M")] - public double TwelveMonths => FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_WriteOff_TwelveMonths); + [Obsolete("WriteOff was retired by Morningstar in 2026 for all periods; no replacement is available.")] + public double TwelveMonths => throw new NotSupportedException("WriteOff was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Returns true if the field contains a value for the default period /// - public override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_WriteOff_TwelveMonths)); + public override bool HasValue => false; /// /// Returns the default value for the field /// - public override double Value - { - get - { - var defaultValue = FundamentalService.Get(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_IncomeStatement_WriteOff_TwelveMonths); - if (!BaseFundamentalDataProvider.IsNone(typeof(double), defaultValue)) - { - return defaultValue; - } - return base.Value; - } - } + public override double Value => throw new NotSupportedException("WriteOff was retired by Morningstar in 2026 for all periods; no replacement is available."); /// /// Gets a dictionary of period names and values for the field @@ -85,7 +78,7 @@ public override double Value public override IReadOnlyDictionary GetPeriodValues() { var result = new Dictionary(); - foreach (var kvp in new[] { new Tuple("3M",ThreeMonths), new Tuple("6M",SixMonths), new Tuple("9M",NineMonths), new Tuple("12M",TwelveMonths) }) + foreach (var kvp in System.Array.Empty>()) { if(!BaseFundamentalDataProvider.IsNone(typeof(double), kvp.Item2)) {