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

In Name Type Default Description
query period str '30d' Lookback window, e.g. β€˜30d’ or β€˜90’. Min 2, max 365.
query metrics str PydanticUndefined Comma-separated metric names or aliases. Unknown names yield 400 with the catalog.

Curl

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