CoinMetricsClient.catalog_market_quotes_v2

coinmetrics.api_client.CoinMetricsClient.catalog_market_quotes_v2(
    markets=None,
    exchange=None,
    market_type=None,
    base=None,
    quote=None,
    asset=None,
    symbol=None,
    start_time=None,
    end_time=None,
    start_inclusive=None,
    end_inclusive=None,
    timezone=None,
    format='json_stream',
    page_size=None,
    paging_from=None,
    next_page_token=None,
)

Returns a list of markets with quotes support along with the time ranges of available data.

  • Parameters:

    • markets (Optional *[*Union [strarrow-up-right , List [strarrow-up-right ] ] ]) -- Comma separated list of markets. By default all markets 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.

    • start_time (Optional *[*Union *[*datetime , date , strarrow-up-right ] ]) -- Start time of the interval.

    • end_time (Optional *[*Union *[*datetime , date , strarrow-up-right ] ]) -- End time of the interval.

    • start_inclusive (Optional [boolarrow-up-right ]) -- Whether to include the start time in the interval.

    • end_inclusive (Optional [boolarrow-up-right ]) -- Whether to include the end time in the interval.

    • timezone (Optional [strarrow-up-right ]) -- Timezone of the interval.

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

Last updated

Was this helpful?