Skip to main content

Option Lookup

  • Last updated
  • View as Markdown

Generate a properly formatted OCC option symbol based on the user's human-readable description of an option. This endpoint converts text such as "AAPL 12/17/27 $250 Call" to OCC option symbol format: AAPL271217C00250000. The user input must be URL-encoded.

Endpoint​

https://api.marketdata.app/v1/options/lookup/{userInput}/

Method​

GET

Request Example​

Response Example​

{
"s": "ok",
"optionSymbol": "AAPL271217C00250000"
}

Request Parameters​

  • userInput string

    The human-readable string input that contains (1) stock symbol (2) strike (3) expiration date (4) option side (i.e. put or call). This endpoint will translate the user's input into a valid OCC option symbol.

Response Attributes​

  • s string

    Status will always be ok when the OCC option symbol is successfully generated.

  • optionSymbol string

    The generated OCC option symbol based on the user's input.

Notes​

  • This endpoint will return an error if the option symbol that would be formed by the user's input does not exist.

Usage Information​

Data Availability​

This endpoint provides option symbol lookup functionality. This endpoint does not require any exchange entitlements and is available to all users.

User TypeExchange EntitlementData Type
All UsersNot RequiredUtility Data

Pricing​

The cost of using the lookup API endpoint is 1 credit per API call.

Data TypeCost BasisCredits Required per Unit
Lookup DataPer API call1 credit