> ## Documentation Index
> Fetch the complete documentation index at: https://kb.talostrading.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CmStream.run

```python theme={null}
coinmetrics.api_client.CmStream.run(
    on_message=None,
    on_error=None,
    on_close=None,
    reconnect=True,
)
```

* **Parameters:**
  * **on\_message** ([*Callable*](https://docs.python.org/3/library/typing.html#typing.Callable) *\[* \*\[\**WebSocket* *,* [*Any*](https://docs.python.org/3/library/typing.html#typing.Any) *]* *,* *None* *]*  *|* *None*)
  * **on\_error** ([*Callable*](https://docs.python.org/3/library/typing.html#typing.Callable) *\[* \*\[\**WebSocket* *,* [*Any*](https://docs.python.org/3/library/typing.html#typing.Any) *]* *,* *None* *]*  *|* *None*)
  * **on\_close** ([*Callable*](https://docs.python.org/3/library/typing.html#typing.Callable) *\[* \*\[\**WebSocket* *,* [*Any*](https://docs.python.org/3/library/typing.html#typing.Any) *,* [*Any*](https://docs.python.org/3/library/typing.html#typing.Any) *]* *,* *None* *]*  *|* *None*)
  * **reconnect** ([*bool*](https://docs.python.org/3/library/functions.html#bool))

**Returns:**

* None
