☰
Login
Signup
Home
›
Python client
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
13.8K
All Categories
0
Incidents
153
Node JS client
40
Go client
793
.Net API client
378
Kite Publisher
537
.Net / VBA / Excel (3rd party)
457
Algorithms and Strategies
993
Java client
1.1K
API clients
404
PHP client
4K
Python client
346
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.3K
General
In this Discussion
September 2023
pravinmaske25
July 2023
shivdas_b
Not able to read MIDCAP SELECT value in ktie ltp
pravinmaske25
July 2023
in
Python client
I am trying to read the midcap ltp value in
@app
.route("/midcapvalue")
def midcapvalue():
kite = connect()
midcap_index_value = kite.ltp("NSE:NIFTY MIDCAP SELECT")
print(midcap_index_value)
return json.dumps(midcap_index_value)
getting blank {} as a result can anyone point out my mistake
Tagged:
Python Client
shivdas_b
July 2023
edited July 2023
@pravinmaske25
,
try following
midcap_index_value = kite.ltp("
NSE:NIFTY MID SELECT
")
pravinmaske25
July 2023
Thanks
@shivdas_b
, it works.
what should i do get same for sensex
shivdas_b
July 2023
edited July 2023
sensex_index_value = kite.ltp("
BSE:SENSEX
")
bankex_index_value = kite.ltp("
BSE:BANKEX
")
pravinmaske25
July 2023
@shivdas_b
Thanks
pravinmaske25
September 2023
plz close this discussion
This discussion has been closed.
try following
midcap_index_value = kite.ltp("NSE:NIFTY MID SELECT")
what should i do get same for sensex
bankex_index_value = kite.ltp("BSE:BANKEX")