Options Intervals By Contract

Options Intervals By Contract Javascript API Documentation

Returns a list of interval data points for a contract.

API Class:
OptionsApi
Instance Method:
getOptionsIntervalByContract()

Stock Price Code Example

Use my API Key
var intrinioSDK = require('intrinio-sdk');
intrinioSDK.ApiClient.instance.authentications['ApiKeyAuth'].apiKey = "YOUR_API_KEY";
intrinioSDK.ApiClient.instance.enableRetries = true;
var options = new intrinioSDK.OptionsApi();
var identifier = "SPY___230103P00380000";
var intervalSize = "5m";
var opts = {
'source': null,
'pageSize': 100,
'endTime': null
};
options.getOptionsIntervalByContract(identifier, intervalSize, opts).then(function(data) {
data = JSON.stringify(data, null, 2)
console.log(data);
}, function(error) {
console.error(error);
});
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
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]  
pageSizeNumberThe number of results to return[optional] [default to 100]  
endTimeDateThe inclusive UTC date and time the intervals end at.[optional]  


Return Type

object
OptionIntervalsResult

Properties

NameTypeDescription
intervals[OptionInterval]Array of all the intervals in the result.  
contractStringThe option contract for the intervals  
sizeStringThe size of the time span for the interval.  
object
OptionInterval

Properties

NameTypeDescription
openTimeDateThe UTC timestamp for the time this interval opened.  
closeTimeDateThe UTC timestamp for the time this interval closed.  
openNumberThe first traded contract price in this interval.  
highNumberThe highest traded contract price in this interval.  
lowNumberThe lowest traded contract price in this interval.  
closeNumberThe last traded contract price in this interval.  
volumeNumberThe volume of contracts traded in this interval.  
averageNumberThe volume weighted average price of contract trades in this interval.  
changeNumberThe ratio of Close minus Open to Open.  
tradeCountNumberThe number of qualified trades executed during the period