Technicals by Indicator
Retrieve technical analysis indicators for market data filtered by specific indicator type and interval.
GET/3.0/market/technicals/indicator
Description
This endpoint provides technical analysis indicator data across all stocks for a specified indicator type and time interval. It returns calculated technical values such as moving averages, RSI, MACD, Bollinger Bands, and other technical indicators. This is useful for market-wide technical analysis and screening.
Request
Authentication
- Type: Bearer Token
- Required: Yes
Parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
indicator | string | Yes | Technical indicator type | sma |
interval | string | Yes | Time interval for the indicator | 5m, 1h, 1d |
params | string | No | Comma-separated indicator parameters | 50 |
Supported Intervals
1m- 1 minute5m- 5 minutes15m- 15 minutes30m- 30 minutes1h- 1 hour1d- 1 day1w- 1 week1M- 1 month
Response
Success Response (200)
{
"status": "ok",
"message": "",
"data": {
"786": {
"name": "sma",
"parameters": [
50
],
"values": [
12.711
]
},
"AABS": {
"name": "sma",
"parameters": [
50
],
"values": [
1043.3294
]
},
"AASM": {
"name": "sma",
"parameters": [
50
],
"values": [
3.4972
]
},
}
}
Response Fields
The response data is an object where each key is a stock symbol, and each value contains:
| Field | Type | Description |
|---|---|---|
name | string | Technical indicator type (e.g. sma) |
parameters | array | Indicator parameters/period (e.g., [50] for 50-period SMA) |
values | array | Calculated indicator values |
Error Responses
For detailed Common Error responses, see the Error Handling.
Missing Parameters (200)
{
"status": "error",
"message": "interval not provided"
}
{
"status": "error",
"message": "indicator not provided"
}
Invalid Indicator (200)
{
"status": "error",
"message": "invalid_indicator"
}
Invalid Interval (200)
{
"status": "error",
"message": "invalid_interval"
}
Examples
Get SMA Indicator
curl -X GET "https://csapis.com/3.0/market/technicals/indicator?indicator=sma&interval=5m¶ms=50" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Use Cases
- Technical Screening: Screen stocks by technical indicator values
- Trend Identification: Identify trends using moving averages across the market
- Trading Signals: Get buy/sell signals based on technical indicators
- Market-Wide Analysis: Analyze technical conditions across all stocks
- Indicator Comparison: Compare different indicators' signals