# psxdata - [psxdata — free PSX data for Python](https://docs.psxdata.org/index.md): Free open-source Python library for Pakistan Stock Exchange (PSX) data — KSE-100 historical prices, live trading board, sectors, indices, stock screener. - [Getting started](https://docs.psxdata.org/sdk/getting-started.md): Install psxdata and fetch your first PSX stock data in under 5 minutes. - [How to use the free PSX data API with Python](https://docs.psxdata.org/sdk/guides/free-psx-api.md): Step-by-step guide to downloading free Pakistan Stock Exchange data with the psxdata Python library. - [Download PSX historical stock prices with Python](https://docs.psxdata.org/sdk/guides/historical-data.md): Download daily historical OHLCV prices for any PSX-listed stock using psxdata. Works with pandas out of the box. - [Screen PSX stocks with Python](https://docs.psxdata.org/sdk/guides/stock-screener.md): Filter and screen all PSX-listed stocks by sector, index, and trading metrics using psxdata. - [Analyse PSX sector performance with Python](https://docs.psxdata.org/sdk/guides/sector-analysis.md): Fetch sector-wise summary data from PSX and analyse performance trends using pandas. - [Fetch KSE-100 and PSX index data with Python](https://docs.psxdata.org/sdk/guides/indices.md): Download KSE-100, KSE-30, and all PSX index data programmatically using psxdata. - [Get live PSX trading board snapshots with Python](https://docs.psxdata.org/sdk/guides/realtime-snapshot.md): Fetch point-in-time live trading board data from PSX using psxdata -- no browser required. - [Route PSX requests through a proxy](https://docs.psxdata.org/sdk/guides/proxy.md): Send every psxdata request to PSX through an HTTP, HTTPS, or SOCKS proxy of your choice, per client or for the module-level functions. - [Client & core functions](https://docs.psxdata.org/sdk/reference/client.md): API reference for PSXClient and all psxdata module-level functions. - [Exceptions](https://docs.psxdata.org/sdk/reference/exceptions.md): Exception hierarchy for psxdata. All library exceptions inherit from PSXDataError. - [Introduction](https://docs.psxdata.org/rest-api/introduction.md): Base URL, rate limits, error format, and authentication for the psxdata REST API. - [Quickstart](https://docs.psxdata.org/rest-api/guides/quickstart.md): Make your first psxdata REST API calls in under 5 minutes. - [Proxy passthrough](https://docs.psxdata.org/rest-api/guides/proxy.md): Have the psxdata REST API fetch PSX data through your own HTTP or SOCKS proxy with the X-PSX-Proxy header. - [Health](https://docs.psxdata.org/api-reference/health/health.md): Return API liveness status. - [List Stocks](https://docs.psxdata.org/api-reference/stocks/list-stocks.md) - [Get Historical](https://docs.psxdata.org/api-reference/stocks/get-historical.md) - [Get Quote](https://docs.psxdata.org/api-reference/stocks/get-quote.md) - [Get Fundamentals](https://docs.psxdata.org/api-reference/stocks/get-fundamentals.md) - [List Indices](https://docs.psxdata.org/api-reference/indices/list-indices.md) - [Get Index](https://docs.psxdata.org/api-reference/indices/get-index.md) - [List Sectors](https://docs.psxdata.org/api-reference/sectors/list-sectors.md) - [Get Sector Stocks](https://docs.psxdata.org/api-reference/sectors/get-sector-stocks.md) - [List Screener](https://docs.psxdata.org/api-reference/screener/list-screener.md) - [Get Debt Market](https://docs.psxdata.org/api-reference/market/get-debt-market.md) - [Get Eligible Scrips](https://docs.psxdata.org/api-reference/market/get-eligible-scrips.md) - [Introduction](https://docs.psxdata.org/mcp/introduction.md): psxdata-mcp is a local MCP server that lets AI assistants load Pakistan Stock Exchange data into DuckDB and answer questions with SQL. - [Local setup](https://docs.psxdata.org/mcp/setup.md): Run the psxdata MCP server locally with Docker and connect it to Claude Code, Claude Desktop, Cursor, VS Code, Windsurf, Codex, Gemini CLI or any other MCP client. - [Tools reference](https://docs.psxdata.org/mcp/tools.md): Every tool the psxdata MCP server exposes: the load_* tools, query, list_tables and quote, with their arguments and limits. - [Skills](https://docs.psxdata.org/mcp/skills.md): Ready-made PSX analysis workflows that ship with the psxdata MCP server: stock tearsheet, screens, Shariah screen, comparisons and market wraps. ## OpenAPI Specs - [openapi](/openapi.json) This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.