Skip to main content
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.
    • constituents (Optional *[*Union [str , List [str ] ] ]) — Comma separated list of constituents. By default all constituents are returned. Different asset metrics may have different constituents. For example, constituents for volume_trusted_spot_usd_1d are exchanges.
    • 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: