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
| Field | Type | Description |
|---|---|---|
type | integer | Index type (1 - Exchange, 2 - Non-Tradeable) |
date | string | Data timestamp (YYYY-MM-DD HH:MM:SS) |
name | string | Index name |
code | string | Index code/symbol |
open | number | Opening value |
high | number | Highest value of the day |
low | number | Lowest value of the day |
close | number | Closing value |
volume | number | Total volume traded |
value | number | Total value traded (in PKR) |
ldci | number | Last day closing index |
ldcv | number | Last day closing volume |
change | number | Points change |
change_percent | number | Percentage change |
high52 | number | 52-week high |
low52 | number | 52-week low |
total_scrips | integer | Number of constituent scrips |
pe_ratio | number | Price-to-Earnings ratio of the index |
dividend_yield | number | Dividend yield of the index (%) |
market_cap | number | Total 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