Options by Symbol Realtime

Options by Symbol Realtime Csharp API Documentation

Returns a list of all securities that have options listed and are tradable on a US market exchange. Useful to retrieve the entire universe.

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

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 GetOptionsBySymbolRealtimeExample
{
public static void Main()
{
Configuration.Default.AddApiKey("api_key", "YOUR_API_KEY");
Configuration.Default.AllowRetries = true;
var optionsApi = new OptionsApi();
string symbol = "AAPL";
string type = "put";
decimal? strike = 170;
decimal? strikeGreaterThan = 150;
decimal? strikeLessThan = 190;
string expiration = "2022-04-16";
string expirationAfter = "2022-01-01";
string expirationBefore = "2023-12-31";
string source = null;
bool? includeRelatedSymbols = false;
ApiResponseOptionsRealtime result = optionsApi.GetOptionsBySymbolRealtime(symbol, type, strike, strikeGreaterThan, strikeLessThan, expiration,
        expirationAfter, expirationBefore, source, includeRelatedSymbols);
Console.WriteLine(JsonConvert.SerializeObject(result, Formatting.Indented));
}
}
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
symbolstringThe option symbol, corresponding to the underlying security. 
typestringThe option contract type.[optional]  
strikedecimal?The strike price of the option contract. This will return options contracts with strike price equal to this price.[optional]  
strikeGreaterThandecimal?The strike price of the option contract. This will return options contracts with strike prices greater than this price.[optional]  
strikeLessThandecimal?The strike price of the option contract. This will return options contracts with strike prices less than this price.[optional]  
expirationstringThe expiration date of the option contract. This will return options contracts with expiration dates on this date.[optional]  
expirationAfterstringThe expiration date of the option contract. This will return options contracts with expiration dates after this date.[optional]  
expirationBeforestringThe expiration date of the option contract. This will return options contracts with expiration dates before this date.[optional]  
sourcestringRealtime or 15-minute delayed contracts.[optional]  
includeRelatedSymbolsbool?Include related symbols that end in a 1 or 2 because of a corporate action.[optional]  


Return Type

object
Intrinio.SDK.Model.ApiResponseOptionsRealtime

Properties

NameTypeDescription
OptionsListA list of options contracts with the given symbol  
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).