Option Chain
Option Chain
Endpoint URL
Local Host : POST http://127.0.0.1:5000/api/v1/optionchain
Ngrok Domain : POST https://<your-ngrok-domain>.ngrok-free.app/api/v1/optionchain
Custom Domain: POST https://<your-custom-domain>/api/v1/optionchainSample API Request (Full Chain)
{
"apikey": "your_api_key",
"underlying": "NIFTY",
"exchange": "NSE_INDEX",
"expiry_date": "30DEC25"
}Sample API Response (Full Chain)
Sample API Request (10 Strikes Around ATM)
Sample API Request (Future as Underlying)
Sample API Request (Stock Options)
Parameter Description
Parameter
Description
Mandatory/Optional
Default Value
Response Parameters
Parameter
Description
Type
Chain Item Structure
Field
Description
Type
CE/PE Data Structure
Field
Description
Type
Strike Labels
Strike Position
CE Label
PE Label
Description
Exchange Mapping
Underlying Exchange
Options Exchange
Examples
Error Response
Common Error Messages
Error Message
Cause
Solution
Use Cases
1. Fetch Full Option Chain for Analysis
2. Fetch 10 Strikes Around ATM
3. Find ATM Strike and Premium
4. Calculate Put-Call Ratio (PCR)
5. Identify Max Pain
Index Reference
Index
Exchange
Strike Interval
Lot Size
Features
Rate Limiting
Best Practices
Integration Examples
Python Example
JavaScript Example
Last updated