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.
Release files for pypsx-toolkit 3.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pypsx_toolkit-3.1.2.tar.gz | 24.7 kB | Details |
Built distributions (wheels)
Total release size: 73.2 MB
Release files / pypsx_toolkit-3.1.2.tar.gz
| Download URL | pypsx_toolkit-3.1.2.tar.gz |
|---|---|
| Size | 24.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1236a8af4ec1a6f9fec9bdfb7e79d0845e9df767ff9ef124f7332e8702542f0c
|
|
BLAKE2b-256 checksum How to use checksums |
8aa01d149b81c003bd6bcb97155bdc414e8b71136ff503c2caba694a7549cb01
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.11.16
|
Release files / pypsx_toolkit-3.1.2-cp314-cp314-win_amd64.whl
| Download URL | pypsx_toolkit-3.1.2-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 1.9 MB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
b14f4b8c98000c37ccf648a1facd7c160223ccb962353488039ae677c43c9eca
|
|
BLAKE2b-256 checksum How to use checksums |
bc6752dec32b98fd1ef1a34375b5fa5ca4e37cbedb52e396098ca47b50524b00
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.11.16
|
Release files / pypsx_toolkit-3.1.2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
| Download URL | pypsx_toolkit-3.1.2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 13.2 MB |
| Tags | CPython 3.14 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
79f949b25c68cfebe583816ebb9060ca6baa945bb37aa208bd973e06e3debc74
|
|
BLAKE2b-256 checksum How to use checksums |
00be4445a130cc36716a086944b24b24490a5b78ca14a3c7e4c05cf8fca951fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.11.16
|
Release files / pypsx_toolkit-3.1.2-cp313-cp313-win_amd64.whl
| Download URL | pypsx_toolkit-3.1.2-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 1.9 MB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
ced40c44a3fe130eb66223bc1c41d41c80150ba0302b00daf54d25efc852eec2
|
|
BLAKE2b-256 checksum How to use checksums |
7fe6cf4036c79d90042d70a9a92ac629f9ed52fc8ec130e4ca8963106c997156
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.11.16
|
Release files / pypsx_toolkit-3.1.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
| Download URL | pypsx_toolkit-3.1.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 13.4 MB |
| Tags | CPython 3.13 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
dae5efaf8eccf726238edebb9b28d4108e5d023880c985e0d9831c3ad09f438e
|
|
BLAKE2b-256 checksum How to use checksums |
ce84de40f416ce8069dd0daf668324b6b7d7bfdeeed2950012e07a1c617222de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.11.16
|
Release files / pypsx_toolkit-3.1.2-cp312-cp312-win_amd64.whl
| Download URL | pypsx_toolkit-3.1.2-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 1.9 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
c82cb7fa0a5aa69134f26ee3d278702e2c949010528494adb87c5d339019c381
|
|
BLAKE2b-256 checksum How to use checksums |
2ca9f644ce5b19aa0d05f3eca22f13b2ca9a802cd62fa7aead9a73a8f8083c4f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.11.16
|
Release files / pypsx_toolkit-3.1.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
| Download URL | pypsx_toolkit-3.1.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 13.3 MB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
f25d73b9269d18c8401bec10cf460b2b45bce3bcbd628772ba2e32b9c4abfa7e
|
|
BLAKE2b-256 checksum How to use checksums |
0bbf40c660d5a0021bae3d674b919b7bafc7dbfdd3dbb1bdb966e93ba60d47de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.11.16
|
Release files / pypsx_toolkit-3.1.2-cp311-cp311-win_amd64.whl
| Download URL | pypsx_toolkit-3.1.2-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 1.9 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
bb6cc47a6ca594c77965c7b6430824bd2f64dcb200285a7c3edb7b2f02f6e779
|
|
BLAKE2b-256 checksum How to use checksums |
734158407fefe6ab4f6772c02429d5fe53ccbf8844b7e5e25a1693e7f4ccb5c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.11.16
|
Release files / pypsx_toolkit-3.1.2-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
| Download URL | pypsx_toolkit-3.1.2-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 12.1 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
24973c6d46a58859df058a7ae6f8dec9e6f8b79e63d8269a29ea3ab6559d4795
|
|
BLAKE2b-256 checksum How to use checksums |
d3325d9146c4f4b09e40f2a2211b65def36349956ce860fdbc18f5408f22cd3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.11.16
|
Release files / pypsx_toolkit-3.1.2-cp310-cp310-win_amd64.whl
| Download URL | pypsx_toolkit-3.1.2-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
ef0cd454ff03ae4894bc3dab286b80e5b9c13c86bc50f53b0aa23429705859ec
|
|
BLAKE2b-256 checksum How to use checksums |
e7a033d2dd9b9124053f5beaaa4084aff68740ef46e4e111a6351a65df2ef113
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.11.16
|
Release files / pypsx_toolkit-3.1.2-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
| Download URL | pypsx_toolkit-3.1.2-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 11.7 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
959c42db63aa3acdd9bdc829a1532174d46af26c29b25f418b24a8d02d598dee
|
|
BLAKE2b-256 checksum How to use checksums |
6145c852301398db04874378d2629575327f615b5d148b6609c63218fb0e83b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.11.16
|