Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Explore NSE Stock API using Python

Explore Stock Api using Python



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

Share the post

Explore NSE Stock API using Python

×

Subscribe to Learning Help You To Achieve Your Biggest Goals

Get updates delivered right to your inbox!

Thank you for your subscription

×