get_option_chain
Retrieve option contracts for a stock ticker. Optionally specify expiration date for targeted data.
Instructions
Retrieve the option contract chain for a given ticker and expiration date.
Args: ticker (str): The symbol of the security. expiration (date | None, optional): The expiration date. If None, uses the nearest expiration.
Returns: OptionContractChain: The option contract chain data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ticker | Yes | ||
| expiration | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| calls | No | Call option contracts. | |
| puts | No | Put option contracts. | |
| underlying | No | Underlying asset information. |