This is boiler plate code in python to get Option Chain from NSE official website. Data is shown on cconsole in tabular format.
Before running script
- π Install
requests
library - π Stop VPN if you have one, IPs from other countries are blocked (I guess)
π Todo:
- π Exception handling (if request is timed out, script thorws error on console)
- π JSON output
- π Restructure code and comment whereever possible
πΎ Credit:
- π VarunS2002 for his repo Python-NSE-Option-Chain-Analyzer.