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

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

# PendingOrder.ProtectionType

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

## ProtectionType

Gets the order protection type.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
ProtectionType ProtectionType {get;}
```

Python:

```python
pendingOrder.ProtectionType: ProtectionType
```

### Returns

`ProtectionType` — 

Available since cAlgo.API 5.1.

### Examples

C#:

```csharp
foreach (var order in PendingOrders)
    Print("Order {0} protection type: {1}", order.Id, order.ProtectionType);
```

Python:

```python
for order in api.PendingOrders:
    api.Print(f"Order {order.Id} protection type: {order.ProtectionType}")
```

