OnTick event is a endpoint of kiteconnect library. for handing over the data to the user. you dont call it perse but do something inside it.
pass data to a non blocking buffer
for storage
for flushing when you want to use it later or immediatly
pass data to another thread
for storage
for flushing when you want to use it later or immediatly
all of this is for use outside of OnTick. That is like in a relay race you are waiting for a runner to pass you a batton to run along with it. only difference is the runner that hands you the batton stops and you have to run further. But in our case we have to take the Tick data ( batton ) run ourselves and let the kiteconnect keep running without blocking it.
Sorry if my answer appears absurd. but you can place websocket call
in C# like this.
you dont have to call websocket as in javascript example you quote.
Kiteconnect lib handles that for you.
How it works.
websocket message is processed here , and if
Ticks are captured from that message. they are sent to users
from here. which is how OnTick works.
Thanks
Regards
, the program does not have error and just terminate clean with 0. dont know why its not capturing ticks.
Actually, I would like to display data into grid from WebSocket. I am using window application using C#.
I have visited WebSocket live streaming data and implement successfully but can't understand how to get data from "onTike " event or call it.
you dont call it perse but do something inside it.
to run along with it. only difference is the runner that hands you the batton stops and you have to run further. But in our case we have to take the Tick data ( batton ) run ourselves and let the kiteconnect keep running without blocking it.
Above mentioned tasks are usually acomplished via
it is from there you use the data for your grid etc. not while in the OnTick method.
best would be to write your own datastructure for such needs. which is specific for you.
Thanks
Regards