---
id: "P:cAlgo.API.Internals.Algo.PendingOrders"
kind: "property"
type: "T:cAlgo.API.Internals.Algo"
url: "https://help.ctrader.com/ctrader-algo/references/General/Algo/PendingOrders/"
---

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

# Algo.PendingOrders

Member of [Algo](https://help.ctrader.com/ctrader-algo/references/General/Algo/index.md).

## PendingOrders

The array of all Pending Orders of the account.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
public PendingOrders PendingOrders {get;}
```

Python:

```python
api.PendingOrders: PendingOrders
```

### Returns

`PendingOrders` — 

### Examples

C#:

```csharp
foreach (var order in PendingOrders)
{
    if (order.StopLossPips == null)
        order.ModifyStopLossPips(20);
}
Print("Pending orders: {0}", PendingOrders.Count);
```

Python:

```python
for order in api.PendingOrders:
    if order.StopLossPips is None:
        order.ModifyStopLossPips(20)
api.Print(f"Pending orders: {api.PendingOrders.Count}")
```

