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

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

# IAccount.AccountType

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

## AccountType

Returns the current account type.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
AccountType AccountType {get;}
```

Python:

```python
api.Account.AccountType: AccountType
```

### Returns

`AccountType` — 

### Examples

C#:

```csharp
Print("Account type: {0}", Account.AccountType);
if (Account.AccountType == AccountType.Netted)
    Print("Only one net position per symbol is allowed");
```

Python:

```python
api.Print(f"Account type: {api.Account.AccountType}")
if api.Account.AccountType == AccountType.Netted:
    api.Print("Only one net position per symbol is allowed")
```

