mirror of
https://github.com/shawnkim1997/All-in-one-Financial-Analysis.git
synced 2026-08-21 06:38:05 +00:00
19 lines
532 B
Python
19 lines
532 B
Python
"""Research deep-dive dashboard API."""
|
|
|
|
from __future__ import annotations
|
|
|
|
import asyncio
|
|
|
|
from fastapi import APIRouter
|
|
|
|
from server.services.research_dashboard import build_research_dashboard
|
|
|
|
router = APIRouter()
|
|
|
|
|
|
@router.get("/dashboard/{ticker}", summary="F-Score history, DuPont tree, Sankey, waterfall, anomalies")
|
|
async def research_dashboard(ticker: str):
|
|
"""Quant-only payload for Research page widgets."""
|
|
dashboard = await asyncio.to_thread(build_research_dashboard, ticker)
|
|
return dashboard.model_dump()
|