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

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

# Transaction.Type

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

## Type

Gets transaction type.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
TransactionType Type {get;}
```

Python:

```python
transaction.Type: TransactionType
```

### Returns

`TransactionType` — 

Available since cAlgo.API 5.2.

### Examples

C#:

```csharp
var withdrawals = Transactions.Count(transaction => transaction.Type == TransactionType.Withdrawal);
Print("Withdrawals: {0}", withdrawals);
```

Python:

```python
withdrawals = len([transaction for transaction in api.Transactions if transaction.Type == TransactionType.Withdrawal])
api.Print(f"Withdrawals: {withdrawals}")
```

