Skip to main content

Indices Overview

Retrieve comprehensive market indices data including all available indices, their current values, constituent stocks, and key valuation metrics.

GET/3.0/market/indices

Description

This endpoint provides current and historical index values, constituent stock information, and key metrics like PE ratio and dividend yield for all available market indices including KSE 100, KSE All Share, and sector indices. It returns a snapshot of market indices performance.

Request

Authentication

  • Type: Bearer Token
  • Required: Yes

Parameters

This endpoint does not accept any query parameters.

Response

Success Response (200)

{
"status": "ok",
"message": "",
"count": 18,
"data": [
{
"type": 1,
"date": "2025-10-07 10:42:31",
"name": "MZNPI",
"code": "MZNPI",
"open": 30480.3467,
"high": 30480.3467,
"low": 30011.3491,
"close": 30020.3152,
"volume": 10032928,
"value": 3185906806.75,
"ldci": 30378.226,
"ldcv": 47748916,
"change": -357.91,
"change_percent": -0.0118,
"high52": 31117.6686,
"low52": 16652.9016,
"total_scrips": 12,
"pe_ratio": 10.82,
"dividend_yield": 0.0303,
"market_cap": 1431136271771.56
}
]
}

Response Fields

FieldTypeDescription
typeintegerIndex type (1 - Exchange, 2 - Non-Tradeable)
datestringData timestamp (YYYY-MM-DD HH:MM:SS)
namestringIndex name
codestringIndex code/symbol
opennumberOpening value
highnumberHighest value of the day
lownumberLowest value of the day
closenumberClosing value
volumenumberTotal volume traded
valuenumberTotal value traded (in PKR)
ldcinumberLast day closing index
ldcvnumberLast day closing volume
changenumberPoints change
change_percentnumberPercentage change
high52number52-week high
low52number52-week low
total_scripsintegerNumber of constituent scrips
pe_rationumberPrice-to-Earnings ratio of the index
dividend_yieldnumberDividend yield of the index (%)
market_capnumberTotal market capitalization (in PKR)

Error Responses

For detailed Common Error responses, see the Error Handling.

Examples

Get All Indices

curl -X GET "https://csapis.com/3.0/market/indices" \
-H "Authorization: Bearer YOUR_API_TOKEN"

Use Cases

  • Market Overview: Get a snapshot of overall market performance
  • Index Performance: Track performance of different market indices
  • Sector Analysis: Analyze sector-specific indices
  • Portfolio Benchmarking: Compare portfolio performance against indices
  • Market Research: Understand market breadth and composition
  • Valuation Analysis: Review P/E ratios and dividend yields across indices