Skip to main content

Company/Symbol Returns

Retrieve performance returns for individual companies and symbols across various time periods.

GET/3.0/market/stocks/stats

Description

This endpoint returns detailed return statistics for individual stocks across multiple time periods including 1 week, 1 month, 3 months, 6 months, and 1 year returns. Useful for analyzing stock performance and comparative analysis.

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-03 16:37:55",
"symbol": "BELA",
"name": "Bela Automotives Limited",
"c1w": 120.07,
"c1m": 125.84,
"c3m": 111.67,
"c6m": 156.11,
"c1y": 167.17,
"cytd": 171.06,
"cfy": 116.42,
"c5y": 1.3
},
{
"date": "2025-01-03 16:47:18",
"symbol": "DAWH",
"name": "Dawood Hercules Corporation Limited",
"c1w": 275.28,
"c1m": 275.28,
"c3m": 275.28,
"c6m": 275.28,
"c1y": 141.5,
"cytd": 259.81,
"cfy": 275.28,
"c5y": 121
}
]
}

Response Fields

FieldTypeDescription
datestringTimestamp of the data (YYYY-MM-DD HH:MM:SS)
symbolstringStock symbol/ticker
namestringFull company name
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
cfynumberFiscal year return value
c5ynumber5-year return value

Error Responses

For detailed Common Error responses, see the Error Handling.

Examples

Get Returns for Stock

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

Use Cases

  • Performance Analysis: Compare stock returns across periods
  • Investment Screening: Identify best/worst performing stocks
  • Portfolio Analysis: Evaluate portfolio constituent performance
  • Return Comparison: Compare returns between stocks
  • Trading Signals: Use performance trends for trading decisions
  • Performance Benchmarking: Compare individual stock performance with market