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

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

# IAccount.MarginLevel

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

## MarginLevel

Represents the margin level of the current account. Margin Level (in %) is calculated using this formula: Equity / Margin * 100

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
double? MarginLevel {get;}
```

Python:

```python
api.Account.MarginLevel: float | None
```

### Returns

`double?` — 

### Examples

C#:

```csharp
Print("The marginLevel of this account is: {0}", Account.MarginLevel);
```

Python:

```python
api.Print(f"The marginLevel of this account is: {api.Account.MarginLevel}")
```

