Skip to content

Python Module to get the NEPSE(Nepal Stock Exchange) price of the banks and organization of Nepal.

License

Notifications You must be signed in to change notification settings

sudeep611/nepserate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

  • Python module to get Nepse Price and other info.
  • Easy to install and Simple to use.
  • Thanks to nepalstock.com for the data.
  • Works on python 2.7+ and python 3
  • All the date are in AD

To install

$ python setup.py install

Or directly install via pip

$ sudo pip install nepserate

Dependencies

  • BeautifulSoup4
  • requests

Usage

>>> from nepserate import ScrapeRate
>>> rs = ScrapeRate()
>>> rs.getRate("ADBL") # 'ADBL' is the symbol of the orgranization for more reger to docs/SymbolList.rst
{'high': u'Rs. 514', 'previous_close': u'Rs. 506', 'percent_change': u'-0.20', 'net_change': u'Rs.-1', 'last_traded_date': '2014-10-22', 'ADBL': 'Agricultural Development Bank Ltd', 'last_traded_price': '505', 'low': u'Rs. 495'}

Also you can request to the data of previous date

>>> rs.getRate("ADBL", "2013-12-10")
{'previous_close': u'396', 'amount': u'11,496,761', 'min_price': u'391', 'total_share': u'28,690', 'date': '2013-12-10', 'number_of_transaction': u'192', 'closing_price': u'400', 'difference_rs': u'4', 'ADBL': 'Agricultural Development Bank Ltd', 'max_price': u'405'}

Reference

Problem

Tweet me [@acsudeep](http://twitter.com/acsudeep)

About

Python Module to get the NEPSE(Nepal Stock Exchange) price of the banks and organization of Nepal.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages