We need to install Python setup first. We are using nsetools which uses www.nseindia.com as a data source.
Configure Python in Eclipse using the link:
Get Live quote in JSON:link
Case 1: List of Traded Stock Codes & Names
NSE1.py
from nsetools import Nse nse = Nse() print(nse) all_stock_codes = nse.get_stock_codes() from pprint import pprint pprint (all_stock_codes) |
Case 2: Top Losers & Gainers
NSE2.py
This post first appeared on Learning Help You To Achieve Your Biggest Goals, please read the originial post: here