---
id: "T:cAlgo.API.Internals.AccountType"
kind: "enum"
namespace: "cAlgo.API.Internals"
url: "https://help.ctrader.com/ctrader-algo/references/Account/AccountType/"
---

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

# AccountType (enum)

Returns current account type

Environments: Desktop supported · CLI supported · Cloud supported.

## Definition

```csharp
public enum AccountType
```

## Examples

C#:

```csharp
using cAlgo.API;

namespace cAlgo
{
    // This example shows how to use the AccountType
    public partial class AccountTypeSample : Indicator
    {
        protected override void Initialize()
        {
            var text = string.Format("Account Type: {0}", Account.AccountType);

            Chart.DrawStaticText("text", text, VerticalAlignment.Top, HorizontalAlignment.Right, Color.Red);
        }

        public override void Calculate(int index)
        {
        }
    }
}
```

Python:

```python
import clr
clr.AddReference("cAlgo.API")

from cAlgo.API import *

class Test():
    def initialize(self):
        api.Chart.DrawStaticText("text", f"Account Type: {api.Account.AccountType}", VerticalAlignment.Top, HorizontalAlignment.Right, Color.Red)
```

config.json:

```json
{
  "AccessRights": "None",
  "TimeZone": "UTC",
  "IsOverlay": true
}
```

## Values

- `AccountType.Hedged` — Account type that allows hedged positions
- `AccountType.Netted` — Account type that allows only single net position per symbol

