Websockets : Nifty vs Sensex data

Abhishek_G
Hi All,

I am using websockets to get sensex and Nifty data and store it in a DB.
But I also do some processing before pushing them in the DB.
Each time, I receive ticks, it takes about 0.5 sec to complete all processing and push the data in the DB.

Now, for Nifty, when i complete the processing, I get the latest tick, but it seems for Sensex all the ticks are queued and when i finish processing a tick, I dont get the latest tick, in fact, I get some old tick.

For an example, lets say i do this for a min, and after a min for processing ticks, I might get the tick with a lag of 30 seconds (60*0.5).

I could do some handling of it but want to understand why is it only for Sensex and not nifty ?
Tagged:
  • sujith
    You may refer to the pykiteconnect FAQs here.
    You shouldn't block the thread that is receiving the ticks.
Sign In or Register to comment.