# Overview

The Python client surface is split across the following classes:

* **`CoinMetricsClient`** -- the entry point. One Python method per Coin Metrics REST endpoint, grouped by endpoint root (Catalog v2, Time Series, ...).
* **`DataCollection`** -- the lazy iterator returned by every REST method. Provides paging, conversion to pandas/Polars data frames, and CSV/JSON export.
* **`ParallelDataCollection`** -- returned by `DataCollection.parallel(...)`. Splits a request across worker threads to accelerate historical exports.
* **`CmStream`** -- the WebSocket wrapper returned by every `get_stream_*` method. Provides connection management and message dispatch.
* **Exceptions** -- the typed exception hierarchy raised by the client (HTTP errors, rate limiting, transport failures, data-collection errors).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gitbook-docs.coinmetrics.io/python-api-client/reference/reference.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
