Options Expirations

Options Expirations Csharp API Documentation

Returns a list of all current and upcoming option contract expiration dates for a particular symbol.

API Class:
Intrinio.SDK.Api.OptionsApi
Instance Method:
GetOptionsExpirationsEod()

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 GetOptionsExpirationsEodExample
{
public static void Main()
{
Configuration.Default.AddApiKey("api_key", "YOUR_API_KEY");
Configuration.Default.AllowRetries = true;
var optionsApi = new OptionsApi();
string symbol = "MSFT";
string after = "2019-01-01";
string before = "2019-12-31";
bool? includeRelatedSymbols = false;
ApiResponseOptionsExpirations result = optionsApi.GetOptionsExpirationsEod(symbol, after, before, includeRelatedSymbols);
Console.WriteLine(JsonConvert.SerializeObject(result, Formatting.Indented));
}
}
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
symbolstringThe option symbol, corresponding to the underlying security. 
afterstringReturn option contract expiration dates after this date.[optional]  
beforestringReturn option contract expiration dates before this date.[optional]  
includeRelatedSymbolsbool?Include related symbols that end in a 1 or 2 because of a corporate action.[optional]  


Return Type

object
Intrinio.SDK.Model.ApiResponseOptionsExpirations

Properties

NameTypeDescription
ExpirationsListA list of option expiration dates in descending order