Skip to main content

Index Contributors

Retrieve companies that contribute to index point changes and their individual contributions.

GET/3.0/market/index/points

Description​

This endpoint returns detailed information about which companies are contributing to index point changes and by how much. Shows the impact of each stock on the index value based on their weightings and price movements.

Request​

Authentication​

  • Type: Bearer Token
  • Required: Yes

Parameters​

NameTypeRequiredDescriptionExample
codestringYesIndex code identifierUPP9
datestringYesDate for historical data (YYYY-MM-DD).2024-04-02
is_sectorstringNoFilter by sector (true/false). Default is falsefalse

Response​

Success Response (200)​

{
"status": "ok",
"message": "",
"data": [
{
"symbol": "MUREB",
"sector": "0810",
"index": "ALLSHR",
"from": "2023-01-02",
"to": "2023-08-01",
"point": -4674.995483319208,
"weight": 0.0011356866463752713,
"mcc": 8326752931,
"close": 301,
"volume": 400,
"high": 359.99,
"low": 261.69,
"change": -54,
"change_pct": -0.15211267605633802
}
]
}

Response Fields​

FieldTypeDescription
symbolstringStock symbol/ticker
sectorstringSector code identifier
indexstringIndex identifier
fromstringStart date range (YYYY-MM-DD)
tostringEnd date range (YYYY-MM-DD)
pointnumberContribution to index points
weightnumberStock weight in index as decimal
mccnumberMarket capitalization in currency units
closenumberClosing stock price
volumenumberTrading volume
highnumberHigh price during period
lownumberLow price during period
changenumberAbsolute price change
change_pctnumberPrice percentage change as decimal

Error Responses​

For detailed Common Error responses, see the Error Handling.

Missing Index Code (200)​

{
"status": "error",
"message": "index_param_not_provided"
}

Examples​

Get Index Contributors​

curl -X GET "https://csapis.com/3.0/market/index/points?code=ALLSHR&date=2024-04-02" \
-H "Authorization: Bearer YOUR_API_TOKEN"

Use Cases​

  • Index Analysis: Understand which stocks drive index movements
  • Portfolio Impact: See how your holdings impact index
  • Market Direction: Identify key stocks driving market moves
  • Stock Selection: Focus on high-weight index contributors
  • Performance Attribution: Understand index composition impact
  • Trading Signals: Use contributor analysis for trading decisions