Option Strikes Realtime

Option Strikes Realtime Ruby API Documentation

Returns a list of the latest top of the order book size and premium (bid / ask), the latest trade size and premium as well as the greeks and implied volatility for all call/put contracts that match the strike and symbol specified.

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

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"
strike = 95
opts = {
source: nil,
stock_price_source: nil,
model: nil,
show_extended_price: nil,
include_related_symbols: false
}
result = options_api.get_option_strikes_realtime(symbol, strike, opts)
pp result
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
symbolStringThe option symbol, corresponding to the underlying security. 
strikeFloatThe strike price of the option contract. This will return options contracts with strike price equal to this price. 
sourceStringRealtime or delayed.[optional]  
stock_price_sourceStringSource for underlying price for calculating Greeks.[optional]  
modelStringModel for calculating Greek values. Default is black_scholes.[optional]  
show_extended_priceBOOLEANWhether to include open close high low type fields.[optional]  
include_related_symbolsBOOLEANInclude related symbols that end in a 1 or 2 because of a corporate action.[optional]  

Return Type

object
Intrinio::ApiResponseOptionsChainRealtime

Properties

NameTypeDescription
chainArrayA list of realtime options for the provided expiration date their respective option prices.  
object
Intrinio::OptionChainRealtime

Properties

NameTypeDescription
optionOptionRealtime 
priceOptionPriceRealtime 
statsOptionStatsRealtime 
extended_priceOptionPriceRealtimeExtended 
object
Intrinio::OptionRealtime

Properties

NameTypeDescription
codeStringThe Intrinio Code for the Option.  
tickerStringThe ticker symbol of the Security for the Option.  
expirationDateThe 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.  
typeStringThe type of Option (put or call).  
object
Intrinio::OptionPriceRealtime

Properties

NameTypeDescription
lastFloatThe price of the last trade  
last_sizeIntegerThe size of the last trade  
last_timestampDateTimeThe time of the last trade  
volumeIntegerThe cumulative volume of this options contract that traded that day.  
askFloatThe price of the top ask order  
ask_sizeIntegerThe size of the top ask order  
ask_timestampDateTimeThe timestamp of the top ask order  
bidFloatThe price of the top bid order  
bid_sizeIntegerThe size of the top bid order  
bid_timestampDateTimeThe time of the top bid order  
open_interestIntegerThe total number of this options contract that are still open.  
exercise_styleStringThe exercise style of the option. ("A" = "American", "E" = "European")  
object
Intrinio::OptionStatsRealtime

Properties

NameTypeDescription
implied_volatilityFloatThe implied volatility of the contract calculated using the Black-Scholes Model.  
deltaFloatDelta represents the rate of change between the option's price and a $1 change in the underlying asset's price.  
gammaFloatGamma represents the rate of change between an option's delta and the underlying asset's price.  
thetaFloatTheta represents the rate of change between the option price and time, or time sensitivity - sometimes known as an option's time decay.  
vegaFloatVega represents the rate of change between an option's value and the underlying asset's implied volatility.  
underlying_priceFloatThe most recent trade price of the underlying asset.  
object
Intrinio::OptionPriceRealtimeExtended

Properties

NameTypeDescription
bid_openFloatThe price of the bid at open  
bid_highFloatThe high bid so far today  
bid_lowFloatThe low bid so far today  
ask_openFloatThe price of the ask at open  
ask_highFloatThe high ask so far today  
ask_lowFloatThe low ask so far today  
trade_openFloatThe price of the trade at open  
trade_highFloatThe high trade so far today  
trade_lowFloatThe low trade so far today  
ask_closeFloatThe price of ask at close today  
bid_closeFloatThe price of bid at close today  
trade_closeFloatThe price of the last trade of the day  
markFloatThe mark price