how to get CE_IV and PE_IV please suggest python code for it.
Thank you
Hi @raj_kumar ,
Welcome to madefortrade,
You can use the below code for getting the Options IV Data.
Option Chain
dhan.option_chain(
under_security_id=13, # Nifty
under_exchange_segment=“IDX_I”,
expiry=“2025-09-16”
)
To get more python sample codes, please refer here - GitHub - dhan-oss/DhanHQ-py: The official Python client for communicating with the Dhan API.