CoinMetricsClient.catalog_market_metrics_v2

coinmetrics.api_client.CoinMetricsClient.catalog_market_metrics_v2(
    markets=None,
    metrics=None,
    exchange=None,
    market_type=None,
    base=None,
    quote=None,
    asset=None,
    symbol=None,
    format='json_stream',
    page_size=None,
    paging_from=None,
    next_page_token=None,
)

Returns a list of markets with metrics support along with the time ranges of available data per metric.

  • Parameters:

    • markets (Optional *[*Union [strarrow-up-right , List [strarrow-up-right ] ] ]) -- Comma separated list of markets. By default all markets are returned.

    • metrics (Optional *[*Union [strarrow-up-right , List [strarrow-up-right ] ] ]) -- Comma separated list of metrics. By default all metrics are returned.

    • exchange (Optional [strarrow-up-right ]) -- Unique name of an exchange.

    • market_type (Optional [strarrow-up-right ]) -- Type of markets.

    • base (Optional [strarrow-up-right ]) -- Base asset of markets.

    • quote (Optional [strarrow-up-right ]) -- Quote asset of markets.

    • asset (Optional [strarrow-up-right ]) -- Any asset of markets.

    • symbol (Optional [strarrow-up-right ]) -- Symbol of derivative markets, full instrument name.

    • format (Optional [strarrow-up-right ]) -- Format of the response. Supported values are json, json_stream, csv. Default is json_stream. Setting format='json_stream' is generally more performant. page_size and paging_from is ignored when format='json_stream'.

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

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

Returns:

  • CatalogV2DataCollection

    • List of market metrics statistics.

Last updated

Was this helpful?