C# SDK

  v7.13.0

The Intrinio C# SDK wraps all API endpoints into an easy-to-use set of classes, methods, and response objects.

C# SDK Installation

To install the SDK use NuGet:

nuget install Intrinio.SDK

Be sure to add all package assemblies as references and include the SDK in your code as follows:

using Intrinio.SDK.Api;
using Intrinio.SDK.Client;
using Intrinio.SDK.Model;
View C# SDK on GitHub

Stock Price Code Example

Use my API Key
using System;
using System.Diagnostics;
using System.Collections;
using System.Collections.Generic;
using Intrinio.SDK.Api;
using Intrinio.SDK.Client;
using Intrinio.SDK.Model;
using Newtonsoft.Json;
namespace Example
{
public class GetSecurityStockPricesExample
{
public static void Main()
{
Configuration.Default.AddApiKey("api_key", "YOUR_API_KEY");
Configuration.Default.AllowRetries = true;
var securityApi = new SecurityApi();
string identifier = "AAPL";
DateTime? startDate = DateTime.Parse("2018-01-01");
DateTime? endDate = DateTime.Parse("2019-01-01");
string frequency = "daily";
int? pageSize = 100;
string nextPage = null;
ApiResponseSecurityStockPrices result = securityApi.GetSecurityStockPrices(identifier, startDate, endDate, frequency, pageSize, nextPage);
Console.WriteLine(JsonConvert.SerializeObject(result, Formatting.Indented));
}
}
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
identifierstringA Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) 
startDateDateTime?Return prices on or after the date[optional]  
endDateDateTime?Return prices on or before the date[optional]  
frequencystringReturn stock prices in the given frequency[optional] [default to daily]  
pageSizeint?The number of results to return[optional] [default to 100]  
nextPagestringGets the next page of data from a previous API call[optional]  


Return Type

object
Intrinio.SDK.Model.ApiResponseSecurityStockPrices

Properties

NameTypeDescription
StockPricesListThe stock prices for the Security  
SecuritySecuritySummaryThe Security resolved from the given identifier  
NextPagestringThe token required to request the next page of the data. If null, no further results are available.  
object
Intrinio.SDK.Model.StockPriceSummary

Properties

NameTypeDescription
DateDateTime?The calendar date that the stock price represents. For non-daily stock prices, this represents the last day in the period (end of the week, month, quarter, year, etc)  
Intraperiodbool?If true, the stock price represents an unfinished period (be it day, week, quarter, month, or year), meaning that the close price is the latest price available, not the official close price for the period  
FrequencystringThe type of period that the stock price represents  
Opendecimal?The price at the beginning of the period  
Highdecimal?The highest price over the span of the period  
Lowdecimal?The lowest price over the span of the period  
Closedecimal?The price at the end of the period  
Volumedecimal?The number of shares exchanged during the period  
AdjOpendecimal?The price at the beginning of the period, adjusted for splits and dividends  
AdjHighdecimal?The highest price over the span of the period, adjusted for splits and dividends  
AdjLowdecimal?The lowest price over the span of the period, adjusted for splits and dividends  
AdjClosedecimal?The price at the end of the period, adjusted for splits and dividends  
AdjVolumedecimal?The number of shares exchanged during the period, adjusted for splits and dividends  
Factordecimal?The factor by which to multiply stock prices before this date, in order to calculate historically-adjusted stock prices.  
SplitRatiodecimal?The ratio of the stock split, if a stock split occurred.  
Dividenddecimal?The dividend amount, if a dividend was paid.  
Changedecimal?The difference in price from the last price for this frequency  
PercentChangedecimal?The percent difference in price from the last price for this frequency  
FiftyTwoWeekHighdecimal?The 52 week high price (daily only)  
FiftyTwoWeekLowdecimal?The 52 week low price (daily only)  
object
Intrinio.SDK.Model.SecuritySummary

Properties

NameTypeDescription
IdstringThe Intrinio ID for Security  
CompanyIdstringThe Intrinio ID for the Company for which the Security is issued  
ExchangestringThe exchange's MIC  
ExchangeMicstringThe security's exchange MIC  
StockExchangeIdstringThe exchange's Intrinio ID  
NamestringThe name of the Security  
CodestringA 2-3 digit code classifying the Security (reference)  
CurrencystringThe currency in which the Security is traded on the exchange  
TickerstringThe common/local ticker of the Security  
CompositeTickerstringThe country-composite ticker of the Security  
FigistringThe OpenFIGI identifier  
CompositeFigistringThe country-composite OpenFIGI identifier  
ShareClassFigistringThe global-composite OpenFIGI identifier  
PrimaryListingbool?If true, the Security is the primary issue for the company, otherwise it is a secondary issue on a secondary stock exchange  
View Documentation for Stock Prices by Security Example

Release History

v7.13.0

Released 02/25/2025

No description available for this release.

Intrinio.SDK.7.13.0.zip
csharp-sdk-source-code-v7.13.0.zip

v7.12.0

Released 11/27/2024

No release notes for this build.

Intrinio.SDK.7.12.0.zip
csharp-sdk-source-code-v7.12.0.zip

v7.11.0

Released 11/21/2024

No release notes for this build.

Intrinio.SDK.7.11.0.zip
csharp-sdk-source-code-v7.11.0.zip

v7.10.0

Released 10/31/2024
Intrinio.SDK.7.10.0.zip
csharp-sdk-source-code-v7.10.0.zip

v7.9.0

Released 09/19/2024

Added stock exchange quote endpoint

Intrinio.SDK.7.9.0.zip
csharp-sdk-source-code-v7.9.0.zip

v7.8.0

Released 08/23/2024

Fix type on one endpoint.
Add quote type fields to equity intervals.

Intrinio.SDK.7.8.0.zip
csharp-sdk-source-code-v7.8.0.zip

v7.7.1

Released 08/10/2024

No release notes for this build.

Intrinio.SDK.7.7.1.zip
csharp-sdk-source-code-v7.7.1.zip

v7.7.0

Released 08/02/2024

Quote endpoint
Allow multiple tickers on parameter in some endpoints.

Intrinio.SDK.7.7.0.zip
csharp-sdk-source-code-v7.7.0.zip

v7.6.1

Released 07/22/2024

Added bid and ask timestamp properties to realtime equities quotes.

Intrinio.SDK.7.6.1.zip
csharp-sdk-source-code-v7.6.1.zip

v7.6.0

Released 07/22/2024

No release notes for this build.

Intrinio.SDK.7.6.0.zip
csharp-sdk-source-code-v7.6.0.zip

v7.5.4

Released 06/26/2024
Intrinio.SDK.7.5.4.zip
csharp-sdk-source-code-v7.5.4.zip

v7.5.3

Released 06/05/2024

No release notes for this build.

Intrinio.SDK.7.5.3.zip
csharp-sdk-source-code-v7.5.3.zip

v7.5.2

Released 04/10/2024

Advanced company news endpoints

Intrinio.SDK.7.5.2.zip
csharp-sdk-source-code-v7.5.2.zip

v7.5.0

Released 03/11/2024

No release notes for this build.

Intrinio.SDK.7.5.0.zip
csharp-sdk-source-code-v7.5.0.zip

v7.4.8

Released 02/20/2024

Added Zacks Sales Estimates endpoint.

Intrinio.SDK.7.4.8.zip
csharp-sdk-source-code-v7.4.8.zip

v7.4.7

Released 02/06/2024

No release notes for this release.

Intrinio.SDK.7.4.7.zip
csharp-sdk-source-code-v7.4.7.zip

7.4.6

Released 02/01/2024

No release notes for this build.

Intrinio.SDK.7.4.6.zip
csharp-sdk-source-code-7.4.6.zip

7.4.5

Released 12/21/2023

Add extended price fields to options realtime calls
Add bid/ask time and size to options eod calls

Intrinio.SDK.7.4.5.zip
csharp-sdk-source-code-7.4.5.zip

v7.4.3

Released 12/05/2023

Documentation updates and fixes

Intrinio.SDK.7.4.3.zip
csharp-sdk-source-code-v7.4.3.zip

7.4.2

Released 11/08/2023

-Adjusting and releasing Company Public Float endpoint.

Intrinio.SDK.7.4.2.zip
csharp-sdk-source-code-7.4.2.zip

v7.4.1

Released 10/03/2023

Added missing preexisting parameters to some SDK methods.

Intrinio.SDK.7.4.1.zip
csharp-sdk-source-code-v7.4.1.zip

v7.4.0

Released 09/08/2023

Add extra hint message to a Trade Alerts endpoint if user doesn’t have access
Fix enum on depreciated intraday endpoint docs
Add date filters to shares outstanding endpoint
Allow either datetime format for param on snapshot endpoints
Add missing next page param to docs for institutional ownership endpoint
Add documentation for market status endpoint

Intrinio.SDK.7.4.0.zip
csharp-sdk-source-code-v7.4.0.zip

7.3.0

Released 08/01/2023

Can specify greeks underlying price source in some options calls
Can specify greeks IV method of calculation in some options calls
Update intervals syntax so it can pull from more performant source

Intrinio.SDK.7.3.0.zip
csharp-sdk-source-code-7.3.0.zip

v7.2.1

Released 07/10/2023

Added socket replay file endpoint
Added Nasdaq Basic All Trades endpoint

Intrinio.SDK.7.2.1.zip
csharp-sdk-source-code-v7.2.1.zip

v7.2.0

Released 06/14/2023

No notes for this release.

Intrinio.SDK.7.2.0.zip
csharp-sdk-source-code-v7.2.0.zip

7.1.1

Released 03/28/2023

Added next_page param to SDK that already exists in the REST options endpoint.

Intrinio.SDK.7.1.1.zip
csharp-sdk-source-code-7.1.1.zip

7.1.0

Released 03/19/2023

Added interval and movers endpoints.

Intrinio.SDK.7.1.0.zip
csharp-sdk-source-code-7.1.0.zip

7.0.1

Released 01/11/2023
  • Added options intervals and equitites delayed SIP endpoints
  • Added Intervals Movers endpoints
Intrinio.SDK.7.0.1.zip
csharp-sdk-source-code-7.0.1.zip

7.0.0

Released 09/20/2022
Intrinio.SDK.7.0.0.zip
csharp-sdk-source-code-7.0.0.zip

6.22.2

Released 09/19/2022

-Updated RestSharp to v108

Intrinio.SDK.6.22.2.zip
csharp-sdk-source-code-6.22.2.zip