https://kite.trade/docs/pykiteconnect/#kiteconnect.WebSocket
I dont see much detailed documentation for tick structure, but on the other hand, all fields are almost self explanatory.
I think ohlc in tick data is the days open high low and close.
To construct 1min data using tick data, you would need to add a timestamp to the tick received and create 1 min ohlc. If you are using pandas.DataFrame, then you can using df.resample()…
@sujith:
@Kailash:
As mentioned by Kailash:
Kailash:
Ticks are sent based on change in states.
LTP mode only sends a tick when the LTP has changed. Values in the market depth can change often without the LTP changing. Similarly, when any of the v…
Nifty 50: Instrument token is 256265
You can manually get it using kite. Just login and open the chart of the script you want to get token,
chart will open in the same window, click on "popout" button present near the timeframe drop down menu. Go t…
In python client:
You can use kite.historical(script, from_date='2017-03-01', to_date='2017-03-01', interval='5minute')
and then just take the first row and extract its high and low.
Although kite.historical is delayed by almost 50 seconds, so firs…
I dont think so.
If you want to access some variables inside on_tick, I think making a class wrapping kws.on_tick would solve your problem, at least that's what I did