how to get Nifty50 all equity tokens?
-
how to get Nifty50 all equity tokens list using this website "https://margincalculator.angelone.in/OpenAPI_File/files/OpenAPIScripMaster.json ". When i try to sort, there is no field available like Nifty50 or BankNifty? actually i want all the tokens of Nifty50 do not manually collect. Because its chenges time to time. #token
-
@tanmoydev
instrument_url = 'https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json'response = urllib.request.urlopen(instrument_url)
instrument_list = json.loads(response.read())instrument_list = [i for i in instrument_list if i['name'] == "NIFTY"]