# Competition Lifecycle

The **Competition** is automated for starting and ending competitions based on predefined start and end times. Includes account activation, position closure, and user notifications.

## Auto Start

When the **start date** is reached:

* Competition state updates to **Active**.
* Registered users get assigned accounts under the selected Trading program.
* Account State changes from `Competition Pending` -> `Active`.

## Auto Close

When the **end date** is reached:

* All open positions are closed.
* All accounts are breached.
* Users receive a **breach email** with: `Rule Name: Competition Ended`.
