Skip to main content

5 Min Interval Chart

Retrieve 5-minute interval OHLCV (Open, High, Low, Close, Volume) data for intraday trading analysis.

GET/3.0/market/intraday/5m

Description

This endpoint provides 5-minute interval candlestick data for stocks and indices. Each data point represents trading activity for a 5-minute period during the current trading session, with the last tick updating in real time. This interval is ideal for swing traders and active day traders.

Request

Authentication

  • Type: Bearer Token
  • Required: Yes

Parameters

NameTypeRequiredDescriptionExample
symbolstringYesStock/Index symbol to retrieve data forAHCL

Response

Success Response (200)

{
"status": "ok",
"message": "",
"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

FieldTypeDescription
timenumberUnix timestamp (seconds since epoch, UTC)
opennumberOpening price for the 5-minute period
highnumberHighest price for the 5-minute period
lownumberLowest price for the 5-minute period
closenumberClosing price for the 5-minute period
volumenumberTrading volume for the 5-minute period
valuenumberTotal traded value (PKR)

Error Responses

For detailed Common Error responses, see the Error Handling.

Examples

Get 5 Minute Interval Data

curl -X GET "https://csapis.com/3.0/market/intraday/5m?symbol=AHCL" \
-H "Authorization: Bearer YOUR_API_TOKEN"

Use Cases

  • Swing Trading: Monitor 5-minute price patterns for swing trading
  • Intraday Charts: Create detailed 5-minute candlestick charts
  • Trend Analysis: Identify short-term trends and support/resistance
  • Active Trading: Track medium-term intraday movements