FactSet Global Prices client library for .NET
$ dotnet add package FactSet.SDK.FactSetGlobalPricesThe FactSet Global Prices API provides end of day market pricing content using cloud and microservices technology, encompassing both pricing as well as corporate actions and events data.</p>
This .NET package is automatically generated by the OpenAPI Generator project:
For more information, please visit https://developer.factset.com/contact
dotnet add package FactSet.SDK.Utils
dotnet add package FactSet.SDK.FactSetGlobalPrices -v 2.7.0
nuget install FactSet.SDK.Utils
nuget install FactSet.SDK.FactSetGlobalPrices -Version 2.7.0[!IMPORTANT] The parameter variables defined below are just examples and may potentially contain non valid values. Please replace them with valid values.
using System;
using System.Net;
using System.Threading.Tasks;
using FactSet.SDK.Utils.Authentication;
using FactSet.SDK.FactSetGlobalPrices.Api;
using FactSet.SDK.FactSetGlobalPrices.Client;
using FactSet.SDK.FactSetGlobalPrices.Model;
namespace Example
{
public static class GetBatchDataExample
{
public static async Task Main()
{
var config = new FactSet.SDK.FactSetGlobalPrices.Client.Configuration();
// Examples for each supported authentication method are below,
// choose one that satisfies your use case.
/* (Preferred) OAuth 2.0: FactSetOAuth2 */
// See https://github.com/FactSet/enterprise-sdk#oauth-20
// for information on how to create the app-config.json file
//
// The confidential client instance should be reused in production environments.
// See https://github.com/FactSet/enterprise-sdk-utils-dotnet#authentication
// for more information on using the ConfidentialClient class
ConfidentialClient confidentialClient = await ConfidentialClient.CreateAsync("/path/to/app-config.json");
config.OAuth2Client = confidentialClient;
/* Basic authentication: FactSetApiKey */
// See https://github.com/FactSet/enterprise-sdk#api-key
// for information how to create an API key
// config.Username = "USERNAME-SERIAL";
// config.Password = "API-KEY";
var apiInstance = new BatchProcessingApi(config);
var id = "id_example"; // Guid | Batch Request identifier.
try
{
// Returns the response for a Batch Request
BatchProcessingApi.GetBatchDataResponseWrapper result = apiInstance.GetBatchData(id);
switch (result.StatusCode)
{
case (HttpStatusCode)200:
Console.WriteLine(result.Response200);
break;
case (HttpStatusCode)202:
Console.WriteLine(result.Response202);
break;
}
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling BatchProcessingApi.GetBatchData: " + e.Message );
Console.WriteLine("Status Code: "+ e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
}
}
}To use the API client with a HTTP proxy, setup a System.Net.WebProxy
Configuration c = new Configuration();
System.Net.WebProxy webProxy = new System.Net.WebProxy("http://myProxyUrl:80/");
webProxy.Credentials = System.Net.CredentialCache.DefaultCredentials;
c.Proxy = webProxy;All URIs are relative to https://api.factset.com/content
| Class | Method | HTTP request | Description |
|---|---|---|---|
| BatchProcessingApi | GetBatchData | GET /factset-global-prices/v1/batch-result | Returns the response for a Batch Request |
| BatchProcessingApi | GetBatchStatus | GET /factset-global-prices/v1/batch-status | Returns the status for a Batch Request |
| CorporateActionsApi | GetGPDCorporateActions | GET /factset-global-prices/v1/corporate-actions | Gets Corporate Actions information. |
| CorporateActionsApi | GetannualizedDividends | GET /factset-global-prices/v1/annualized-dividends | Gets Indicated Annualized Dividend information. |
| CorporateActionsApi | GetannualizedDividendsForList | POST /factset-global-prices/v1/annualized-dividends | Gets Indicated Annualized Dividend information. |
| CorporateActionsApi | PostCorporateActions | POST /factset-global-prices/v1/corporate-actions | Requests Corporate Actions information. |
| CorporateActionsForCalendarApi | GetCorporateActions | GET /factset-global-prices/v1/calendar/corporate-actions | Retrieve Event Calendar information for Corporate Actions |
| CorporateActionsForCalendarApi | GetDividends | GET /factset-global-prices/v1/calendar/dividends | Retrieve Dividend information |
| CorporateActionsForCalendarApi | GetEventCount | GET /factset-global-prices/v1/calendar/event-count | Retrieve daily event count for a given date range |
| CorporateActionsForCalendarApi | GetExchanges | GET /factset-global-prices/v1/calendar/meta/exchanges | Returns a list of exchanges for which event/action data is available. |
| CorporateActionsForCalendarApi | GetRightsIssues | GET /factset-global-prices/v1/calendar/rights-issues | Retrieve Rights Issue information |
| CorporateActionsForCalendarApi | GetSpinOffs | GET /factset-global-prices/v1/calendar/spin-offs | Retrieve Spin Off information |
| CorporateActionsForCalendarApi | GetSplits | GET /factset-global-prices/v1/calendar/splits | Retrieve Split information |
| CorporateActionsForCalendarApi | GetStockDistributions | GET /factset-global-prices/v1/calendar/stock-distributions | Retrieve Stock Distribution information |
| MarketValueApi | GetGPDMarketVal | GET /factset-global-prices/v1/market-value | Provides the current market value for a list of specified securities. |
| MarketValueApi | GetSecurityPricesForListMarketVal | POST /factset-global-prices/v1/market-value | Requests the current market value for a list of specified securities. |
| PricesApi | GetGPDPrices | GET /factset-global-prices/v1/prices | Gets end-of-day Open, High, Low, Close for a list of securities. |
| PricesApi | GetSecurityPricesForList | POST /factset-global-prices/v1/prices | Requests end-of-day Open, High, Low, Close for a large list of securities. |
| ReturnsApi | GetReturns | GET /factset-global-prices/v1/returns | Gets Returns for a list of ids as of given date range. |
| ReturnsApi | GetReturnsForList | POST /factset-global-prices/v1/returns | Gets Returns for a list of ids as of given date range. |
| SharesOutstandingApi | GetSharesOutstanding | GET /factset-global-prices/v1/security-shares | Gets Shares Outstanding information for securities. |
| SharesOutstandingApi | PostSharesOutstanding | POST /factset-global-prices/v1/security-shares | Gets Shares Outstanding information for securities. |
Please refer to the contributing guide.
Copyright 2026 FactSet Research Systems Inc
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.