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

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

# PendingOrder.OrderType

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

## OrderType

Specifies whether this order is Stop or Limit.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
PendingOrderType OrderType {get;}
```

Python:

```python
pendingOrder.OrderType: PendingOrderType
```

### Returns

`PendingOrderType` — 

### Examples

C#:

```csharp
foreach (var order in PendingOrders)
{
    if (order.OrderType == PendingOrderType.StopLimit)
        Print("Stop limit order {0}, range {1} pips", order.Id, order.StopLimitRangePips);
}
```

Python:

```python
for order in api.PendingOrders:
    if order.OrderType == PendingOrderType.StopLimit:
        api.Print(f"Stop limit order {order.Id}, range {order.StopLimitRangePips} pips")
```

