---
id: "T:cAlgo.API.PendingOrderType"
kind: "enum"
namespace: "cAlgo.API"
url: "https://help.ctrader.com/ctrader-algo/references/Trading/Orders/PendingOrderType/"
---

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

# PendingOrderType (enum)

Represents the type of pending order.

Environments: Desktop supported · CLI supported · Cloud supported.

## Definition

```csharp
public enum PendingOrderType
```

## Examples

C#:

```csharp
foreach (var order in PendingOrders)
{
    if (order.OrderType == PendingOrderType.Limit)
        Print("Limit order {0} at {1}", order.Id, order.TargetPrice);
    else
        Print("{0} order {1} at {2}", order.OrderType, order.Id, order.TargetPrice);
}
```

Python:

```python
for order in api.PendingOrders:
    if order.OrderType == PendingOrderType.Limit:
        api.Print(f"Limit order {order.Id} at {order.TargetPrice}")
    else:
        api.Print(f"{order.OrderType} order {order.Id} at {order.TargetPrice}")
```

## Values

- `PendingOrderType.Limit` — A limit order is an order to buy or sell at a specific price or better.
- `PendingOrderType.Stop` — A stop order is an order to buy or sell once the price of the symbol reaches a specified price.
- `PendingOrderType.StopLimit` — A stop limit order is an order to buy or sell once the price of the symbol reaches specific price. Order has a parameter for maximum distance from that target price, where it can be executed.

