---
title: "Sparkline"
method: GET
path: "/api/sparkline/{ticker}"
tags: ["Sparkline"]
---

# Sparkline

`GET /api/sparkline/{ticker}`

## Request

- Base URL: `https://api.xfinlab.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.xfinlab.com/api/sparkline/{ticker}`
- Auth: none declared

Last ~20 daily closes for one ticker, ready for
XflSparkline.render() on the frontend. Always returns 200 with an
empty list on any failure (bad ticker, data source down) -- callers
treat an empty/missing sparkline as "just don't draw one for this
card", never as an error to surface to the user.

## Path parameters

- `ticker` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/xfinlab/apis/xfinlab-api.md) · [All operations](https://skmtc.dev/xfinlab/apis/xfinlab-api/llms.txt) · [OpenAPI document](https://skmtc.dev/xfinlab/apis/xfinlab-api/revisions/205f85614bc6?raw)
