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

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

# PendingOrder.Id

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

## Id

Unique order Id.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
int Id {get;}
```

Python:

```python
pendingOrder.Id: int
```

### Returns

`int` — 

### Examples

C#:

```csharp
var result = PlaceLimitOrder(TradeType.Buy, SymbolName, 10000, Symbol.Bid - 20 * Symbol.PipSize, "myLabel");
if (result.IsSuccessful)
    Print("The pending order's Id: {0}", result.PendingOrder.Id);
```

Python:

```python
result = api.PlaceLimitOrder(TradeType.Buy, api.SymbolName, 10000, api.Symbol.Bid - 20 * api.Symbol.PipSize, "myLabel")
if result.IsSuccessful:
    api.Print(f"The pending order's Id: {result.PendingOrder.Id}")
```

