Skip to main content

pypsx-toolkit

Free, programmatic market data and analytics for the Pakistan Stock Exchange (PSX), from pyPSX.

pyPSX is the API-first trading platform for PSX: market data, backtesting, paper and live trading over a REST and WebSocket API, a live feed, an AI Strategy Copilot, and a web terminal. This package is the free, public data and analytics library, the easiest way to pull PSX data programmatically in Python. No account and no API key are required.

What this package does

pypsx-toolkit gives anyone clean PSX data in Python, with no key:

  • 10 years of daily OHLCV and recent intraday data.
  • Company fundamentals, dividend history, and corporate announcements.
  • Index and sector constituents and breakdowns (KSE-100, KMI-30, KSE-30, and more).
  • A full market watch, top performers, and quotes.
  • A technical-analysis toolkit: moving averages, RSI, MACD, Bollinger Bands, correlation, and risk stats.

Returns clean pandas DataFrames. Built on a real API, not brittle HTML parsing.

Install

pip install pypsx-toolkit
import pypsx_toolkit as pt

df = pt.download("OGDC", period="10y")          # 10 years of daily bars
pt.get_company_fundamentals("OGDC")
pt.get_dividend_history("HBL")

Going further

For backtesting, a paper-trading sandbox, live real-money trading, and the live feed, use the pypsx SDK with a free key, or trade point-and-click in the web terminal at https://markets.pypsx.com.

About pyPSX

pyPSX is the developer platform and company for the Pakistan Stock Exchange. It is distinct from the PSX exchange itself. Proprietary license. Full documentation at https://docs.pypsx.com.

Download files

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

Source Distribution

pypsx_toolkit-3.1.1.tar.gz (24.7 kB view details)

Uploaded Source

Built Distributions

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

pypsx_toolkit-3.1.1-cp314-cp314-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.14Windows x86-64

pypsx_toolkit-3.1.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (13.0 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

pypsx_toolkit-3.1.1-cp313-cp313-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.13Windows x86-64

pypsx_toolkit-3.1.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (13.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

pypsx_toolkit-3.1.1-cp312-cp312-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.12Windows x86-64

pypsx_toolkit-3.1.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (13.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

pypsx_toolkit-3.1.1-cp311-cp311-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.11Windows x86-64

pypsx_toolkit-3.1.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (11.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

pypsx_toolkit-3.1.1-cp310-cp310-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.10Windows x86-64

pypsx_toolkit-3.1.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (11.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

File details

Details for the file pypsx_toolkit-3.1.1.tar.gz.

File metadata

  • Download URL: pypsx_toolkit-3.1.1.tar.gz
  • Upload date:
  • Size: 24.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.11.16

File hashes

Hashes for pypsx_toolkit-3.1.1.tar.gz
Algorithm Hash digest
SHA256 40e9b06fa0a3251b838d47e98e84c24b41e0ef6e8bc72c502dada8b0cbf77551
MD5 5b49dbb57cb3d40cf5e3b96055058ee5
BLAKE2b-256 0fe31b7e7212628310f8d6e3af5ff11d8a7fe3d3bbb1a47bf0cc9b6671d9265c

See more details on using hashes here.

File details

Details for the file pypsx_toolkit-3.1.1-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for pypsx_toolkit-3.1.1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 ec46b76116874e025e1cc7d61e3aef46c0086ff54543836206fb9f733d1e336b
MD5 6016e1cd68a475e2dcc3e13a66a55887
BLAKE2b-256 2f8dbd1c0e9b8a8c15d959b5c52d2e521cab665b0aa3c6f4c35b907f9c8632f9

See more details on using hashes here.

File details

Details for the file pypsx_toolkit-3.1.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pypsx_toolkit-3.1.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 84fa72b94762d38bdad5d1d8cc8d5f90961b8d56f57ffbf7b1bfee96d120830b
MD5 3c3f0fa67b4799317272bad0bc6562f4
BLAKE2b-256 796d0cc19e7d52e56c5cae9e46349272578ef7376eefb176160c27f798852ac1

See more details on using hashes here.

File details

Details for the file pypsx_toolkit-3.1.1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for pypsx_toolkit-3.1.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 1c049c25ad5e606924f0a1fa5268c5e0f9bc86c88f4d78ea958bc3a41777de32
MD5 68cce7ba15095f5084077fedceb65973
BLAKE2b-256 efb27574347dfb05f159138efe2087c4123c74e00a47309d53dc4583393f2dac

See more details on using hashes here.

File details

Details for the file pypsx_toolkit-3.1.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pypsx_toolkit-3.1.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 24f42cc899f8d84fac829882656c873a6072104136f21c9bed01edd19dea99b8
MD5 c00489835711d3d2da5a90656c9a5c7e
BLAKE2b-256 b1a0e48f9711a74291ac91715eeb1a2856e49374dd2c8c714e41472d8ad44022

See more details on using hashes here.

File details

Details for the file pypsx_toolkit-3.1.1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for pypsx_toolkit-3.1.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9add6caee1bc9652a58455adaf2b7316b5f46b29d56d9866a640e0fe9aab307b
MD5 1a1ed066450e16d8b1d00277bc7e142a
BLAKE2b-256 2703fa299453df0fd7635ae895e60b0ffb3bb226bf1c27e4a57d07743a6c7468

See more details on using hashes here.

File details

Details for the file pypsx_toolkit-3.1.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pypsx_toolkit-3.1.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 15918854259d3120b16a2aac93c63e991543f5dde13cbca105d4b9063abba4eb
MD5 2bf5397fab64a7d6173538ec1e35a792
BLAKE2b-256 d7b97510109a41e412c8ddc1caa1df42ab22fecdf475c4989f617c667ac4ca73

See more details on using hashes here.

File details

Details for the file pypsx_toolkit-3.1.1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for pypsx_toolkit-3.1.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a8529b26af10b21e01fcf87c922cf5b0fba84baf9cdcbac16b1703cc08c2fc7c
MD5 a7839653ac08e3c255edb0d227fee401
BLAKE2b-256 17f8d123d4adfeffef95c01e875105206dd574443630fa4506e34b7b3c97ede6

See more details on using hashes here.

File details

Details for the file pypsx_toolkit-3.1.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pypsx_toolkit-3.1.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ed0b29773daf100a92bda0cda87c3ebd808c844cef6215227bf3da4ae5060a40
MD5 6185a3476e71283219d3b965124f00d8
BLAKE2b-256 0d5b40a51f36e68c44ddc33a4697d330b570e721bc81b4623d7cd99fb38bed06

See more details on using hashes here.

File details

Details for the file pypsx_toolkit-3.1.1-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for pypsx_toolkit-3.1.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a65bdfa22cf91da64c0e4d5b78181bc4c969eece7dd6248fa182376e6a6ae5ea
MD5 ecfbfd55bd2737a8a7cbef91022c913c
BLAKE2b-256 d657aecd9c66403dd8d3b94e5e3da9e282a95c6e9d9b3a4b317072c3d75e273c

See more details on using hashes here.

File details

Details for the file pypsx_toolkit-3.1.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pypsx_toolkit-3.1.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 dd9a39b88657933901e2ebc1edfeabe48e3570784d1d1f36a4293542a52f7629
MD5 070771717db964f6bfbedc019fa3bf51
BLAKE2b-256 b20ffce8d9d26534a1a89340178f0e5687ba082bcad0c071174d4504905b2845

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

3.1.1 This release

11 files

3.1.0

16 files

3.0.4

10 files

3.0.2

2 files

3.0.1

9 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page