next_expiry
Retrieve the next upcoming F&O expiry date for an Indian stock or index, including weekly index and monthly contracts, to determine time-to-expiry for Greeks calculations and strategy timing.
Instructions
Get the next upcoming F&O expiry date for an Indian stock or index. Supports both weekly (index) and monthly expiries. Use to determine time-to-expiry for Greeks calculations or strategy timing.
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": {
"symbol": "<symbol>"
},
"name": "next_expiry"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | NSE F&O symbol, e.g. NIFTY, BANKNIFTY, RELIANCE | |
| weekly | No | If true, get weekly expiry (only indices have weekly) |