Skip to main content

Unofficial Python SDK and CLI for the Nepal Stock Exchange (NEPSE)

Project description

nepse-sdk

Unofficial Python SDK and CLI for the Nepal Stock Exchange (NEPSE).

Installation

pip install nepse-sdk

SDK Usage

from nepse import NepseClient

with NepseClient() as client:
    for item in client.market_summary():
        print(item.detail, f"{item.value:,.2f}")

    detail = client.security_detail("ADBL")
    print(detail.info.symbol, detail.trade.last_traded_price)

    for record in client.dividends("ADBL"):
        print(record.fiscal_year_nepali, f"Cash: {record.cash_dividend}%")

All methods return fully typed dataclasses — no raw dicts.

CLI Commands

nepse market-summary           # market turnover, traded shares, transactions, capitalization
nepse top-gainers              # top gaining stocks (use -a for all)
nepse top-losers               # top losing stocks (use -a for all)
nepse securities               # list all non-delisted securities
nepse security ADBL            # detail view for a security by symbol
nepse dividends ADBL           # dividend history for a security

Disclaimer

This is an unofficial tool and is not affiliated with or endorsed by NEPSE (Nepal Stock Exchange) or Nepal Stock Exchange Ltd. Use at your own risk.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nepse_sdk-0.1.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nepse_sdk-0.1.0-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file nepse_sdk-0.1.0.tar.gz.

File metadata

  • Download URL: nepse_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.9

File hashes

Hashes for nepse_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7a751ef324452ad9f591a7ea13b88a5de9f5fb4a3d69d7dfdaf21984e5c64124
MD5 9abf9b5abef4e5d737f3b07202c93fb3
BLAKE2b-256 8657b7fdff02f4fd7d2d4c523fa03c38afa244c6518f0c9f2d42408fdfcde308

See more details on using hashes here.

File details

Details for the file nepse_sdk-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: nepse_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.9

File hashes

Hashes for nepse_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 65eea1f182f3c1bca291e38784f204dd2a2985af98d51ac688d04b4445044a92
MD5 376d2a2af11c84067177cbce1e1a9645
BLAKE2b-256 f1dd9b9d5a455b471744fb5cee800365d1f740b66470e6765799605764cb1971

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page