I am encountering issue while getting last trade price using kite.ltp function for banknifty options. The function was working properly until last week. Please let me know if there is any change in the format or any mistake in my code.
This is an January NFO contract, and was expired on 2024-01-25. So, it's returning an empty slice. You can check the full instrument list for the current-day trading symbol.
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:443
DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "GET /quote/ohlc?i=NSE%3ANIFTY+BANK HTTP/1.1" 200 None
DEBUG:root:Getting last price for NFO:BANKNIFTY24JAN45900CE
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:443
DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "GET /quote/ltp?i=NFO%3ABANKNIFTY24JAN45900CE HTTP/1.1" 200 30
{}
WARNING:root:Instrument NFO:BANKNIFTY24JAN45900CE not found in ltp response.
2024-01-25
. So, it's returning an empty slice. You can check the full instrument list for the current-day trading symbol.