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.
- Website and product: https://pypsx.com
- Web terminal and dashboard: https://markets.pypsx.com
- Documentation: https://docs.pypsx.com
- Trading SDK (backtesting, paper and live trading):
pypsx - X: https://x.com/pyPSXofficial · LinkedIn: https://www.linkedin.com/company/pypsx/ · Reddit: https://www.reddit.com/r/pypsx/
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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40e9b06fa0a3251b838d47e98e84c24b41e0ef6e8bc72c502dada8b0cbf77551
|
|
| MD5 |
5b49dbb57cb3d40cf5e3b96055058ee5
|
|
| BLAKE2b-256 |
0fe31b7e7212628310f8d6e3af5ff11d8a7fe3d3bbb1a47bf0cc9b6671d9265c
|
File details
Details for the file pypsx_toolkit-3.1.1-cp314-cp314-win_amd64.whl.
File metadata
- Download URL: pypsx_toolkit-3.1.1-cp314-cp314-win_amd64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.14, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.11.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec46b76116874e025e1cc7d61e3aef46c0086ff54543836206fb9f733d1e336b
|
|
| MD5 |
6016e1cd68a475e2dcc3e13a66a55887
|
|
| BLAKE2b-256 |
2f8dbd1c0e9b8a8c15d959b5c52d2e521cab665b0aa3c6f4c35b907f9c8632f9
|
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
- Download URL: pypsx_toolkit-3.1.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 13.0 MB
- Tags: CPython 3.14, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.11.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84fa72b94762d38bdad5d1d8cc8d5f90961b8d56f57ffbf7b1bfee96d120830b
|
|
| MD5 |
3c3f0fa67b4799317272bad0bc6562f4
|
|
| BLAKE2b-256 |
796d0cc19e7d52e56c5cae9e46349272578ef7376eefb176160c27f798852ac1
|
File details
Details for the file pypsx_toolkit-3.1.1-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: pypsx_toolkit-3.1.1-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.11.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c049c25ad5e606924f0a1fa5268c5e0f9bc86c88f4d78ea958bc3a41777de32
|
|
| MD5 |
68cce7ba15095f5084077fedceb65973
|
|
| BLAKE2b-256 |
efb27574347dfb05f159138efe2087c4123c74e00a47309d53dc4583393f2dac
|
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
- Download URL: pypsx_toolkit-3.1.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 13.2 MB
- Tags: CPython 3.13, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.11.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24f42cc899f8d84fac829882656c873a6072104136f21c9bed01edd19dea99b8
|
|
| MD5 |
c00489835711d3d2da5a90656c9a5c7e
|
|
| BLAKE2b-256 |
b1a0e48f9711a74291ac91715eeb1a2856e49374dd2c8c714e41472d8ad44022
|
File details
Details for the file pypsx_toolkit-3.1.1-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: pypsx_toolkit-3.1.1-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.11.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9add6caee1bc9652a58455adaf2b7316b5f46b29d56d9866a640e0fe9aab307b
|
|
| MD5 |
1a1ed066450e16d8b1d00277bc7e142a
|
|
| BLAKE2b-256 |
2703fa299453df0fd7635ae895e60b0ffb3bb226bf1c27e4a57d07743a6c7468
|
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
- Download URL: pypsx_toolkit-3.1.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 13.1 MB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.11.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15918854259d3120b16a2aac93c63e991543f5dde13cbca105d4b9063abba4eb
|
|
| MD5 |
2bf5397fab64a7d6173538ec1e35a792
|
|
| BLAKE2b-256 |
d7b97510109a41e412c8ddc1caa1df42ab22fecdf475c4989f617c667ac4ca73
|
File details
Details for the file pypsx_toolkit-3.1.1-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: pypsx_toolkit-3.1.1-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.11.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8529b26af10b21e01fcf87c922cf5b0fba84baf9cdcbac16b1703cc08c2fc7c
|
|
| MD5 |
a7839653ac08e3c255edb0d227fee401
|
|
| BLAKE2b-256 |
17f8d123d4adfeffef95c01e875105206dd574443630fa4506e34b7b3c97ede6
|
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
- Download URL: pypsx_toolkit-3.1.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 11.9 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.11.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed0b29773daf100a92bda0cda87c3ebd808c844cef6215227bf3da4ae5060a40
|
|
| MD5 |
6185a3476e71283219d3b965124f00d8
|
|
| BLAKE2b-256 |
0d5b40a51f36e68c44ddc33a4697d330b570e721bc81b4623d7cd99fb38bed06
|
File details
Details for the file pypsx_toolkit-3.1.1-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: pypsx_toolkit-3.1.1-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.11.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a65bdfa22cf91da64c0e4d5b78181bc4c969eece7dd6248fa182376e6a6ae5ea
|
|
| MD5 |
ecfbfd55bd2737a8a7cbef91022c913c
|
|
| BLAKE2b-256 |
d657aecd9c66403dd8d3b94e5e3da9e282a95c6e9d9b3a4b317072c3d75e273c
|
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
- Download URL: pypsx_toolkit-3.1.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 11.5 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.11.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd9a39b88657933901e2ebc1edfeabe48e3570784d1d1f36a4293542a52f7629
|
|
| MD5 |
070771717db964f6bfbedc019fa3bf51
|
|
| BLAKE2b-256 |
b20ffce8d9d26534a1a89340178f0e5687ba082bcad0c071174d4504905b2845
|