---
id: "P:cAlgo.API.Internals.Algo.PriceAlerts"
kind: "property"
type: "T:cAlgo.API.Internals.Algo"
url: "https://help.ctrader.com/ctrader-algo/references/General/Algo/PriceAlerts/"
---

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

# Algo.PriceAlerts

Member of [Algo](https://help.ctrader.com/ctrader-algo/references/General/Algo/index.md).

## PriceAlerts

Provides access to Price Alerts.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
public PriceAlerts PriceAlerts {get;}
```

Python:

```python
api.PriceAlerts: PriceAlerts
```

### Returns

`PriceAlerts` — 

Available since cAlgo.API 5.2.

### Examples

C#:

```csharp
var alert = PriceAlerts.Add(Symbol, Symbol.Bid + 20 * Symbol.PipSize, PriceAlertQuoteType.Bid, PriceAlertCondition.HigherOrEqual);
Print("Price alert {0} added at {1}, total alerts: {2}", alert.Id, alert.Price, PriceAlerts.Count);
```

Python:

```python
alert = api.PriceAlerts.Add(api.Symbol, api.Symbol.Bid + 20 * api.Symbol.PipSize, PriceAlertQuoteType.Bid, PriceAlertCondition.HigherOrEqual)
api.Print(f"Price alert {alert.Id} added at {alert.Price}, total alerts: {api.PriceAlerts.Count}")
```

