psxdata — free KSE-100 & PSX historical data for Python
Open-source Python library to download free PSX stock data — historical prices, live trading board, KSE-100 indices, sector summaries, and more.Features
Why psxdata?
- Free. No API key. No rate-limit paywall. Scrapes the public PSX website directly.
- pandas-native. Every function returns a
DataFrameready for analysis. - No browser required. Pure
requests+BeautifulSoup— fast and dependency-light. - Cached. Historical data never re-downloads. Today’s data refreshes every 15 minutes.