Collection of scripts to interact with NEPSE related websites!
Project description
NEPSE Utils
Collection of scripts to interact with NEPSE related sites.
Installation
pip install nepseutils
Class: MeroShare
Constructor __init__()
name
Your namedpid
Depository Participantsusername
MeroShare Usernamepassword
MeroShare Passwordaccount
Bank Account Numberdmat
DMAT Account Numbercrn
CRN Numberpin
Transaction PINcapital_id
(Optional)
_update_capital_list()
Updates list of capitals and saves a local copy.
login()
Logs into the account.
logout()
Logs out of the account
get_applicable_issues()
Gets the list of currently open applicable issues.
get_my_details()
Gets details of currently logged in acount
get_application_status(share_id: str)
Gets the status of applied application.
share_id
ID of applied issue
apply(share_id: str, quantity: str)
Applies for issues.
share_id
ID of issue to applyquantity
Quantity to apply
Basic Usage:
from nepseutils import MeroShare
if __name__=="__main__":
login_info = {
"name": "Jane Doe",
"username": "01111111",
"password": "janedoe1",
"dpid": "13700",
"dmat": "1301370001233333",
"crn": "01-R00122222",
"pin": "1234",
"account": "0075750611112222",
}
ms = MeroShare(**login_info)
ms.login()
ms.apply(share_id="342",quantity="10")
ms.logout()
FAQ
Why do I need to provide inputs other than Username, Password, and DPID?
I haven't implemented the feature to extract client details from meroshare so you need to provide it. But it will be implemented in future releases.
Known Issues
These are known issues that I plan to fix in future versions:
- Data types of some arguments like quantity and price is string
- Retrying failed attempts is not implemented for some functions
- Remove unnecessary inputs
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
nepseutils-0.2.1.tar.gz
(9.4 kB
view hashes)
Built Distribution
Close
Hashes for nepseutils-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 027daf91a04f4f89d2adc1c13c6de80e5564d44f10712a622594a2cc7665d39d |
|
MD5 | 779b56b273573695dc8481c1c9e08083 |
|
BLAKE2b-256 | f5ccf4224d335abdfa3ccaba65ab66ba46c2257f5b8c06e93847aa4d89c4b827 |