> For the complete documentation index, see [llms.txt](https://gitbook-docs.coinmetrics.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook-docs.coinmetrics.io/cm-api-spec/meta-data/constituent-snapshots/snapshots-of-asset-metric-constituents.md).

# Snapshots of asset metric constituents

Returns snapshots of asset metric constituents.\
Results are sorted by tuple (`time`, `constituent_name`), where `constituent_name` depends on a target metric. E.g., the `volume_trusted_spot_usd_1d` metric constituents are exchanges, i.e. the output will be sorted by (`time`, `exchange`).

```json
{"openapi":"3.0.2","info":{"title":"Coin Metrics API v4","version":"4.0.0"},"tags":[{"name":"Constituent Snapshots","description":"Endpoints for getting the snapshots of various constituents\n\n**Endpoints on this page:**\n- `GET /constituent-snapshots/asset-metrics` — Snapshots of asset metric constituents"}],"servers":[{"url":"https://api.coinmetrics.io/v4"},{"url":"wss://api.coinmetrics.io/v4"},{"url":"https://community-api.coinmetrics.io/v4"}],"security":[{"api_key":[]}],"components":{"securitySchemes":{"api_key":{"description":"Coin Metrics API key can be specified as `?api_key=` query parameter.","in":"query","name":"api_key","type":"apiKey"}},"parameters":{"ConstituentsMetricName":{"description":"Target metric name.","name":"metric","in":"query","required":true,"schema":{"type":"string"}},"ConstituentsAtTime":{"description":"Returns constituents at a specified date. \\\nValue `now` can be specified to get the current constituents. \\\nMutually exclusive with `start_time` and/or `end_time`.\n","name":"at_time","in":"query","required":false,"schema":{"type":"string"}},"ConstituentsStartTime":{"description":"Start of the time interval, inclusive. \\\nMultiple formats of ISO 8601 are supported: `2006-01-20T00:00:00Z`, `2006-01-20T00:00:00.000Z`, `2006-01-20T00:00:00.123456Z`, `2006-01-20T00:00:00.123456789Z`, `2006-01-20`, `20060120`. \\\nMutually exclusive with `at_time`.\n","name":"start_time","in":"query","schema":{"type":"string"}},"ConstituentsEndTime":{"description":"End of the time interval, inclusive. \\\nMultiple formats of ISO 8601 are supported: `2006-01-20T00:00:00Z`, `2006-01-20T00:00:00.000Z`, `2006-01-20T00:00:00.123456Z`, `2006-01-20T00:00:00.123456789Z`, `2006-01-20`, `20060120`. \\\nMutually exclusive with `at_time`.\n","name":"end_time","in":"query","schema":{"type":"string"}},"NextPageToken":{"description":"Token for receiving the results from the next page of a query.<br/> Should not be used directly. To iterate through pages just use `next_page_url` response field.","in":"query","name":"next_page_token","schema":{"type":"string"}},"PageSize":{"description":"Number of items per single page of results.<br/> The value of this parameter is ignored if the endpoint supports the `format` parameter and its value is set to `json_stream`.","in":"query","name":"page_size","schema":{"default":100,"type":"integer","format":"int32","minimum":1,"maximum":10000}},"PagingFrom":{"description":"Where does the first page start, at the start of the interval or at the end.<br/> The value of this parameter is ignored if the endpoint supports the `format` parameter and its value is set to `json_stream`.","in":"query","name":"paging_from","schema":{"default":"end","enum":["start","end"],"type":"string","format":"PagingFrom"}},"Format":{"description":"Format of the response.","in":"query","name":"format","schema":{"enum":["json","csv"],"type":"string","default":"json"}},"Pretty":{"description":"Human-readable formatting of JSON responses.","in":"query","name":"pretty","schema":{"type":"boolean","default":false}}},"responses":{"AssetMetricsConstituentSnapshots":{"description":"Snapshots of asset metric constituents.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConstituentSnapshotsAssetMetricsResponse"}},"text/csv":{"schema":{"$ref":"#/components/schemas/ConstituentSnapshotsAssetMetricsResponse"}}}},"MetricNotFound":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Metric not found."},"Unauthorized":{"description":"Requested resource requires authorization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"Forbidden":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Requested resource is not available with supplied credentials."},"UriTooLong":{"description":"Provided URI is too long. It must not be greater than 10000 symbols."}},"schemas":{"ConstituentSnapshotsAssetMetricsResponse":{"description":"Snapshots of asset metric constituents response.","type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"time":{"$ref":"#/components/schemas/Time"}},"required":["time"],"additionalProperties":{"nullable":true,"type":"string"}}},"next_page_token":{"$ref":"#/components/schemas/NextPageToken"},"next_page_url":{"$ref":"#/components/schemas/NextPageUrl"}},"required":["data"]},"Time":{"description":"The time in ISO 8601 date-time format. Always with nanoseconds precision.","type":"string","format":"date-time"},"NextPageToken":{"description":"Token of the next page results for a given request.","type":"string"},"NextPageUrl":{"description":"URL of the next page results for a given request.","type":"string"},"ErrorResponse":{"properties":{"error":{"$ref":"#/components/schemas/ErrorObject"}},"required":["error"],"type":"object"},"ErrorObject":{"properties":{"type":{"description":"Error type string. Can be used for error identification.","type":"string"},"message":{"description":"Human-friendly error description. Can be amended without prior notification. Do not use for error identification in your code.","type":"string"}},"required":["type","description"],"type":"object"}}},"paths":{"/constituent-snapshots/asset-metrics":{"get":{"summary":"Snapshots of asset metric constituents","description":"Returns snapshots of asset metric constituents. \\\nResults are sorted by tuple (`time`, `constituent_name`), where `constituent_name` depends on a target metric. \nE.g., the `volume_trusted_spot_usd_1d` metric constituents are exchanges, \ni.e. the output will be sorted by (`time`, `exchange`).\n","operationId":"getConstituentSnapshotsAssetMetrics","tags":["Constituent Snapshots"],"parameters":[{"$ref":"#/components/parameters/ConstituentsMetricName"},{"$ref":"#/components/parameters/ConstituentsAtTime"},{"$ref":"#/components/parameters/ConstituentsStartTime"},{"$ref":"#/components/parameters/ConstituentsEndTime"},{"$ref":"#/components/parameters/NextPageToken"},{"$ref":"#/components/parameters/PageSize"},{"$ref":"#/components/parameters/PagingFrom"},{"$ref":"#/components/parameters/Format"},{"$ref":"#/components/parameters/Pretty"}],"responses":{"200":{"$ref":"#/components/responses/AssetMetricsConstituentSnapshots"},"400":{"$ref":"#/components/responses/MetricNotFound"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"414":{"$ref":"#/components/responses/UriTooLong"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://gitbook-docs.coinmetrics.io/cm-api-spec/meta-data/constituent-snapshots/snapshots-of-asset-metric-constituents.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
