Returns a paginated list of all PSX-listed equities with real-time price, volume, sector, market capitalisation, dividend yield, and 52-week range. Data is merged from Sarmaaya (primary) and the PSX live feed (fallback), so you always get the most complete picture available. Use this endpoint as your starting point before requesting detailed quotes or candle data for specific symbols.
GEThttps://api.psxmarket.io/api/v1/market/stocks
Requires API key — Free plan and above.
Query Parameters
Parameter
Type
Description
Required
search
string
Filter by ticker symbol or company name. Partial matches supported.
Optional
page
integer
Page number for pagination. Starts at 1.
Optional
limit
integer
Number of stocks per page. Default is 20. Maximum is 100.
Optional
sector
string
Filter by PSX sector code.
Optional
listedIn
string
Filter by index. KSE100, KSE30, ALLSHR, KMI30.
Optional
Request Headers
Header
Required
Description
X-API-Key
Required
Your API key. Pass in every request header.
Code Examples
curl -X GET "https://api.psxmarket.io/api/v1/market/stocks?limit=5§or=BANK" -H "X-API-Key: your_api_key_here"
{
"error": "RATE_LIMIT_EXCEEDED",
"message": "You have exceeded 10 requests per minute on the Free plan.",
"retryAfterSeconds": 47,
"upgradeUrl": "https://api.psxmarket.io/pricing"
}
All errors follow this shape. The error field is machine-readable. The message field is human-readable.
Test this endpoint live
See real PSX data in the response. No setup required.
Market Data > Stock Detail
Retrieve Stock Detail
Returns comprehensive data for a single PSX-listed stock identified by its ticker symbol.
{
"error": "RATE_LIMIT_EXCEEDED",
"message": "You have exceeded 10 requests per minute on the Free plan.",
"retryAfterSeconds": 47,
"upgradeUrl": "https://api.psxmarket.io/pricing"
}
All errors follow this shape. The error field is machine-readable. The message field is human-readable.
Test this endpoint live
See real PSX data in the response. No setup required.
Market Data > Rankings
Market Rankings
Returns a sorted list of stocks for the requested ranking category.
{
"error": "RATE_LIMIT_EXCEEDED",
"message": "You have exceeded 10 requests per minute on the Free plan.",
"retryAfterSeconds": 47,
"upgradeUrl": "https://api.psxmarket.io/pricing"
}
All errors follow this shape. The error field is machine-readable. The message field is human-readable.
Test this endpoint live
See real PSX data in the response. No setup required.
Market Data > Intraday Candles
Intraday OHLCV Candles
Returns aggregated OHLCV candle data for a single stock. Available on Pro plan and above.
{
"error": "RATE_LIMIT_EXCEEDED",
"message": "You have exceeded 10 requests per minute on the Free plan.",
"retryAfterSeconds": 47,
"upgradeUrl": "https://api.psxmarket.io/pricing"
}
All errors follow this shape. The error field is machine-readable. The message field is human-readable.
Test this endpoint live
See real PSX data in the response. No setup required.
Market Data > Daily Candles
Daily EOD Candles
Returns end-of-day OHLCV candle data for historical charting.
{
"error": "RATE_LIMIT_EXCEEDED",
"message": "You have exceeded 10 requests per minute on the Free plan.",
"retryAfterSeconds": 47,
"upgradeUrl": "https://api.psxmarket.io/pricing"
}
All errors follow this shape. The error field is machine-readable. The message field is human-readable.
Test this endpoint live
See real PSX data in the response. No setup required.
Market Data > Quotes & Order Book
Live Quotes & Order Book
Returns real-time ask/bid and circuit limits for one or more stocks.
GEThttps://api.psxmarket.io/api/v1/market/quotes
Pro plan required. This endpoint is not available on the Free plan.
Query Parameters
Parameter
Type
Description
Required
symbols
string
Comma-separated symbols.
Required
batchSize
integer
Batch size, default 5.
Optional
batchIndex
integer
Zero-indexed batch.
Optional
Request Headers
Header
Required
Description
X-API-Key
Required
Your Pro plan API key.
Code Examples
curl -X GET "https://api.psxmarket.io/api/v1/market/quotes?symbols=ENGRO,HBL,LUCK" -H "X-API-Key: your_api_key_here"
{
"error": "RATE_LIMIT_EXCEEDED",
"message": "You have exceeded 10 requests per minute on the Free plan.",
"retryAfterSeconds": 47,
"upgradeUrl": "https://api.psxmarket.io/pricing"
}
All errors follow this shape. The error field is machine-readable. The message field is human-readable.
Test this endpoint live
See real PSX data in the response. No setup required.
Market Data > Uptick / Downtick
Last Trade Direction
Returns last-trade direction for one or more symbols.
GEThttps://api.psxmarket.io/api/v1/market/uptick
Pro plan required. This endpoint is not available on the Free plan.
Query Parameters
Parameter
Type
Description
Required
symbols
string
Comma-separated symbols.
Required
Request Headers
Header
Required
Description
X-API-Key
Required
Your Pro plan API key.
Code Examples
curl -X GET "https://api.psxmarket.io/api/v1/market/uptick?symbols=ENGRO,HBL" -H "X-API-Key: your_api_key_here"
{
"error": "RATE_LIMIT_EXCEEDED",
"message": "You have exceeded 10 requests per minute on the Free plan.",
"retryAfterSeconds": 47,
"upgradeUrl": "https://api.psxmarket.io/pricing"
}
All errors follow this shape. The error field is machine-readable. The message field is human-readable.
Test this endpoint live
See real PSX data in the response. No setup required.
Market Data > Circuit Breaker
Circuit Breaker Limits
Returns upper/lower circuit breaker limits for symbols.
{
"error": "RATE_LIMIT_EXCEEDED",
"message": "You have exceeded 10 requests per minute on the Free plan.",
"retryAfterSeconds": 47,
"upgradeUrl": "https://api.psxmarket.io/pricing"
}
All errors follow this shape. The error field is machine-readable. The message field is human-readable.
Test this endpoint live
See real PSX data in the response. No setup required.
Reference Data > Company Profile
Company Profile
Returns static company information and key personnel from PSX pages.
{
"error": "RATE_LIMIT_EXCEEDED",
"message": "You have exceeded 10 requests per minute on the Free plan.",
"retryAfterSeconds": 47,
"upgradeUrl": "https://api.psxmarket.io/pricing"
}
All errors follow this shape. The error field is machine-readable. The message field is human-readable.
Test this endpoint live
See real PSX data in the response. No setup required.
Reference Data > Financial Statements
Financial Statements
Returns annual and quarterly statement data and key ratios.
{
"error": "RATE_LIMIT_EXCEEDED",
"message": "You have exceeded 10 requests per minute on the Free plan.",
"retryAfterSeconds": 47,
"upgradeUrl": "https://api.psxmarket.io/pricing"
}
All errors follow this shape. The error field is machine-readable. The message field is human-readable.
Test this endpoint live
See real PSX data in the response. No setup required.