Not able to read MIDCAP SELECT value in ktie ltp

pravinmaske25
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:
This discussion has been closed.