CoinMetricsClient.get_snapshots_of_asset_metric_constituents

coinmetrics.api_client.CoinMetricsClient.get_snapshots_of_asset_metric_constituents(
    metric,
    at_time=None,
    end_time=None,
    start_time=None,
    next_page_token=None,
    page_size=None,
    paging_from=None,
    format=None,
)

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).

  • Parameters:

    • metric (strarrow-up-right) -- Target metric name.

    • at_time (Optional [strarrow-up-right ]) -- Returns constituents at a specified date. Value now can be specified to get the current constituents. Mutually exclusive with start_time and/or end_time.

    • end_time (Optional *[*Union *[*datetime , date , strarrow-up-right ] ]) -- End of the time interval, inclusive. Multiple 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.123456789, 2006-01-20, 20060120. Mutually exclusive with at_time.

    • start_time (Optional *[*Union *[*datetime , date , strarrow-up-right ] ]) -- Start of the time interval, inclusive. Multiple 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.123456789, 2006-01-20, 20060120. Mutually exclusive with at_time.

    • next_page_token (Optional [strarrow-up-right ]) -- Token for receiving the results from the next page of a query. Should not be used directly. To iterate through pages just use next_page_url response field.

    • page_size (Optional [intarrow-up-right ]) -- Number of items per single page of results.

    • paging_from (Optional [strarrow-up-right ]) -- Where does the first page start, at the start of the interval or at the end.

    • format (Optional [strarrow-up-right ]) -- Format of the response. Supported values are json, csv. Default is json.

Returns:

Last updated

Was this helpful?