☰
Login
Signup
Home
›
Market data (WebSockets)
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Activity
Categories
15.3K
All Categories
0
Incidents
186
Node JS client
52
Go client
870
.Net API client
411
Kite Publisher
557
.Net / VBA / Excel (3rd party)
512
Algorithms and Strategies
1.1K
Java client
1.3K
API clients
410
PHP client
4.4K
Python client
370
Mobile and Desktop apps
1.5K
Market data (WebSockets)
3.7K
General
In this Discussion
November 2016
ahsan
November 2016
sujith
Instrument Token id
ahsan
November 2016
in
Market data (WebSockets)
Hi,
How can I get instrument token for stocks and indexes ?
I want to use it in the following function
def on_connect(ws):
instrument_token = ??????
ws.subscribe([instrument_token])
ws.set_mode(ws.MODE_FULL, [instrument_token])
Thanks
sujith
November 2016
Checkout documentation
https://kite.trade//docs/pykiteconnect/#kiteconnect.KiteConnect.instruments
ahsan
November 2016
Thanks, It is working as
list1 = kite.instruments()
pprint(list1)
This discussion has been closed.
list1 = kite.instruments()
pprint(list1)