---
title: "Get PnL sparkline for a position"
method: GET
path: "/v1/positions/{positionId}/pnl-sparkline"
tags: ["positions"]
---

# Get PnL sparkline for a position

`GET /v1/positions/{positionId}/pnl-sparkline`

## Path parameters

- `positionId` string, uuid, required

## Response `200`

Successful response

- PnlSparklineOutput
  - `sparkline` SparklinePoint[], required
    - `t` number, required
    - `v` number, required

## Other responses

- `400` — Invalid input data
- `401` — Authorization not provided
- `403` — Insufficient access
- `404` — Resource not found
- `500` — Internal server error

---

[API](https://skmtc.net/legend/apis/legend-api.md) · [All operations](https://skmtc.net/legend/apis/legend-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/legend/legend-api/versions/34b8f4885f8a/schema)
