CoinMetricsClient.get_timeframes_of_asset_metric_constituents
coinmetrics.api_client.CoinMetricsClient.get_timeframes_of_asset_metric_constituents(
metric,
constituents=None,
end_time=None,
start_time=None,
next_page_token=None,
page_size=None,
paging_from=None,
format=None,
)Returns timeframes of asset metric constituents. Results are sorted by tuple (start_time, constituent_name), where constituent 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 (start_time, exchange).
Parameters:
metric (str) -- Target metric name.
end_time (Optional *[*Union *[*datetime , date , str ] ]) -- 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.
start_time (Optional *[*Union *[*datetime , date , str ] ]) -- 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.
next_page_token (Optional [str ]) -- 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 [int ]) -- Number of items per single page of results.
paging_from (Optional [str ]) -- Where does the first page start, at the start of the interval or at the end.
format (Optional [str ]) -- Format of the response. Supported values are json, csv. Default is json.
Returns:
List of timeframes.
Last updated

