---
id: "P:cAlgo.API.Position.LastUpdateTime"
kind: "property"
type: "T:cAlgo.API.Position"
url: "https://help.ctrader.com/ctrader-algo/references/Trading/Positions/Position/LastUpdateTime/"
---

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

# Position.LastUpdateTime

Member of [Position](https://help.ctrader.com/ctrader-algo/references/Trading/Positions/Position/index.md).

## LastUpdateTime

Gets the time when a position was last updated. The timezone used is set in the algorithm class attribute.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
DateTime? LastUpdateTime {get;}
```

Python:

```python
position.LastUpdateTime: DateTime | None
```

### Returns

`DateTime?` — 

### Examples

C#:

```csharp
var position = Positions.Find("myLabel");
if (position != null && position.LastUpdateTime.HasValue)
    Print("Last updated at {0}", position.LastUpdateTime.Value);
```

Python:

```python
position = api.Positions.Find("myLabel")
if position is not None and position.LastUpdateTime is not None:
    api.Print(f"Last updated at {position.LastUpdateTime}")
```

