Options

Options Python API Documentation

Returns a list of all securities that have options listed and are tradable on a US market exchange. Useful to retrieve the entire universe. Available via a 3rd party, contact sales for a trial.

API Class:
OptionsApi
Instance Method:
get_options()

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 = 'AAPL'
type = 'put'
page_size = 100
next_page = ''
response = intrinio.OptionsApi().get_options(symbol, type=type, page_size=page_size, next_page=next_page)
print(response)
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
symbolstrThe option symbol, corresponding to the underlying security. 
typestrThe option contract type.[optional]  
strikefloatThe strike price of the option contract. This will return options contracts with strike price equal to this price.[optional]  
strike_greater_thanfloatThe strike price of the option contract. This will return options contracts with strike prices greater than this price.[optional]  
strike_less_thanfloatThe strike price of the option contract. This will return options contracts with strike prices less than this price.[optional]  
expirationstrThe expiration date of the option contract. This will return options contracts with expiration dates on this date.[optional]  
expiration_afterstrThe expiration date of the option contract. This will return options contracts with expiration dates after this date.[optional]  
expiration_beforestrThe expiration date of the option contract. This will return options contracts with expiration dates before this date.[optional]  
page_sizeintThe number of results to return[optional] [default to 100]  
next_pagestrGets the next page of data from a previous API call[optional]  


Return Type

object
ApiResponseOptions

Properties

NameTypeDescription
optionslist[Option]A list of options contracts with the given symbol  
next_pagestrThe token required to request the next page of the data. If null, no further results are available.  
object
Option

Properties

NameTypeDescription
idstrThe Intrinio ID for the Option.  
codestrThe Intrinio Code for the Option.  
tickerstrThe ticker symbol of the Security for the Option.  
expirationstrThe date on which the Option expires. The Option becomes invalid after this date and cannot be exercised.  
strikefloatThe strike price is the fixed price at which a derivative can be exercised, and refers to the price of the derivative's underlying asset. In a call option, the strike price is the price at which the option holder can purchase the underlying security. For a put option, the strike price is the price at which the option holder can sell the underlying security.  
typestrThe type of Option (put or call). A put option is an option contract giving the owner the right, but not the obligation, to sell a specified amount of an underlying asset at a specified price before the option's expiration date. A call option gives the holder the right to buy an underlying asset at a specified price, before the option's expiration date.