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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ticker": "<ticker>"
},
"name": "get_option_chain"
}
}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. |