How to fetch the live Nifty 50 options chain with Delta (and if possible other Greeks) . * Identify the correct security_ids for the strikes for 25 and 40 Delta targets and Save these live, correct IDs** to a strikes.json file…Appreciate if someone can share any specific python script sample.
Hey @Unb ,
To fetch the option chain data, please refer to the request structure provided below. However ,If you need to make any modifications based on delta, it is possible but will need to be implemented from your end.
Option Chain
dhan.option_chain(
under_security_id=13, # Nifty
under_excha-nge_segment=“IDX_I”,
expiry=“2025-08-21”.
You can also refer our github library here : GitHub - dhan-oss/DhanHQ-py: The official Python client for communicating with the Dhan API.
Thanks…