From d1b6c284409563b9ed78576d09a85918b4d57f17 Mon Sep 17 00:00:00 2001 From: srajak8 <92512625+srajak8@users.noreply.github.com> Date: Wed, 24 May 2023 15:38:27 +0530 Subject: [PATCH 1/2] fix(sdk): Added Holdings Mode for PA API Code Snippets added a minor fix. --- .../Examples/PAEngineMultipleUnitExample.cs | 2 -- .../Examples/PAEngineSingleUnitExample.cs | 2 -- 2 files changed, 4 deletions(-) diff --git a/examples/FactSet.AnalyticsAPI.Engines.Example/Examples/PAEngineMultipleUnitExample.cs b/examples/FactSet.AnalyticsAPI.Engines.Example/Examples/PAEngineMultipleUnitExample.cs index 10842a8d..22e61c3e 100644 --- a/examples/FactSet.AnalyticsAPI.Engines.Example/Examples/PAEngineMultipleUnitExample.cs +++ b/examples/FactSet.AnalyticsAPI.Engines.Example/Examples/PAEngineMultipleUnitExample.cs @@ -147,8 +147,6 @@ private static PACalculationParametersRoot GetPaCalculationParameters() var paPricingSourceId = pricingSourcesResponse.Data.FirstOrDefault(pricingSource => (pricingSource.Value.Name == PricingSourceName && pricingSource.Value.Category == PricingSourceCategory && pricingSource.Value.Directory == PricingSourceDirectory)).Key; Console.WriteLine($"PA Pricing Source Id : {paPricingSourceId}"); - var paAccountIdentifier = new PAIdentifier(Portfolio); - var paAccounts = new List { paAccountIdentifier }; var paBenchmarkIdentifier = new PAIdentifier(Benchmark, Holdings); var paBenchmarks = new List { paBenchmarkIdentifier }; diff --git a/examples/FactSet.AnalyticsAPI.Engines.Example/Examples/PAEngineSingleUnitExample.cs b/examples/FactSet.AnalyticsAPI.Engines.Example/Examples/PAEngineSingleUnitExample.cs index f3859748..2557a39f 100644 --- a/examples/FactSet.AnalyticsAPI.Engines.Example/Examples/PAEngineSingleUnitExample.cs +++ b/examples/FactSet.AnalyticsAPI.Engines.Example/Examples/PAEngineSingleUnitExample.cs @@ -155,8 +155,6 @@ private static PACalculationParametersRoot GetPaCalculationParameters() var paPricingSourceId = pricingSourcesResponse.Data.FirstOrDefault(pricingSource => (pricingSource.Value.Name == PricingSourceName && pricingSource.Value.Category == PricingSourceCategory && pricingSource.Value.Directory == PricingSourceDirectory)).Key; Console.WriteLine($"PA Pricing Source Id : {paPricingSourceId}"); - var paAccountIdentifier = new PAIdentifier(Portfolio); - var paAccounts = new List { paAccountIdentifier }; var paBenchmarkIdentifier = new PAIdentifier(Benchmark,Holdings); var paBenchmarks = new List { paBenchmarkIdentifier }; From 95275a99b1842edbb7b2f823c48873b71c248ba4 Mon Sep 17 00:00:00 2001 From: srajak8 <92512625+srajak8@users.noreply.github.com> Date: Wed, 7 Jun 2023 12:48:24 +0530 Subject: [PATCH 2/2] Update PAEngineSingleUnitExample.cs --- .../Examples/PAEngineSingleUnitExample.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/FactSet.AnalyticsAPI.Engines.Example/Examples/PAEngineSingleUnitExample.cs b/examples/FactSet.AnalyticsAPI.Engines.Example/Examples/PAEngineSingleUnitExample.cs index 2557a39f..828110b6 100644 --- a/examples/FactSet.AnalyticsAPI.Engines.Example/Examples/PAEngineSingleUnitExample.cs +++ b/examples/FactSet.AnalyticsAPI.Engines.Example/Examples/PAEngineSingleUnitExample.cs @@ -156,7 +156,7 @@ private static PACalculationParametersRoot GetPaCalculationParameters() Console.WriteLine($"PA Pricing Source Id : {paPricingSourceId}"); var paAccounts = new List { paAccountIdentifier }; - var paBenchmarkIdentifier = new PAIdentifier(Benchmark,Holdings); + var paBenchmarkIdentifier = new PAIdentifier(Benchmark, Holdings); var paBenchmarks = new List { paBenchmarkIdentifier }; var paPortfolioPricingSources = new List { new PACalculationPricingSource(id: paPricingSourceId) };