Skip to main content

chains

Get the complete options chain for a ticker.

Example​

from openbb import obb
chains = obb.derivatives.options.chains(symbol="AAPL", provider="intrinio").to_df()
#### Use the "date" parameter to get the end-of-day-data for a specific date, where supported. ####
eod_chains = obb.derivatives.options.chains(symbol="AAPL", date="2023-01-25", provider="intrinio").to_df()

Parameters​

NameTypeDescriptionDefaultOptional
symbolstrSymbol to get data for.False
providerLiteral['cboe', 'intrinio', 'tmx']The provider to use for the query, by default None. If None, the provider specified in defaults is selected or 'cboe' if there is no default.cboeTrue

Returns​

OBBject
results : List[OptionsChains]
Serializable results.

provider : Optional[Literal['cboe', 'intrinio', 'tmx']]
Provider name.

warnings : Optional[List[Warning_]]
List of warnings.

chart : Optional[Chart]
Chart object.

extra : Dict[str, Any]
Extra info.

Data​

NameTypeDescription
symbolstrSymbol representing the entity requested in the data. Here, it is the underlying symbol for the option.
contract_symbolstrContract symbol for the option.
eod_datedateDate for which the options chains are returned.
expirationdateExpiration date of the contract.
strikefloatStrike price of the contract.
option_typestrCall or Put.
open_interestintOpen interest on the contract.
volumeintThe trading volume.
theoretical_pricefloatTheoretical value of the option.
last_trade_pricefloatLast trade price of the option.
tickstrWhether the last tick was up or down in price.
bidfloatCurrent bid price for the option.
bid_sizeintBid size for the option.
askfloatCurrent ask price for the option.
ask_sizeintAsk size for the option.
markfloatThe mid-price between the latest bid and ask.
openfloatThe open price.
open_bidfloatThe opening bid price for the option that day.
open_askfloatThe opening ask price for the option that day.
highfloatThe high price.
bid_highfloatThe highest bid price for the option that day.
ask_highfloatThe highest ask price for the option that day.
lowfloatThe low price.
bid_lowfloatThe lowest bid price for the option that day.
ask_lowfloatThe lowest ask price for the option that day.
closefloatThe close price.
close_sizeintThe closing trade size for the option that day.
close_timedatetimeThe time of the closing price for the option that day.
close_bidfloatThe closing bid price for the option that day.
close_bid_sizeintThe closing bid size for the option that day.
close_bid_timedatetimeThe time of the bid closing price for the option that day.
close_askfloatThe closing ask price for the option that day.
close_ask_sizeintThe closing ask size for the option that day.
close_ask_timedatetimeThe time of the ask closing price for the option that day.
prev_closefloatThe previous close price.
changefloatThe change in the price of the option.
change_percentfloatChange, in normalizezd percentage points, of the option.
implied_volatilityfloatImplied volatility of the option.
deltafloatDelta of the option.
gammafloatGamma of the option.
thetafloatTheta of the option.
vegafloatVega of the option.
rhofloatRho of the option.