Re: How to fetch nifty spot data using ltpData()
-
Re: How to fetch banknifty spot data using ltpData()
def get_ltp(self, ticker, exchange="NSE", fake=False): symbol = self.trading_symbol_form(ticker) params = { "exchange": exchange, "tradingsymbol": symbol, "symboltoken": angel_inst.token_lookup(symbol, exchange) } # print(params) response = self.smart_obj.ltpData(params['exchange'], params['tradingsymbol'], params['symboltoken']) return response['data']['ltp']
-
@piyushpk Try using the symboltoken as 26009 and tradingsymbol as BANKNIFTY. Except Nifty and BankNIFTY you cannot get the ltp from getLTP endpoint. Please do tell me if you are able to get other than these two.