Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:

steps:
- uses: actions/checkout@v2

- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 2.2
dotnet-version: '6.0.x' #2.2

- name: Build new SDK
run: cd auto-generated-sdk && dotnet build --configuration Release
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
[![build](https://img.shields.io/github/workflow/status/factset/analyticsapi-engines-dotnet-sdk/CI)](https://github.com/factset/analyticsapi-engines-dotnet-sdk/actions?query=workflow%3ACI)
[![nuget](https://img.shields.io/nuget/v/FactSet.AnalyticsAPI.Engines)](https://www.nuget.org/packages/FactSet.AnalyticsAPI.Engines)
![API version](https://img.shields.io/badge/API-v2-blue)
[![Apache-2 license](https://img.shields.io/badge/license-Apache2-brightgreen.svg)](https://www.apache.org/licenses/LICENSE-2.0)
[![Apache-2 license](https://img.shields.io/badge/license-Apache2-brightgreen.svg)](https://www.apache.org/licenses/LICENSE-2.0)![Deprecated](https://img.shields.io/badge/status-deprecated-red)

*```**Note: This library is no longer maintained and is deprecated. Please use``` [enterprise-sdk](https://github.com/FactSet/enterprise-sdk) ```instead.```*

Use this library to integrate with FactSet's Analytics APIs. Below APIs are supported by this SDK.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,6 @@ private static PACalculationParametersRoot GetPaCalculationParameters()
var paComponentId = componentsResponse.Data.FirstOrDefault(component => (component.Value.Name == ComponentName && component.Value.Category == ComponentCategory)).Key;
Console.WriteLine($"PA Component Id : {paComponentId}");


var paAccountIdentifier = new PAIdentifier(Portfolio, Holdings);

var pricingSourcesApi = new PricingSourcesApi(GetApiConfiguration());

var pricingSourcesResponse = pricingSourcesApi.GetPAPricingSources(PricingSourceName, PricingSourceCategory, PricingSourceDirectory);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,7 @@ private static PACalculationParametersRoot GetPaCalculationParameters()
var componentsResponse = componentsApi.GetPAComponents(PADocument);

var paComponentId = componentsResponse.Data.FirstOrDefault(component => (component.Value.Name == ComponentName && component.Value.Category == ComponentCategory)).Key;
Console.WriteLine($"PA Component Id : {paComponentId}");

var paAccountIdentifier = new PAIdentifier(Portfolio, Holdings);
Console.WriteLine($"PA Component Id : {paComponentId}");

var pricingSourcesApi = new PricingSourcesApi(GetApiConfiguration());

Expand Down
13 changes: 7 additions & 6 deletions tests/FactSet.AnalyticsAPI.Engines.Test/Api/CommonParameters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public static class CommonParameters
// Add 'ANALYTICS_API_URL' environment variable with api url as value
public static readonly string BaseUrl = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("ANALYTICS_API_URL")) ? Environment.GetEnvironmentVariable("ANALYTICS_API_URL") : "https://api.factset.com";

public const string PADefaultDocument = "PA_DOCUMENTS:DEFAULT";
public const string PADefaultDocument = "PA3_DOCUMENTS:PA_API_DEFAULT_DOCUMENT-RBICS";
public const string PADefaultComponentName = "Weights";
public const string PADefaultComponentCategory = "Weights / Exposures";
public const string PABenchmarkSP50 = "BENCH:SP50";
Expand All @@ -25,11 +25,11 @@ public static class CommonParameters
public const string SPARBenchmarkRussellPR1000 = "RUSSELL_P:R.2000";
public const string SPARBenchmarkRussellPrefix = "RUSSELL";
public const string SPARBenchmarkRussellReturnType = "GTR";
public const string VaultDefaultDocument = "Client:/aapi/VAULT_QA_PI_DEFAULT_LOCKED";
public const string VaultDefaultAccount = "CLIENT:/BISAM/REPOSITORY/QA/SMALL_PORT.ACCT";
public const string VaultStartDate = "20180101";
public const string VaultEndDate = "20180329";
public const string PubDocumentName = "Client:/AAPI/Puma Test Doc.PUB_BRIDGE_PDF";
public const string VaultDefaultDocument = "CLIENT:/YETI/YETI-API-TEST";
public const string VaultDefaultAccount = "CLIENT:/YETI/YETI-API-TEST.ACCT";
public const string VaultStartDate = "20211231";
public const string VaultEndDate = "20220131";
public const string PubDocumentName = "Client:/AAPI/Puma Narrative Test.PUB_BRIDGE_PDF";
public const string PubAccountName = "BENCH:SP50";
public const string PubStartDate = "-1M";
public const string PubEndDate = "0M";
Expand All @@ -38,5 +38,6 @@ public static class CommonParameters
public const string DefaultDatesDrequency = "Monthly";
public const string DefaultDatesAccount = "CLIENT:/BISAM/REPOSITORY/QA/SMALL_PORT.ACCT";
public const string DefaultLookupDirectory = "client:";
public const string SPARAccount = "client:/aapi/spar3_qa_test_document";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public void ComponentsApi_Get_SparComponents_Success()
[TestMethod]
public void ComponentsApi_Get_SPARComponentById_Success()
{
var sparComponents = componentsApi.GetSPARComponentsWithHttpInfo(CommonParameters.SPARDefaultDocument);
var sparComponents = componentsApi.GetSPARComponentsWithHttpInfo(CommonParameters.SPARAccount);
var sparComponentId = sparComponents.Data.Data.Keys.First();

var componentGetByIdResponse = componentsApi.GetSPARComponentByIdWithHttpInfo(sparComponentId);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>

<TargetFramework>net6.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>

Expand Down
Loading