But the real high low is changing.... On Zerodha dashboard I'm getting correct values but by KiteConnect Python API the same values of High Low repeat throughout the day... any suggestions?
Only start of the day I get new High Low values. They do not change by one point throughout the day
The OHLC API gives you the day's OHLC but the candle data will give you OHLC for the minute or any other specified interval. Can you let us know what are you looking for?
Hi Sujith, my earlier comment somehow disappeared so I'm gonna repost.
I need to get live High Low data feed throughout the day. For that purpose, I am using the following code (which worked for me last month, as in I was getting live changes in High/Low every second), taken from official Python API documentation for Websocket at https://github.com/zerodhatech/pykiteconnect/
Kindly let me know what I might be doing wrong, thank you.
from kiteconnect import KiteTicker
# Initialise kws = KiteTicker('xxxx', 'xxxx')
def on_ticks(ws, ticks): # Callback to receive ticks. logging.debug("Ticks: {}".format(ticks))
def on_connect(ws, response): # Callback on successful connect. # Subscribe to a list of instrument_tokens ws.subscribe([738561]) ws.set_mode(ws.MODE_FULL, [738561])
def on_close(ws, code, reason): # On connection close stop the main loop # Reconnection will not happen after executing `ws.stop()` ws.stop()
I am using the following code (which worked for me last month, as in I was getting live changes in High/Low every second), taken from official Python API
This example code is working perfectly fine. Can you paste your complete Websocket code here?
@rakeshr I have run the above code on MCX: CRUDEOIL20OCTFUT. As I see on Zerodha dashboard, the High and Low are changing constantly. But from the Websocket API I am getting the same OHLC values constantly.
Output of the above code for MCX:CRUDEOIL20OCTFUT (Note that High Low is coming the same but volume is changing )
As I see on Zerodha dashboard, the High and Low are changing constantly.
What values are you comparing with the kite web? Market depth, chart candle. Can you paste a screen-shot of specific value from the Kite web?
(Note that High Low is coming the same but volume is changing )
As stated by @sujith above, these High and Low values on Websocket are for the day, so it would only change when these values are changed throughout the day.
Only start of the day I get new High Low values. They do not change by one point throughout the day
I need to get live High Low data feed throughout the day. For that purpose, I am using the following code (which worked for me last month, as in I was getting live changes in High/Low every second), taken from official Python API documentation for Websocket at https://github.com/zerodhatech/pykiteconnect/
Kindly let me know what I might be doing wrong, thank you.
Can you paste your complete Websocket code here?
I have run the above code on MCX: CRUDEOIL20OCTFUT.
As I see on Zerodha dashboard, the High and Low are changing constantly. But from the Websocket API I am getting the same OHLC values constantly.
Output of the above code for
MCX:CRUDEOIL20OCTFUT
(Note that High Low is coming the same but volume is changing )
Can you paste a screen-shot of specific value from the Kite web? As stated by @sujith above, these High and Low values on Websocket are for the day, so it would only change when these values are changed throughout the day.
Rakesh I am seeing the attached 1-minute updated candlestick chart on Zerodha dashboard
Now that you mentioned depth, looking at the API logs, these candlesticks seem to be correlated with the Depth rather than High/Low of OHLC.
Thanks for you help, I need to follow up with my senior on this
You can check out how to build candles here.
thanks heaps
krish
We only have data in this format. You can check out webocket documentation and historical data documentation.
If you are looking for live market data candles then we suggest generating candles at your end using the websocket data.