Options Expirations

Options Expirations Ruby API Documentation

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

API Class:
Intrinio::OptionsApi
Instance Method:
get_options_expirations_eod()

Stock Price Code Example

Use my API Key
# Load the gem
require 'intrinio-sdk'
require 'pp'
# Setup authorization
Intrinio.configure do |config|
config.api_key['api_key'] = 'YOUR_API_KEY'
config.allow_retries = true
end
options_api = Intrinio::OptionsApi.new
symbol = "MSFT"
opts = {
after: "2019-01-01",
before: "2019-12-31",
include_related_symbols: false
}
result = options_api.get_options_expirations_eod(symbol, opts)
pp result
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
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]  
include_related_symbolsBOOLEANInclude related symbols that end in a 1 or 2 because of a corporate action.[optional]  

Return Type

object
Intrinio::ApiResponseOptionsExpirations

Properties

NameTypeDescription
expirationsArrayA list of option expiration dates in descending order