☰
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
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.