"""Single-ticker advisor API endpoints."""
from __future__ import annotations

from fastapi import APIRouter

from apps.web import advisor_service as svc

router = APIRouter(prefix="/advisor", tags=["advisor"])


@router.post("/evaluate", response_model=svc.AdvisorResponse)
async def evaluate(req: svc.AdvisorRequest) -> svc.AdvisorResponse:
    return await svc.evaluate(req)


@router.get("/champions")
def champions() -> dict[str, str]:
    return svc.champions()
