Get ltp of option of nifty 50

I want to get ltp of option of nifty 50 for current week expiry into the runtime variable. The Strike will be dynamic as in 2 OTM Strike. For eg, Spot is 25459, I want to get ltp of 2 strikes i.e. 25350 PE and 25550 CE.