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
Available Indicators
| Indicator | Full Name | Parameters* |
|---|---|---|
sma | Simple Moving Average | Period |
bb | Bollinger Bands | Period, Standard Deviation Multiplier |
volt | Volatility | Period |
rsi | Relative Strength Index | Period |
stoch | Stochastic | %K Period, %K Smoothing, %D Period |
macd | MACD | Fast EMA Period, Slow EMA Period, Signal Period |
roc | Rate of Change | Period |
cci | Commodity Channel Index | Period |
pp | Pivot Points | No configurable parameters (uses previous period OHLC) |
ppf | Pivot Points Fibonacci | No configurable parameters (uses Fibonacci pivot calculations on previous period OHLC) |
*mutiple parameters are comma seperated
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": "no `symbol` provided"
}
```json
{
"status": "error",
"message": "no `interval` provided"
}
Invalid Indicator (200)
{
"status": "error",
"message": "invalid_indicator"
}
Invalid Interval (200)
{
"status": "error",
"message": "invalid_interval"
}
Examples
Get STOCH Indicator
curl --location 'https://csapis.com/3.0/market/technicals/indicator?interval=1m&indicator=stoch¶ms=9,6,3' \
--header 'Authorization: Bearer YOUR_API_TOKEN'
GET Bollinger Bands Indicator
curl --location 'https://csapis.com/3.0/market/technicals/indicator?interval=1m&indicator=bb¶ms=20,2' \
--header '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