It looks like you're new here. If you want to get involved, click one of these buttons!
inst_token = [3050241]
def on_connect(ws, response):
ws.subscribe(inst_token)
ws.set_mode(ws.MODE_QUOTE, inst_token)
kws.on_ticks = on_ticks
kws.on_connect = on_connect
kws.connect()
Thanks and Regards,
You might unsubscribe token in real-time. Go through pykiteconnect FAQ for example code.
@rakeshr
Can you please guide where I'm wrong, as the data is still coming.. Regards,
Ritesh Jain
ws
class.Eg.
ws.unsubscribe(token_list)
You can go through this thread. We have explained, how to subsribe/unsubscribe token in real time.
It worked fine...
One more query, I know this is not the platform to get coding support, but would be a great help if you can guide....
In Python after executing all logic, I am getting output saved in variable named "SP"
Say the Value in SP = BANKNIFTY20JUN21800PE, how can I pull ticker data for this saved in SP..
Tried this, but not working
tickerlist = [SP]
Regards,
Ritesh Jain
Yes I have code that convert it to instrument token, I have tested the complete script and the same is perfectly fine...
What I need your guidance is i don't want to manually enter name, and need to pull from SP
where SP = BANKNIFTY20JUN21800PE instead of this, want something like Thanks and Regards,
Ritesh
You can please close this thread.