Available languages: [Python](https://databento.com/docs/api-live/client/start.python.md) · [C++](https://databento.com/docs/api-live/client/start.cpp.md) · [Rust](https://databento.com/docs/api-live/client/start.rust.md) · [Raw](https://databento.com/docs/api-live/client/start.raw.md)

Source: https://databento.com/docs/api-live/client/start


### Live.start

Start the session.

A client can only be started once, and after a successful connection is made by calling [Live.subscribe](https://databento.com/docs/api-live/client/subscribe.md).

A client can be gracefully stopped by calling [Live.stop](https://databento.com/docs/api-live/client/stop.md) or forcefully using [Live.terminate](https://databento.com/docs/api-live/client/terminate.md)

When iterating records with [Live.\_\_iter\_\_](https://databento.com/docs/api-live/client/iter.md) or [Live.\_\_aiter\_\_](https://databento.com/docs/api-live/client/aiter.md) it is not necessary to call [Live.start](https://databento.com/docs/api-live/client/start.md) and doing so before iterating will raise a `ValueError`.

> **Info**
>
> A session cannot be started more than once.

#### API method

```python
Live.start() -> None
```

#### Example usage

```python
import databento as db

# Create a live client
client = db.Live(key="$YOUR_API_KEY")

# Subscribe to the trades schema for all ES futures
client.subscribe(
    dataset="GLBX.MDP3",
    schema="trades",
    stype_in="parent",
    symbols="ES.FUT",
)

# Print records as they arrive
client.add_callback(print)

# Start the streaming session
client.start()

# Block until disconnection
client.block_for_close()
```
