I am trying to stream live NFO tick data, but it shows nothing,not even the error. Because previously with same code I can able to get live stream data
my python is :-
from kiteconnect import WebSocket
api_key='your_api_key' public_token='your_public_token' client_id='your_id' #here i have added nifty 50 indices and then MCX GOLD contract tokens=[53372167,256265]
pa=WebSocket(api_key,public_token,client_id)
def on_tick(tick,wbskt): print(tick)
def on_connect(wbskt): wbskt.subscribe(tokens) #set the mode as you wish for market watch wbskt.set_mode(wbskt.MODE_FULL,tokens)
You can check out the example here.