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

Source: https://databento.com/docs/api-live/message-flows/start-session


# Starting the session

Once the gateway receives the [session start](https://databento.com/docs/api-live/client-control-messages/session-start.md) message,
it will start streaming data messages to the client and will continue until the connection is terminated.

Once the session has started, it's still possible to send new [subscriptions](https://databento.com/docs/api-live/client-control-messages/subscription-request.md) to the
gateway, as long as they do not contain the `start` field, and to [unsubscribe](https://databento.com/docs/api-live/message-flows/unsubscription.md) from symbols.

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

## Example

After authenticating, to subscribe to trades for all E-mini S&P 500 Futures on CME starting
from 2023-04-05 00:00:00 UTC, the client would send:

`schema=trades|stype_in=parent|symbols=ES.FUT|start=1680652800000000000\n`

Then, when ready to receive data, the client would send:

`start_session=1\n`

After this, the gateway will begin streaming data records to the client.
