Delay in Retrieving LTP Using Python Kite API

dhurkesh
dhurkesh edited January 2023 in Python client
Hi all,
I am trying to retrieve the Last Traded Price (LTP) of NFO:BANKNIFTY2311942200CE and NFO: BANKNIFTY2311942200PE using the python kite library's kite.ltp() function every second. However, I am experiencing an issue where it takes more than one second to retrieve the data, on average every 2 minutes. I am not sure why this is happening and would like to understand the reason for this behavior. I have attached a screenshot of my code. I am using python APScheduler for scheduling.
This discussion has been closed.