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
Built Distribution
File details
Details for the file nepseutils-0.2.0.tar.gz
.
File metadata
- Download URL: nepseutils-0.2.0.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.6 CPython/3.9.6 Linux/5.13.9-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08288447b5d7dac944869199c5a1e627b6cee828bcd5e34e98fc9c03dab18588 |
|
MD5 | bc60f7cef7df1cb0dacdc0e0a9a19a7e |
|
BLAKE2b-256 | dfcd503d211545ef3aa7f6a0ebb95efe6c0c1154c0a5a9a8fc9f691b6652dcff |
File details
Details for the file nepseutils-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: nepseutils-0.2.0-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.6 CPython/3.9.6 Linux/5.13.9-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c70b8f4c0db020393976497df72ed38fde62ad9b7401b0fdebb2099427bd8e1 |
|
MD5 | d790ee2732ea6639768404ca79278ae3 |
|
BLAKE2b-256 | c4835f29cfc4d89b6ecb4bd81524bf538aa15fb3eaaa42906510afb22b606bcf |