Skip to main content

Index Returns

Retrieve performance returns for market indices across various time periods.

GET/3.0/market/indices/stats

Description

This endpoint returns detailed return statistics for market indices including PSX 100, KSE All Share Index, and other indices across multiple time periods. Useful for analyzing market performance and benchmarking portfolio returns.

Request

Authentication

  • Type: Bearer Token
  • Required: Yes

Parameters

This endpoint does not accept any query parameters.

Response

Success Response (200)

{
"status": "ok",
"message": "",
"data": [
{
"date": "2025-10-06 10:59:46",
"name": "ACI",
"type": 1,
"c1w": 25562.2647,
"c1m": 23671.0482,
"c3m": 20358.0446,
"c6m": 18715.3702,
"c1y": 12357.7133,
"cytd": 18289.7553,
"c5y": 10270.12
},
{
"date": "2025-10-06 10:59:46",
"name": "BKTI",
"type": 1,
"c1w": 43218.9768,
"c1m": 41648.0694,
"c3m": 35828.2461,
"c6m": 27899.058,
"c1y": 21052.3972,
"cytd": 25849.1765,
"c5y": 13430.1359
},
]
}

Response Fields

FieldTypeDescription
datestringTimestamp of the data (YYYY-MM-DD HH:MM:SS)
namestringIndex name/code
typeintegerIndex type identifier
c1wnumber1-week return value
c1mnumber1-month return value
c3mnumber3-month return value
c6mnumber6-month return value
c1ynumber1-year return value
cytdnumberYear-to-date return value
c5ynumber5-year return value

Error Responses

For detailed Common Error responses, see the Error Handling.

Examples

Get Returns for All Indices

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

Use Cases

  • Market Analysis: Analyze overall market performance
  • Benchmark Comparison: Compare portfolio returns with market indices
  • Market Trends: Track market direction and momentum
  • Economic Indicators: Use market indices as economic indicators
  • Investment Decisions: Use index performance for asset allocation
  • Performance Attribution: Benchmark portfolio against indices