Python Wrapper for Newweb Nepse
Project description
NEPSE
The Last Nepse Module You'll Ever Need
Nepse is a realtime nepse scraper which communicates with newweb.nepalstock.com.np, to fetch and return required stats.
Features
- Get Brokers
- Get Realtime Prices
- Make Charts and Many More
Installation
Nepse requires python3 and pip to install and run.
pip install nepse
Plugins
Nepse is currently extended with the following plugins. Instructions on how to use them in your own application are linked below.
Plugin | LINK |
---|---|
Matplotlib | https://matplotlib.org/ |
Requests | https://pypi.org/project/requests/ |
Pandas (For Next Update) | https://pandas.pydata.org/ |
Usage
from nepse import NEPSE
init = NEPSE()
#GET ALL REGISTERED BROKERS
brokers = init.brokers()
#GET ALL NEWS & ALERTS Published By NEPSE on Newweb
news= init.alerts()
#Check IF MARKET IS OPEN
isOpen = init.isOpen() #Returns TRUE IF market is open
#Check live price of specific scrip or get all prices
allPrices = init.todayPrice()
cghPrice = init.todayPrice('CGH') #returns information for CGH
#CHARTS
chartHistory = init.getChartHistory('CGH') #Get History Prices for CGH
chartHistoryButFiltered = init.getChartHistory('CGH',start_date='2021-03-04',end_date='2021-03-07')
makeChart= init.createChart('CGH',theme='dark',high=False,low=False)#returns abspath of chart saved
csv = init.saveCSV('CGH',start_date='2021-02-07')#filename,start_date and end_date are optional
indices = init.indices(sector='NEPSE Index',start_date='2021-03-04',end_date='2021-03-07')
floorsheets = init.floorsheets()
#CHECK IPO
result = init.checkIPO(scrip,boid)
{'success': False, 'message': 'Sorry, not alloted for the entered BOID. ', 'body': None}
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nepse-0.1.7.tar.gz
(6.5 kB
view details)
File details
Details for the file nepse-0.1.7.tar.gz
.
File metadata
- Download URL: nepse-0.1.7.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a728c4c2242dec92a5f2c0efe36499bc8c5650c5ca9b369aaa40428fad87d78 |
|
MD5 | bad6f2314c170732c4ec872a822f6e5a |
|
BLAKE2b-256 | d6583d4f0d33603d3197fb42d52b1f7e255a1cdf08ee632045db58257ab2c180 |