---
title: "Graph Performance API"
method: GET
path: "/v1/{gateway}/engine/graph/performance"
---

# Graph Performance API

`GET /v1/{gateway}/engine/graph/performance`

Fetch and compare historical performance for smallcases on a single time axis.

`scids[]` required. Array query parameters use repeated params, for example: `?scids[]=SCSB_0001&scids[]=SCSB_0002`.

## Path parameters

- `gateway` string, required

## Query parameters

- `scids[]` string[]
- `stockBenchmarkIds[]` string[]
- `duration` '1y' | '3y' | '5y' | 'max'

## Headers

- `x-gateway-authtoken` string, required
- `x-gateway-apisecret` string, required

## Response `200`

Performance graph data. Each requested asset ID is returned as a top-level key inside `data`.

- object
  - `success` boolean, required — Whether the request completed successfully.
  - `errors` string[], required — Errors returned for the request.
  - `data` object, required — Performance payload containing available durations, the selected duration, and one entry per requested asset keyed by its ID.
    - `durations` string[], required — All time windows available for this asset set.
    - `currentDuration` string, required — The time window applied to this response.

## Other responses

- `400` — Missing or invalid parameters.
- `401` — Invalid or expired auth token.
- `403` — Requested smallcase not available on your gateway.

---

[API](https://skmtc.net/smallcase/apis/graph-performance-api.md) · [All operations](https://skmtc.net/smallcase/apis/graph-performance-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/smallcase/graph-performance-api/versions/6d2439eafede/schema)
