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

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

# Transaction.Amount

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

## Amount

Gets transaction amount.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
double Amount {get;}
```

Python:

```python
transaction.Amount: float
```

### Returns

`double` — 

Available since cAlgo.API 5.2.

### Examples

C#:

```csharp
var deposited = Transactions.Where(transaction => transaction.Type == TransactionType.Deposit).Sum(transaction => transaction.Amount);
Print("Total deposited: {0}", deposited);
```

Python:

```python
deposited = sum(transaction.Amount for transaction in api.Transactions if transaction.Type == TransactionType.Deposit)
api.Print(f"Total deposited: {deposited}")
```

