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.0.tar.gz
(9.4 kB
view hashes)
Built Distribution
Close
Hashes for nepseutils-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c70b8f4c0db020393976497df72ed38fde62ad9b7401b0fdebb2099427bd8e1 |
|
MD5 | d790ee2732ea6639768404ca79278ae3 |
|
BLAKE2b-256 | c4835f29cfc4d89b6ecb4bd81524bf538aa15fb3eaaa42906510afb22b606bcf |