Discover/Com API
live

Com APIdps.psx.com.pk

Access PSX market data via API: live quotes, indices, sector summaries, financials, dividends, and announcements for all listed companies on the Pakistan Stock Exchange.

Endpoint health
verified 20h ago
get_stock_quote
get_stock_payouts
get_stock_announcements
get_market_summary
get_symbols
11/11 passing latest checkself-healing
Endpoints
11
Updated
22d ago

What is the Com API?

This API covers 11 endpoints for the Pakistan Stock Exchange Data Portal (dps.psx.com.pk), returning live quotes, market indices, sector breakdowns, financial highlights, payout history, and company announcements. The get_stock_quote endpoint delivers current price, P/E ratio, market cap, free float, and trading statistics for any listed symbol. The get_symbols endpoint enumerates every listed instrument with sector classification and flags for ETF and debt instruments.

Try it

No input parameters required.

api.parse.bot/scraper/0f3edd12-1750-4749-9b05-539f1e94db49/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/0f3edd12-1750-4749-9b05-539f1e94db49/get_symbols' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace dps-psx-com-pk-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

from parse_apis.psx_data_portal_api import PSX, IndexName, AnnouncementType, BoardType

psx = PSX()

# List all market indices
for idx in psx.marketindexes.list():
    print(idx.name, idx.price, idx.as_of)

# Get market summary
summary = psx.marketsummaries.get()
for board in summary.boards:
    print(board.board, board.stats)

# Get a stock quote and explore its financials
stock = psx.stocks.get(symbol="OGDC")
print(stock.symbol, stock.price, stock.change)

# Get financial tables for the stock
for table in stock.financials():
    print(table.headers, table.rows[0])

# Get dividend payouts
for payout in stock.payouts():
    print(payout.date, payout.details, payout.book_closure)

# Get company announcements filtered by type
for ann in stock.announcements(type=AnnouncementType.C):
    print(ann.date, ann.time, ann.title)

# Navigate an index and list its constituents
kse100 = psx.marketindex(name=IndexName.KSE100)
for constituent in kse100.constituents():
    print(constituent.symbol, constituent.current, constituent.percent_change)

# List trading board with board type filter
for ts in psx.tradingstocks.list(board_type=BoardType.REG):
    print(ts.symbol, ts.bid_price, ts.offer_price, ts.volume)
All endpoints · 11 totalmissing one? ·

Returns all listed symbols with their names and sectors on the Pakistan Stock Exchange. Each symbol includes classification flags (ETF, debt) and sector assignment.

Input

No input parameters required.

Response
{
  "type": "object",
  "fields": {
    "items": "array of symbol objects with symbol, name, sectorName, isETF, isDebt"
  },
  "sample": {
    "data": {
      "items": [
        {
          "name": "Oil & Gas Development Company Limited",
          "isETF": false,
          "isDebt": false,
          "symbol": "OGDC",
          "sectorName": "OIL & GAS EXPLORATION COMPANIES"
        }
      ]
    },
    "status": "success"
  }
}

About the Com API

Market Data and Quotes

The get_market_summary endpoint returns board-level trading statistics — trades, volume, and value — alongside top index values with daily change and percent change. For granular per-stock data, get_trading_panel exposes the live trading board with bid/offer prices, bid/offer volumes, last day closing price (LDCP), and traded volume. The board_type parameter accepts REG (regular equity), FUT (deliverable futures), CSF (cash settled futures), and ODL (odd lot). Note that only the REG board reliably returns data outside market hours.

Indices and Constituents

get_market_indices lists all PSX indices with high, low, volume, 52-week range, YTD change, and previous close. To drill into an index, get_index_constituents accepts a named index — KSE100, KSE30, KMI30, ALLSHR, PSXDIV20, and others — and returns each constituent's current price, change, volume, and contribution to index points (indexPoints). This makes it straightforward to decompose which stocks are driving a given index's movement on any given day.

Company-Level Data

get_stock_financials returns annual and quarterly highlights for a given symbol, structured as a headers array (year or quarter labels) plus rows of metric values covering Sales, Profit, EPS, and margins. get_stock_payouts provides full dividend history per symbol, including announcement date, book closure date range, payout details (percentage and type), and the financial period each payout references. get_stock_announcements supports filtering by symbol and by announcement type (C for company, E for exchange, CDC, SECP, NCCPL), and returns a PDF download link where available.

Listings and Sector Coverage

get_listings enumerates all main-board companies with their sector, total outstanding shares, and free float. get_sector_summary aggregates trading activity by sector, returning advance/decline counts, turnover volume, and market cap in billions alongside the PSX sector code. Together these endpoints give a complete cross-sectional view of the exchange without requiring per-symbol iteration.

Reliability & maintenanceVerified

The Com API is a managed, monitored endpoint for dps.psx.com.pk — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when dps.psx.com.pk changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official dps.psx.com.pk API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
20h ago
Latest check
11/11 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Building a PSX portfolio tracker that pulls live bid/offer prices via get_trading_panel and calculates unrealized P&L.
  • Screening stocks by sector using get_sector_summary advance/decline ratios and market cap to identify sector rotation.
  • Monitoring dividend calendars by ingesting get_stock_payouts book closure dates for multiple symbols.
  • Aggregating company announcements via get_stock_announcements with type C to trigger alerts on regulatory filings or results.
  • Constructing index-tracking spreadsheets using get_index_constituents index points contributions for KSE100 or KMI30.
  • Charting annual EPS and profit trends from get_stock_financials quarterly headers across multiple listed companies.
  • Populating a symbol lookup service with get_symbols to classify instruments as equity, ETF, or debt across all PSX sectors.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does the Pakistan Stock Exchange have an official developer API?+
PSX does not publish a public developer API or documented REST interface for the dps.psx.com.pk data portal. This Parse API provides structured access to the data available on that site.
What does `get_stock_quote` return beyond the current price?+
get_stock_quote returns a stats object that includes Open, High, Low, Volume, LDCP, P/E Ratio, Market Cap, total Shares, and Free Float for the requested symbol, along with the price change and percentage change. The symbol parameter is required — there is no bulk quote endpoint that returns all symbols in one call.
Are there any known limitations with the `get_trading_panel` endpoint?+
Yes. Only the REG board type consistently returns data outside market hours. Requesting board types FUT, CSF, or ODL when the market is closed will typically yield empty results. Plan data collection around market hours if you need futures or odd-lot board data.
Does the API return historical OHLCV price series for individual stocks?+
Not currently. The API covers current quotes, daily stats, and financial period summaries, but does not expose a time-series endpoint for historical daily OHLCV data. You can fork this API on Parse and revise it to add a historical price endpoint if that data is available on the portal.
Can I retrieve announcements for all company types, including SECP and NCCPL filings?+
The get_stock_announcements endpoint accepts type values C, E, CDC, SECP, and NCCPL, but type C (company announcements) is the most reliable. Other types may return inconsistent results. Filtering by symbol is only meaningful for type C; regulatory bodies like SECP do not map cleanly to individual stock symbols.
Page content last updated . Spec covers 11 endpoints from dps.psx.com.pk.
Related APIs in FinanceSee all →
nepsealpha.com API
Track Nepal's stock market in real-time with live prices, historical OHLCV data, and detailed sector summaries, while leveraging technical and fundamental analysis signals to make informed trading decisions. Monitor floorsheet transactions, assess investment risks, and search specific symbols all from a single comprehensive market data platform.
nepalstock.com.np API
Access real-time stock prices, market indices, and trading data from Nepal's stock exchange (NEPSE). Retrieve live price updates, market summaries, top performers, and detailed information on listed securities.
nseindia.com API
Track live NSE stock prices, monitor indices, analyze option chains, and access corporate announcements with real-time market data from India's National Stock Exchange. View equity quotes with full order books, identify top gainers/losers, analyze 52-week highs/lows, and explore historical price trends all in structured JSON format.
jse.co.za API
Access live JSE stock prices, company profiles, and market indices from the Johannesburg Stock Exchange. Search SENS announcements and view comprehensive market statistics to stay informed on JSE activity.
asx.com.au API
Access Australian Securities Exchange (ASX) market data, including equity prices, index summaries, company details, market announcements, and company directory listings. Retrieve upcoming IPO and float information alongside comprehensive data on all ASX-listed companies.
stockanalysis.com API
Access comprehensive stock market data including real-time financials, income statements, statistics, and IPO calendars to research individual stocks and identify market movers. Search stocks, view detailed overviews, and monitor premarket activity all in structured, easy-to-use format.
bseindia.com API
Retrieve live BSE India market data including top gainers and losers, 52-week highs and lows, bulk deals, and block deals for the most recent trading day.
hdfcsec.com API
Track real-time equity market movements by finding the most active NSE stocks, top gainers and losers, 52-week highs and lows, and detailed stock quotes. Search for specific stocks and get comprehensive market overviews to make informed investment decisions.