{"repo":"mtauha/psxdata","free":true,"listed":false,"github":"https://github.com/mtauha/psxdata","clone":"git clone https://github.com/mtauha/psxdata.git","description":"Python library and REST API for free Pakistan Stock Exchange (PSX) data","language":"Python","stars":19,"topics":["finance","financial-data","ohlcv","pakistan-stock-exchange","pandas","psx","python","stock-market","web-scraping","psx-free-api"],"license":"MIT","category":"scrapers-browser-automation","readme_excerpt":"psxdata — Python Library for Pakistan Stock Exchange (PSX) Data Full documentation at psxdata.mintlify.app Deprecated: ReadTheDocs hosting at psxdata.readthedocs.io is no longer the primary documentation source and may be removed in a future release. psxdata is a Python library for downloading Pakistan Stock Exchange (PSX) data — historical OHLCV prices, real-time quotes, KSE-100 index constituents, sector summaries, fundamentals, debt market instruments, and margin-eligible stocks. Free, open-source, and actively maintained. Alpha release note 0.1.0a1 — Core scraping, caching, and public API are complete. The FastAPI REST layer has moved to mtauha/psxdata-api. APIs may change before 1.0 . --- Installation Requires Python 3.11+. --- Quick Start --- API Reference Function Description -------------------------------------- ------------------------------------------------ psxdata.stocks(symbol, start, end) Historical OHLCV DataFrame for a ticker psxdata.tickers() All listed tickers (1000+) psxdata.symbols() Symbol/sector/name metadata, optionally filtered psxdata.quote(symbol) Live quote row for a ticker psxdata.indices(name) Constituents of a named index (e.g. \"KSE100\" ) psxdata.sectors() Sector aggregates DataFrame (37 sectors) psxdata.fundamentals(symbol) Financial reports for a ticker psxdata.debt market() Debt market instruments (TFCs, Sukuks, etc.) psxdata.eligible scrips() Margin trading eligible stocks --- Why psxdata Existing solutions for PSX data tend to hardcode date","default_branch":null,"files":null,"tree":[],"storefront":"/r/mtauha","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mtauha/psxdata/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}