unable to get LTP and option-chain data . kindly provide the code
Hey @Debakshi ,
Welcome to madefortrade.
In order to fetch the option chain and ltp data below is the endpoint and the request structure.
Endpoint : curl --location ‘https://api.dhan.co/v2/optionchain’ \
Request structure: {
“UnderlyingScrip”:13,
“UnderlyingSeg”:“IDX_I”,
“Expiry”:“2025-12-16”
}
You may also refer our Api documentation Option Chain - DhanHQ Ver 2.0 / API Document