☰
Login
Signup
Home
›
Market data (WebSockets)
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Activity
Categories
13.8K
All Categories
0
Incidents
154
Node JS client
40
Go client
793
.Net API client
378
Kite Publisher
537
.Net / VBA / Excel (3rd party)
457
Algorithms and Strategies
993
Java client
1.1K
API clients
404
PHP client
4K
Python client
346
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.3K
General
In this Discussion
September 2017
sujith
September 2017
soumyadeep
Heartbeat on but no data received between 12:06 to 12:19
soumyadeep
August 2017
in
Market data (WebSockets)
I added on_data callback and I found that I received heartbeats but no data between the said times. Can you please check what happened? Thanks
soumyadeep
August 2017
Today also happened multiple times.
sujith
August 2017
@soumyadeep
,
Are you sure you are doing IO operations and calculations on worker thread?
soumyadeep
August 2017
worker thread?
sujith
August 2017
@soumyadeep
,
Don't block the main thread on which you receive the ticks. Once you get tick data, send data to another thread and do your calculations and IO operations like writing to the database in the new thread.
soumyadeep
September 2017
Would you please provide a basic example scrip to do the same?
sujith
September 2017
@soumyadeep
,
Check out ticker usage example
here
. You need to create a new thread and do your operations inside onTick method.
Sign In
or
Register
to comment.
Are you sure you are doing IO operations and calculations on worker thread?
Don't block the main thread on which you receive the ticks. Once you get tick data, send data to another thread and do your calculations and IO operations like writing to the database in the new thread.
Check out ticker usage example here. You need to create a new thread and do your operations inside onTick method.