Skip to main content

Technicals by Symbol

Retrieve technical analysis indicators for a specific stock symbol.

GET/3.0/market/technicals

Description​

This endpoint returns a comprehensive set of technical analysis indicators for a specific stock symbol at a specified time interval. The response includes calculated values for various indicators such as Simple Moving Average (SMA). This is ideal for technical analysis, trend identification, and developing trading strategies.

Request​

Authentication​

  • Type: Bearer Token
  • Required: Yes

Parameters​

NameTypeRequiredDescriptionExample
symbolstringYesStock symbol/ticker code for the companySYS
intervalstringYesTime interval for indicators. Valid values for this endpoint are: 1h, 1d, 1w, 1M1d, 1w

Available Indicators​

IndicatorFull NameParameters
smaSimple Moving Average5, 10, 15, 20, 25, 50, 100, 200
bbBollinger Bands20, 2
voltVolatility10
rsiRelative Strength Index14
stochStochastic9, 6, 3
macdMACD12, 26, 9
rocRate of Change9
cciCommodity Channel Index14
ppPivot Points—
ppfPivot Points Fibonacci—

Response​

Success Response (200)​

{
"status": "ok",
"message": "",
"data": {
"indicators": [
{
"name": "sma",
"parameters": [
5
],
"values": [
153.65
]
},
{
"name": "bb",
"parameters": [
20,
2
],
"values": [
155.8975
]
},
{
"name": "volt",
"parameters": [
10
],
"values": [
3.9103
]
},
{
"name": "rsi",
"parameters": [
14
],
"values": [
62.9643
]
},
{
"name": "stoch",
"parameters": [
9,
6,
3
],
"values": [
80,
55.5387
]
},
{
"name": "macd",
"parameters": [
12,
26,
9
],
"values": [
0.8217
]
},
{
"name": "roc",
"parameters": [
9
],
"values": [
5.0889
]
},
{
"name": "cci",
"parameters": [
14
],
"values": [
126.8419
]
},
{
"name": "pp",
"values": [
157.1467
]
},
{
"name": "ppf",
"values": [
156.5733
]
}
]
}
}

Response Fields​

FieldTypeDescription
indicatorsarrayArray of calculated indicators View

Indicator Object Fields (indicators[])​

FieldTypeDescription
namestringName of the technical indicator
parametersarrayParameters used for the indicator calculation
valuesarrayCalculated values for the indicator

Error Responses​

For detailed Common Error responses, see the Error Handling.

Missing Parameters (200)​

{
"status": "error",
"message": "no `symbol` provided"
}
{
"status": "error",
"message": "no `interval` provided"
}

Invalid Interval (200)​

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

Examples​

Get Technical Indicators​

curl -X GET "https://csapis.com/3.0/market/technicals?symbol=SYS&interval=1d" \
-H "Authorization: Bearer YOUR_API_TOKEN"

Use Cases​

  • Technical Analysis: Calculate indicators for chart analysis and trading signals
  • Trend Identification: Identify price trends and momentum
  • Support/Resistance Levels: Determine key price levels
  • Overbought/Oversold Conditions: Identify potential reversal points
  • Algorithmic Trading: Feed technical data to automated trading systems