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

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

# Position.CurrentPrice

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

## CurrentPrice

Gets the position current market price. If Position's TradeType is Buy it returns Symbol current Bid price. If position's TradeType is Sell it returns Symbol current Ask price.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
double CurrentPrice {get;}
```

Python:

```python
position.CurrentPrice: float
```

### Returns

`double` — 

### Examples

C#:

```csharp
var position = Positions.Find("myLabel");
if (position != null)
    Print("Entry {0}, current price {1}", position.EntryPrice, position.CurrentPrice);
```

Python:

```python
position = api.Positions.Find("myLabel")
if position is not None:
    api.Print(f"Entry {position.EntryPrice}, current price {position.CurrentPrice}")
```

