Closed Shubhamtradehull closed 5 months ago
is your token return properly from find_token function? I will do something like this.
script_to_scan = 'NIFTY INDEX' res_pe = api.searchscrip("NSE", searchtext=script_to_scan) token = res_pe['values'][0]['token'] exch = 'NSE' script_quate = api.get_quotes(exch,token) script_quate
Greetings from Shoonya!
As we checked, it was working fine. Please check your input parameters or refer to the below-attached input and output of the code:
script_to_scan = 'NIFTY INDEX' #future_script_to_scan(watchlist) token = find_token(script_to_scan) exch = 'NSE' script_quate = api.get_quotes(exch,token)