Options Chain Realtime

Options Chain Realtime Javascript API Documentation

Returns a list of the latest National Best Bid & Offer (NBBO) 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 option contracts currently associated with the option chain.

API Class:
OptionsApi
Instance Method:
getOptionsChainRealtime()

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 expiration = "2023-01-20";
var opts = {
'source': null,
'type': null,
'strike': null,
'strikeGreaterThan': null,
'strikeLessThan': null,
'volumeGreaterThan': null,
'volumeLessThan': null,
'openInterestGreaterThan': null,
'openInterestLessThan': null,
'moneyness': null,
'stockPriceSource': null,
'model': null,
'showExtendedPrice': null,
'includeRelatedSymbols': false
};
options.getOptionsChainRealtime(symbol, expiration, 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. 
expirationStringThe expiration date of the options contract 
sourceStringRealtime or 15-minute delayed contracts.[optional]  
typeStringThe option contract type.[optional]  
strikeNumberThe strike price of the option contract. This will return options contracts with strike price equal to this price.[optional]  
strikeGreaterThanNumberThe strike price of the option contract. This will return options contracts with strike prices greater than this price.[optional]  
strikeLessThanNumberThe strike price of the option contract. This will return options contracts with strike prices less than this price.[optional]  
volumeGreaterThanNumberThe volume of the option contract. This will return options contracts with volumes greater than this amount.[optional]  
volumeLessThanNumberThe volume of the option contract. This will return options contracts with volumes less than this amout.[optional]  
openInterestGreaterThanNumberThe open interest of the option contract. This will return options contracts with open interest greater than this amount.[optional]  
openInterestLessThanNumberThe open interest of the option contract. This will return options contracts with open interest less than this amount.[optional]  
moneynessStringThe moneyness of the options contracts to return. ‘all' will return all options contracts. ‘in_the_money' will return options contracts that are in the money (call options with strike prices below the current price, put options with strike prices above the current price). ‘out_of_they_money' will return options contracts that are out of the money (call options with strike prices above the current price, put options with strike prices below the current price). ‘near_the_money' will return options contracts that are $0.50 or less away from being in the money. Requires subscription to realtime stock price data.[optional]  
stockPriceSourceStringSource for underlying price for calculating Greeks.[optional]  
modelStringModel for calculating Greek values. Default is black_scholes.[optional]  
showExtendedPriceBooleanWhether to include open close high low type fields.[optional]  
includeRelatedSymbolsBooleanInclude related symbols that end in a 1 or 2 because of a corporate action.[optional]  


Return Type

object
ApiResponseOptionsChainRealtime

Properties

NameTypeDescription
chain[OptionChainRealtime]A list of realtime options for the provided expiration date their respective option prices.  
object
OptionChainRealtime

Properties

NameTypeDescription
optionOptionRealtime 
priceOptionPriceRealtime 
statsOptionStatsRealtime 
extendedPriceOptionPriceRealtimeExtended 
object
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.  
strikeNumberThe 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
OptionPriceRealtime

Properties

NameTypeDescription
lastNumberThe price of the last trade  
lastSizeNumberThe size of the last trade  
lastTimestampDateThe time of the last trade  
volumeNumberThe cumulative volume of this options contract that traded that day.  
askNumberThe price of the top ask order  
askSizeNumberThe size of the top ask order  
askTimestampDateThe timestamp of the top ask order  
bidNumberThe price of the top bid order  
bidSizeNumberThe size of the top bid order  
bidTimestampDateThe time of the top bid order  
openInterestNumberThe total number of this options contract that are still open.  
exerciseStyleStringThe exercise style of the option. ("A" = "American", "E" = "European")  
object
OptionStatsRealtime

Properties

NameTypeDescription
impliedVolatilityNumberThe implied volatility of the contract calculated using the Black-Scholes Model.  
deltaNumberDelta represents the rate of change between the option's price and a $1 change in the underlying asset's price.  
gammaNumberGamma represents the rate of change between an option's delta and the underlying asset's price.  
thetaNumberTheta represents the rate of change between the option price and time, or time sensitivity - sometimes known as an option's time decay.  
vegaNumberVega represents the rate of change between an option's value and the underlying asset's implied volatility.  
underlyingPriceNumberThe most recent trade price of the underlying asset.  
object
OptionPriceRealtimeExtended

Properties

NameTypeDescription
bidOpenNumberThe price of the bid at open  
bidHighNumberThe high bid so far today  
bidLowNumberThe low bid so far today  
askOpenNumberThe price of the ask at open  
askHighNumberThe high ask so far today  
askLowNumberThe low ask so far today  
tradeOpenNumberThe price of the trade at open  
tradeHighNumberThe high trade so far today  
tradeLowNumberThe low trade so far today  
askCloseNumberThe price of ask at close today  
bidCloseNumberThe price of bid at close today  
tradeCloseNumberThe price of the last trade of the day  
markNumberThe mark price