Analytics are powered by the Python ML service (apps/ml, port 5000). If you see ml-unavailable, start it with cd apps/ml && uvicorn main:app --port 5000. The first endpoint below pings it directly.
Capability
Team — Analytics
All analytics tiles, plus Python ML service health.
Python ML health
GET /api/admin/ml-health
—
Scrap rate (30d)
GET /api/admin/analytics/scrap-rate?days=30
—
On-time delivery (90d)
GET /api/admin/analytics/on-time-delivery?days=90
—
Stale quotes (14d)
GET /api/admin/analytics/stale-quotes?days=14
—
Aging payouts
GET /api/admin/analytics/aging-payouts
—