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

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

# Plugin.Account

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

## Account

Contains all Account information

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: Plugins cannot run in the CLI: ctrader-cli runs cBots only.
- Cloud: Plugins cannot run in the cloud: it runs cBots only.

C#:

```csharp
public IAccount Account {get;}
```

Python:

```python
api.Account: IAccount
```

### Returns

`IAccount` — 

### Examples

C#:

```csharp
Print("Balance: {0} {1}", Account.Balance, Account.Asset.Name);
Print("Equity: {0}, free margin: {1}", Account.Equity, Account.FreeMargin);
Print("Margin: {0}, margin level: {1}, leverage: {2}", Account.Margin, Account.MarginLevel, Account.PreciseLeverage);
```

Python:

```python
api.Print(f"Balance: {api.Account.Balance} {api.Account.Asset.Name}")
api.Print(f"Equity: {api.Account.Equity}, free margin: {api.Account.FreeMargin}")
api.Print(f"Margin: {api.Account.Margin}, margin level: {api.Account.MarginLevel}, leverage: {api.Account.PreciseLeverage}")
```

