How to get ltp data of option chain
-
Hi @Moderator_2 , i am getting strike price , delta, gamma, theta using option greek api, but i want ltp data also, pls help me to get ltp data of option chain for each strike price.
-
@shubhavn said in How to get ltp data of option chain:
Hi @Moderator_2 , i am getting strike price , delta, gamma, theta using option greek api, but i want ltp data also, pls help me to get ltp data of option chain for each strike price.
-
hi @shubhavn
For any option call/put scrips, we can retrieve the LTP from Live Market API. Please find the required token on
"https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json"
And pass the token on Live market API to fetch LTP.
Ref:
https://smartapi.angelbroking.com/docs/MarketDataRegards,
SmartAPI team -
@Moderator_2 Thank you for your response, but market API doesn't provide strike price, i need strike price & ltp for each strike price. pls help me to get it.
-
hi @shubhavn
Strike price for any stocks can be fetched from instrument json file.
"https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json"
Ref:
{"token":"154976","symbol":"LT28MAR243120PE","name":"LT","expiry":"28MAR2024","strike":"312000.000000","lotsize":"300","instrumenttype":"OPTSTK","exch_seg":"NFO","tick_size":"5.000000"}Regards,
SmartAPI team -
@Moderator_2 Thank you for your response