Options Expirations

Options Expirations Python API Documentation

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

API Class:
OptionsApi
Instance Method:
get_options_expirations_eod()

Stock Price Code Example

Use my API Key
from __future__ import print_function
import time
import intrinio_sdk as intrinio
from intrinio_sdk.rest import ApiException
intrinio.ApiClient().set_api_key('YOUR_API_KEY')
intrinio.ApiClient().allow_retries(True)
symbol = 'MSFT'
after = '2019-01-01'
before = '2019-12-31'
include_related_symbols = False
response = intrinio.OptionsApi().get_options_expirations_eod(symbol, after=after, before=before, include_related_symbols=include_related_symbols)
print(response)
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
symbolstrThe option symbol, corresponding to the underlying security. 
afterstrReturn option contract expiration dates after this date.[optional]  
beforestrReturn option contract expiration dates before this date.[optional]  
include_related_symbolsboolInclude related symbols that end in a 1 or 2 because of a corporate action.[optional]  


Return Type

object
ApiResponseOptionsExpirations

Properties

NameTypeDescription
expirationslist[str]A list of option expiration dates in descending order