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

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

# Plugin.PendingOrders

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

## PendingOrders

The array of all Pending Orders of the account.

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: Plugins cannot run in the CLI: ctrader-cli runs cBots only.
- Cloud: Plugins cannot run in the cloud: it runs cBots only.

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)
        ModifyPendingOrder(order, order.TargetPrice, 10, order.TakeProfitPips, ProtectionType.Relative, order.ExpirationTime);
}
```

Python:

```python
for order in api.PendingOrders:
    if order.StopLossPips is None:
        api.ModifyPendingOrder(order, order.TargetPrice, 10, order.TakeProfitPips, ProtectionType.Relative, order.ExpirationTime)
```

