☰
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.2K
All Categories
0
Incidents
126
Node JS client
36
Go client
765
.Net API client
360
Kite Publisher
532
.Net / VBA / Excel (3rd party)
433
Algorithms and Strategies
964
Java client
1K
API clients
400
PHP client
3.8K
Python client
331
Mobile and Desktop apps
1.3K
Market data (WebSockets)
3.1K
General
In this Discussion
December 2018
ronstrader
December 2018
rakeshr
December 2018
krtrader
Will it be ok if we run strategies, placing orders and others, inside on_ticks routine?
ronstrader
December 2018
in
Market data (WebSockets)
Hi,
I want to run some strategies based on the data received by on_ticks handler. The code inside on_ticks handler might be huge. Will it be a good practice to place all codes of my strategies, placing orders, inside on_ticks handler?
krtrader
December 2018
I keep Kite API calls inside on_ticks handler but all other nw calls are done by child threads.
rakeshr
December 2018
@ronstrader
You need to pass on the tick value to another thread from on_tick handler for any calculation, so main thread is not blocked.
ronstrader
December 2018
Thanks krtrader and rakeshr. You help me get a direction.
This discussion has been closed.
You need to pass on the tick value to another thread from on_tick handler for any calculation, so main thread is not blocked.