data = {"symbol":"NSE:SBIN-EQ","ohlcv_flag":"1"} d=fyers.depth(data) ???

HOW TO GET LTP from the above code with python in fyers api

Hi Munibabu,

To get LTP you can use below code

response = fyers.depth({“symbol”:“NSE:SBIN-EQ”,“ohlcv_flag”:“1”})

print(response[‘d’][‘NSE:SBIN-EQ’][‘ltp’])

Hi Munibabu,

To get LTP you can use below code

response = fyers.depth({“symbol”:“NSE:SBIN-EQ”,“ohlcv_flag”:“1”})

print(response[‘d’][‘NSE:SBIN-EQ’][‘ltp’])

thank you