Design pattern for receiving and storing the ticks

conquistadorjd
Hello,

I have been playing with python kiteconnect API since couple of days.

Here are my learnings:
Phase#1 I started with sample code in github page and I was doing insert operation in on_ticks. Read somewhere on the forum that this is blocking flow of ticks so tried with new approach with threading.
Phase#2 Implemented python threading to process and insert ticks in db but still I could see many missing ticks
Phase#3 Implemented websocket using Celery and I found that I was able to get more ticks by using Celery instead of using python Threading.

I wanted to know if anyone else also has observed it?

Is there any alternative method/ tools other than Celery that can provides more accurate ticks?
Sign In or Register to comment.