Endpoint: /api/stocks/indicators
Method: GET
Description: Retrieves technical indicators for a stock.
Parameters:
ticker
(string, required): Stock ticker symbol.indicator
(string, required): The type of indicator (e.g., RSI, MACD, SMA).period
(integer, optional): The period for the indicator calculation (default: 14).
Response:
jsonCopyEdit{
"status": "success",
"data": {
"ticker": "AAPL",
"indicator": "RSI",
"value": 55.34,
"period": 14,
"timestamp": "2025-01-25T14:30:00Z"
}
}