---
id: "P:cAlgo.API.Internals.IAccount.IsLive"
kind: "property"
type: "T:cAlgo.API.Internals.IAccount"
url: "https://help.ctrader.com/ctrader-algo/references/Account/IAccount/IsLive/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# IAccount.IsLive

Member of [IAccount](https://help.ctrader.com/ctrader-algo/references/Account/IAccount/index.md).

## IsLive

Defines if the account is Live or Demo. True if the Account is Live, False if it is a Demo.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
bool IsLive {get;}
```

Python:

```python
api.Account.IsLive: bool
```

### Returns

`bool` — 

### Examples

C#:

```csharp
if (Account.IsLive)
    Print("Live Account");
else
    Print("Demo Account");
```

Python:

```python
if api.Account.IsLive:
    api.Print("Live Account")
else:
    api.Print("Demo Account")
```

