---
title: "Get the metrics timeseries of a MerQube security"
method: GET
path: "/security/equity_legacy/{secname}/metrics/{name}/data"
tags: ["legacy_equity_security"]
---

# Get the metrics timeseries of a MerQube security

`GET /security/equity_legacy/{secname}/metrics/{name}/data`

## Request

- Base URL: `https://api.merqube.com`
- URL: `https://api.merqube.com/security/equity_legacy/{secname}/metrics/{name}/data`
- Auth: none declared
- TypeScript: <https://skmtc.dev/merqube/apis/merqube-api/docs/security/equity_legacy/:secname/metrics/:name/data/get.ts> (a function with typed inputs; its response is checked against the schema)

Get the metrics timeseries of a MerQube security

## Path parameters

- `secname` string, required
- `name` string, required

## Query parameters

- `start_date` union
  - string, date-time
  - string, date
  - string
- `end_date` union
  - string, date-time
  - string, date
  - string

## Response `200`

200 response

- object
  - `results` Metrics[]
    - `metrics` object[]
      - `id` string
      - `value` number
    - `ts` string, date-time: iso8601 format

## Other responses

- `400`: bad metric requested
- `404`: security does not exist

---

[API](https://skmtc.dev/merqube/apis/merqube-api.md) - [All operations](https://skmtc.dev/merqube/apis/merqube-api/llms.txt) - [OpenAPI document](https://skmtc.dev/merqube/apis/merqube-api/revisions/20f47ca36587?raw)
