End of Day Stocks Adjusted
Retrieve adjusted end-of-day OHLCV (Open, High, Low, Close, Volume) data for stocks with dividend and split adjustments applied.
GET/3.0/market/eod-adj
Description
This endpoint provides dividend-adjusted historical price data for individual stocks. The prices are adjusted for corporate actions such as dividend payments and stock splits to reflect the true price movements and enable accurate historical analysis.
Request
Authentication
- Type: Bearer Token
- Required: Yes
Parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
symbol | string | Yes | Stock symbol to retrieve data for | AHCL |
from | string | Yes | Start date in YYYY-MM-DD format | 2025-03-01 |
to | string | Yes | End date in YYYY-MM-DD format | 2025-03-21 |
Response
Success Response (200)
{
"status": "ok",
"message": "",
"count": 15,
"data": [
{
"time": 1545998400,
"open": 37822.29,
"high": 37891.19,
"low": 36918.66,
"close": 37167.02,
"volume": 132828200,
"value": 7269517182.9
},
{
"time": 1545909247,
"open": 38382.24,
"high": 38460.1,
"low": 37701.16,
"close": 37853.57,
"volume": 69739040,
"value": 3724077874.6
}
]
}
Response Fields
| Field | Type | Description |
|---|---|---|
time | number | Unix timestamp (seconds since epoch, UTC) |
open | number | Opening price (dividend-adjusted) |
high | number | Highest price (dividend-adjusted) |
low | number | Lowest price (dividend-adjusted) |
close | number | Closing price (dividend-adjusted) |
volume | number | Trading volume |
value | number | Total traded value (PKR) |
Error Responses
For detailed Common Error responses, see the Error Handling.
No symbol Provided (200)
{
"status": "error",
"message": "no_symbol_provided"
}
Examples
Get Adjusted End of Day Data
curl -X GET "https://csapis.com/3.0/market/eod-adj?symbol=AHCL&from=2025-03-01&to=2025-03-21" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Use Cases
- Accurate Backtesting: Test strategies with adjustment-corrected prices
- Fair Comparison: Compare performance across different time periods
- Dividend Analysis: Track dividend impact on price movements
- Historical Charting: Create accurate long-term price charts