I am using websockets to stream live data . But I need to get only after 1 minute . It is giving the data every second . I have to make some changes to the code . Please Help
# Callback for successful connection. def on_connect(ws): # Subscribe to a list of instrument_tokens (RELIANCE and ACC here). ws.subscribe([738561]) ws.set_mode(ws.MODE_FULL, [738561])
If you want to use quotes only once a minute then I would suggest use getQuote.
Or where I have to make changes ?
Check out response structure here.
https://kite.trade/forum/discussion/429/what-is-the-best-way-of-fetching-1-minute-nifty-future-ohlc#latest