Skip to main content

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 DataFrame ready 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.

Install

Requires Python 3.11+.

Quick example

Continue to Getting started for a full walkthrough.