Skip to content

cyberomin/NSEFinance-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NSEFinance-Python

Python Library for NSEFinance

from nsefinance import NSEFinance
stocks = NSEFinance()

#Available keys :
#['high', 'symbol', 'value', 'deals', 'date','low','units','close','open','change']

#Get closing prices for all the symbols for the trading day.
result = stocks.get_daily_list()
for i in range(len(result)):
	print result[i]['close'] 

#Get the closing price for the last 5 trading day for a symbol
result = stocks.get_by_symbol("OANDO")
for i in range(len(result)):
	print result[i]['close']

#Get the closing price for a particular symbol on a particular day
symbol = "OANDO"
result = stocks.get_by_symbol(symbol,"2014-02-06")
print result[symbol]['close']

Full documentation of for the api is available at http://nsefinance.com/docs

About

Python Library for NSEFinance

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages