---
id: "P:cAlgo.API.Position.EntryTime"
kind: "property"
type: "T:cAlgo.API.Position"
url: "https://help.ctrader.com/ctrader-algo/references/Trading/Positions/Position/EntryTime/"
---

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

# Position.EntryTime

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

## EntryTime

Entry time of trade associated with the position. The Timezone used is set in the cBot attribute.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
DateTime EntryTime {get;}
```

Python:

```python
position.EntryTime: DateTime
```

### Returns

`DateTime` — 

### Examples

C#:

```csharp
var position = Positions.Find("myLabel");
if (position != null)
    Print("Position open for {0}", Server.Time - position.EntryTime);
```

Python:

```python
position = api.Positions.Find("myLabel")
if position is not None:
    api.Print(f"Position open for {api.Server.Time - position.EntryTime}")
```

