"""Routes for technical analysis indicators.""" from fastapi import APIRouter, Path from models import ApiResponse from route_utils import safe, validate_symbol import technical_service router = APIRouter(prefix="/api/v1") @router.get("/stock/{symbol}/technical", response_model=ApiResponse) @safe async def stock_technical(symbol: str = Path(..., min_length=1, max_length=20)): """Get technical indicators: RSI, MACD, SMA, EMA, Bollinger Bands + signal interpretation.""" symbol = validate_symbol(symbol) data = await technical_service.get_technical_indicators(symbol) return ApiResponse(data=data)