Options Expirations

Options Expirations Javascript API Documentation

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

API Class:
OptionsApi
Instance Method:
getOptionExpirationsRealtime()

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 symbol = "MSFT";
var opts = {
'after': "2022-01-01",
'before': "2023-04-01",
'source': null,
'includeRelatedSymbols': false
};
options.getOptionExpirationsRealtime(symbol, opts).then(function(data) {
data = JSON.stringify(data, null, 2)
console.log(data);
}, function(error) {
console.error(error);
});
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
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]  
sourceStringRealtime or 15-minute delayed contracts.[optional]  
includeRelatedSymbolsBooleanInclude related symbols that end in a 1 or 2 because of a corporate action.[optional]  


Return Type

object
ApiResponseOptionsExpirations

Properties

NameTypeDescription
expirations[String]A list of option expiration dates in descending order