pypsxFree PSX market data. In one pip install.
Ten years of OHLCV, intraday, fundamentals, dividends, index constituents, and the full market watch, as pandas DataFrames. No scraper, no rate limits to fight.
pip install pypsxData is free. Want execution and backtesting? See Algo Trading →
What you get
Ten years of daily bars for every listed symbol. Clean pandas output, no scraping, no parsing.
import pypsx
df = pypsx.download("OGDC", period="10y")Financials, ratios, dividend history, corporate announcements, one library, one shape.
pypsx.get_company_fundamentals("MCB")
pypsx.get_dividend_history("HBL")KSE-100, KMI-30, KSE-30 constituents and weights. Sector lists and market-cap breakdowns.
pypsx.index_constituents("KSE100")
pypsx.sectors()Top gainers, decliners, most active, and a full market watch, the whole board in one call.
pypsx.performers()
pypsx.market_watch()Tick-by-tick for the last 2 sessions, for indicator warm-up and research. Not a live feed.
pypsx.get_intraday("SYS")RSI, MACD, Bollinger, Sharpe, drawdown, full performance summaries, tuned for PSX.
import pypsx.analysis as pa
pa.performance_summary(df)Start pulling data.
Free. See the reference to go deeper.