---
title: "Asset metrics"
method: GET
path: "/timeseries-stream/asset-metrics"
tags: ["Timeseries stream"]
---

# Asset metrics

`GET /timeseries-stream/asset-metrics`

## Request

- Base URL: `wss://api.coinmetrics.io/v4`
- URL: `wss://api.coinmetrics.io/v4/timeseries-stream/asset-metrics`
- Auth: API key in query parameter `api_key`
- TypeScript: <https://skmtc.dev/coinmetrics/apis/coin-metrics-api-v4/docs/timeseries-stream/asset-metrics/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns a WebSocket stream of metrics for specified assets.<br/> Endpoint supports only block by block (`1b` frequency), per second (`1s` frequency), and sub-second (`200ms` frequency) metrics.<br/> Different sets of metrics may come in different messages.<br/> If you are falling behind (slow client) you will get `warning` message first, then `error` message and disconnection will happen.

## Query parameters

- `assets` string[], required
- `metrics` string[], required
- `frequency` string
- `backfill` 'latest' | 'none'
- `pretty` boolean
- `ignore_unsupported_errors` boolean
- `ignore_forbidden_errors` boolean

## Response `default`

Asset metrics WebSocket message.

- StreamingAssetMetric: Metric values.
  - `asset` string, required: Name of the asset.
  - `time` string, required: The time in ISO 8601 date-time format. Always with nanoseconds precision.
  - `cm_sequence_id` string, required: The monotonically increasing message number, resets on disconnection.

## Other responses

- `414`: Provided URI is too long. It must not be greater than 10000 symbols.

---

[API](https://skmtc.dev/coinmetrics/apis/coin-metrics-api-v4.md) - [All operations](https://skmtc.dev/coinmetrics/apis/coin-metrics-api-v4/llms.txt) - [OpenAPI document](https://skmtc.dev/coinmetrics/apis/coin-metrics-api-v4/revisions/774268c0a4fe?raw)
