Hi,
I’m developing some code to check a strategy, and for this I need the LTP (Last Traded Price) and OI (Open Interest). I’m able to fetch the OI, but I’m not able to get the LTP. Can anyone please help?
Output -
Fetching option chain for expiry: 2025-07-31…
Fetching live LTPs for 208 option instruments…
Strike Call LTP Call OI | Put LTP Put OI
24750.0 - 428025.0 | - 1623675.0
24800.0 - 3411075.0 | - 5489400.0
24850.0 - 3130200.0 | - 2715975.0
24900.0 - 6852900.0 | - 4011975.0
24950.0 - 3657075.0 | - 1206675.0
25000.0 - 15042975.0 | - 6596775.0
25050.0 - 3260475.0 | - 778125.0
25100.0 - 9456150.0 | - 2966250.0
25150.0 - 3801375.0 | - 631050.0
25200.0 - 12755025.0 | - 3617025.0
25250.0 - 3148275.0 | - 363525.0
25300.0 - 7236075.0 | - 1083825.0
25350.0 - 2230875.0 | - 134850.0
25400.0 - 6978150.0 | - 968250.0
25450.0 - 2740425.0 | - 149850.0
25500.0 - 10880550.0 | - 2258250.0
25550.0 - 2028600.0 | - 95700.0
25600.0 - 5038200.0 | - 723600.0
25650.0 - 1561800.0 | - 72825.0
25700.0 - 6446250.0 | - 523275.0
25750.0 - 2839500.0 | - 44250.0
25800.0 - 6350625.0 | - 228975.0
25850.0 - 1468425.0 | - 92625.0