---
id: "P:cAlgo.API.HistoricalTrade.Pips"
kind: "property"
type: "T:cAlgo.API.HistoricalTrade"
url: "https://help.ctrader.com/ctrader-algo/references/Trading/History/HistoricalTrade/Pips/"
---

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

# HistoricalTrade.Pips

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

## Pips

Represents the winning or loosing pips

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
double Pips {get;}
```

Python:

```python
historicalTrade.Pips: float
```

### Returns

`double` — 

### Examples

C#:

```csharp
var totalPips = History.Sum(trade => trade.Pips);
Print("Total pips: {0}", totalPips);
```

Python:

```python
totalPips = sum(trade.Pips for trade in api.History)
api.Print(f"Total pips: {totalPips}")
```

