It looks like you're new here. If you want to get involved, click one of these buttons!
.Net API client
.Net / VBA / Excel (3rd party)
Algorithms and Strategies
Mobile and Desktop apps
Market data (WebSockets)
In this Discussion
Streaming data output shows only one iteration data and does not stream
I run the below code in pycharm and anaconda and both ways I just get a single iteration output, please help me as to what I'm I missing on.
from kiteconnect import KiteConnect
from kiteconnect import WebSocket
api_key = "XXX"
public_token = 'XXX'
user_id = "XXX"
tokens = (14607362, 533155)
kws = WebSocket(api_key, public_token, user_id)
# import sys
kws.on_tick = on_tick
kws.on_connect = on_connect
please address my query.
WebSocket streaming data
For second scrip JUBLFOOD, you are entering exchange token instead of instrument token.Change second token parameter from 533155 to 4632577.You can download entire instrument list dump(go through
) and check
thank you for your response, I changed it.. and I still got just one iteration of data and the prompt doesn't move any further.
I have attached the screenshot of it, the prompt just stays there forever with no new data being updated.
Markets are closed on weekends. You will get only one cached tick for each instrument. Try tomorrow after the market opens.
- I tried now, it worked
This discussion has been closed.