Skip to main content

Option Lookup

The Option Lookup gRPC service provides options tickers/expirations for the given underlying ticker. This API requires that the customer have an active Option Lookup subscription and a JWT to be included with the request.

tip

For an introduction to gRPC, visit: https://grpc.io/docs/what-is-grpc/introduction/

🔗URLs​

option-lookup.quodd.com

🔒Authentication​

Obtain a JWT token and add it to MetaData as follows:

{
"Authorization": "Bearer YOUR_TOKEN_HERE"
}

💻Proto File​

Download proto file.

📄Optionlookup.proto​

OptionLookupService​

Method NameRequest TypeResponse TypeDescription
GetOptionTickersGetOptionTickersRequestGetOptionTickersResponseReturns options tickers for underlying ticker.
GetOptionExpirationsGetOptionExpirationsRequestGetOptionExpirationsResponseReturns options expiration dates for underlying ticker.

GetOptionTickersRequest​

FieldTypeDescription
underlying_tickerstringUnderlying ticker.
option_typestring(optional) Type of option contract.
expiration_datestring(optional) Expiration date of option contract.

GetOptionTickersResponse​

FieldTypeLabelDescription
optionsOptionrepeatedOption tickers for underlying ticker.
errorstringDetails of error.

Option​

FieldTypeDescription
tickerstringThe option ticker.
underlying_tickerstringUnderlying ticker.
expiration_datestringExpiration date of option contract.
option_typestringType of option contract.
strike_pricedoubleStrike price of option contract.

GetOptionExpirationsRequest​

FieldTypeDescription
underlying_tickerstringUnderlying ticker.

GetOptionExpirationsResponse​

FieldTypeLabelDescription
expirationsstringrepeatedOption Expiration dates for underlying ticker.
errorstringDetails of the error.

🚀Quick start​

gRPCurl​

Command-line tool for interacting with gRPC servers

Example GetOptionTickers Request:

grpcurl -H 'authorization: Bearer TOKEN' -proto 'optionlookup.proto' -d '{ "underlying_ticker": "MSFT", "option_type": "C", "expiration_date":"2025-01-17" }' option-lookup.quodd.com:443 optionlookup.OptionLookupService/GetOptionTickers

Example GetOptionExpirations Request:

grpcurl -H 'authorization: Bearer TOKEN' -proto 'optionlookup.proto' -d '{ "underlying_ticker": "MSFT" }' option-lookup.quodd.dev:443 optionlookup.OptionLookupService/GetOptionExpirations