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 GetOptionsPricesRealtimeExample
{
public static void Main()
{
Configuration.Default.AddApiKey("api_key", "YOUR_API_KEY");
Configuration.Default.AllowRetries = true;
var optionsApi = new OptionsApi();
string identifier = "AAPL__261218C00230000";
string source = null;
string stockPriceSource = null;
string model = null;
bool? showExtendedPrice = null;
ApiResponseOptionsPriceRealtime result = optionsApi.GetOptionsPricesRealtime(identifier, source, stockPriceSource, model, showExtendedPrice);
Console.WriteLine(JsonConvert.SerializeObject(result, Formatting.Indented));
}
}
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
identifierstringThe Intrinio ID or code of the options contract to request prices for. 
sourcestringRealtime or 15-minute delayed contracts.[optional]  
stockPriceSourcestringSource for underlying price for calculating Greeks.[optional]  
modelstringModel for calculating Greek values. Default is black_scholes.[optional]  
showExtendedPricebool?Whether to include open close high low type fields.[optional]  


Return Type

object
Intrinio.SDK.Model.ApiResponseOptionsPriceRealtime

Properties

NameTypeDescription
PriceOptionPriceRealtime 
StatsOptionStatsRealtime 
OptionOptionRealtime 
ExtendedPriceOptionPriceRealtimeExtended 
object
Intrinio.SDK.Model.OptionPriceRealtime

Properties

NameTypeDescription
Lastdecimal?The price of the last trade  
LastSizeint?The size of the last trade  
LastTimestampDateTime?The time of the last trade  
Volumeint?The cumulative volume of this options contract that traded that day.  
Askdecimal?The price of the top ask order  
AskSizeint?The size of the top ask order  
AskTimestampDateTime?The timestamp of the top ask order  
Biddecimal?The price of the top bid order  
BidSizeint?The size of the top bid order  
BidTimestampDateTime?The time of the top bid order  
OpenInterestint?The total number of this options contract that are still open.  
ExerciseStylestringThe exercise style of the option. ("A" = "American", "E" = "European")  
object
Intrinio.SDK.Model.OptionStatsRealtime

Properties

NameTypeDescription
ImpliedVolatilitydecimal?The implied volatility of the contract calculated using the Black-Scholes Model.  
Deltadecimal?Delta represents the rate of change between the option's price and a $1 change in the underlying asset's price.  
Gammadecimal?Gamma represents the rate of change between an option's delta and the underlying asset's price.  
Thetadecimal?Theta represents the rate of change between the option price and time, or time sensitivity - sometimes known as an option's time decay.  
Vegadecimal?Vega represents the rate of change between an option's value and the underlying asset's implied volatility.  
UnderlyingPricedecimal?The most recent trade price of the underlying asset.  
object
Intrinio.SDK.Model.OptionRealtime

Properties

NameTypeDescription
CodestringThe Intrinio Code for the Option.  
TickerstringThe ticker symbol of the Security for the Option.  
ExpirationDateTime?The date on which the Option expires. The Option becomes invalid after this date and cannot be exercised.  
Strikedecimal?The strike price is the fixed price at which a derivative can be exercised, and refers to the price of the derivative's underlying asset. In a call option, the strike price is the price at which the option holder can purchase the underlying security. For a put option, the strike price is the price at which the option holder can sell the underlying security.  
TypestringThe type of Option (put or call).  
object
Intrinio.SDK.Model.OptionPriceRealtimeExtended

Properties

NameTypeDescription
BidOpendecimal?The price of the bid at open  
BidHighdecimal?The high bid so far today  
BidLowdecimal?The low bid so far today  
AskOpendecimal?The price of the ask at open  
AskHighdecimal?The high ask so far today  
AskLowdecimal?The low ask so far today  
TradeOpendecimal?The price of the trade at open  
TradeHighdecimal?The high trade so far today  
TradeLowdecimal?The low trade so far today  
AskClosedecimal?The price of ask at close today  
BidClosedecimal?The price of bid at close today  
TradeClosedecimal?The price of the last trade of the day  
Markdecimal?The mark price  
View Documentation for Option Prices Realtime 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