You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
468 B
Python

"""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()