Skip to content

KB / api

GET /api/v1/signals/sparklines

Last verified

Auto-generated. This article is rebuilt from FastAPI route introspection by scripts/build_api_kb.py. Edit the route docstring in app/ and re-run the script — do not edit this file directly.

GET /api/v1/signals/sparklines

Handler: app.signals.routes.get_sparklines
Methods: GET

Description

Per-metric {ts, value} series for inline sparklines.

Reads directly from daily_signals history; no extra aggregation. Caller selects the metrics they need so the response stays small — a typical dashboard request is 4-6 metrics × ~30 points. Unknown metric names return a structured 400 with the full alias catalog so UI callers can self-correct.

Parameters

InNameTypeDefaultDescription
queryperiodstr'30d'Lookback window, e.g. ‘30d’ or ‘90’. Min 2, max 365.
querymetricsstrPydanticUndefinedComma-separated metric names or aliases. Unknown names yield 400 with the catalog.

Curl

curl -s https://bigclawd.com/api/v1/signals/sparklines