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

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

# Transaction.Time

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

## Time

Gets transaction time.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
DateTime Time {get;}
```

Python:

```python
transaction.Time: DateTime
```

### Returns

`DateTime` — 

Available since cAlgo.API 5.2.

### Examples

C#:

```csharp
var lastMonth = Transactions.Where(transaction => transaction.Time > Server.Time.AddMonths(-1)).ToArray();
Print("Transactions in the last month: {0}", lastMonth.Length);
```

Python:

```python
lastMonth = [transaction for transaction in api.Transactions if transaction.Time > api.Server.Time.AddMonths(-1)]
api.Print(f"Transactions in the last month: {len(lastMonth)}")
```

