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

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

# PendingOrder.LastUpdateTime

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

## LastUpdateTime

Gets the time when an order 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
pendingOrder.LastUpdateTime: DateTime | None
```

### Returns

`DateTime?` — 

### Examples

C#:

```csharp
foreach (var order in PendingOrders)
    Print("Order {0} last updated at {1}", order.Id, order.LastUpdateTime);
```

Python:

```python
for order in api.PendingOrders:
    api.Print(f"Order {order.Id} last updated at {order.LastUpdateTime}")
```

