Options Intervals By Contract

Options Intervals By Contract Csharp API Documentation

Returns a list of interval data points for a contract.

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

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 GetOptionsIntervalByContractExample
{
public static void Main()
{
Configuration.Default.AddApiKey("api_key", "YOUR_API_KEY");
Configuration.Default.AllowRetries = true;
var optionsApi = new OptionsApi();
string identifier = "SPY___230103P00380000";
string intervalSize = "5m";
string source = null;
int? pageSize = 100;
DateTime? endTime = null;
OptionIntervalsResult result = optionsApi.GetOptionsIntervalByContract(identifier, intervalSize, source, pageSize, endTime);
Console.WriteLine(JsonConvert.SerializeObject(result, Formatting.Indented));
}
}
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
identifierstringThe Intrinio ID or code of the options contract to request intervals for. 
intervalSizestringThe time length of the interval. 
sourcestringRealtime or 15-minute delayed contracts.[optional]  
pageSizeint?The number of results to return[optional] [default to 100]  
endTimeDateTime?The inclusive UTC date and time the intervals end at.[optional]  


Return Type

object
Intrinio.SDK.Model.OptionIntervalsResult

Properties

NameTypeDescription
IntervalsListArray of all the intervals in the result.  
ContractstringThe option contract for the intervals  
SizestringThe size of the time span for the interval.  
object
Intrinio.SDK.Model.OptionInterval

Properties

NameTypeDescription
OpenTimeDateTime?The UTC timestamp for the time this interval opened.  
CloseTimeDateTime?The UTC timestamp for the time this interval closed.  
Opendecimal?The first traded contract price in this interval.  
Highdecimal?The highest traded contract price in this interval.  
Lowdecimal?The lowest traded contract price in this interval.  
Closedecimal?The last traded contract price in this interval.  
Volumedecimal?The volume of contracts traded in this interval.  
Averagedecimal?The volume weighted average price of contract trades in this interval.  
Changedecimal?The ratio of Close minus Open to Open.  
TradeCountdecimal?The number of qualified trades executed during the period