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

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

# Plugin.PriceAlerts

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

## PriceAlerts

Provides access to Price Alerts.

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: Plugins cannot run in the CLI: ctrader-cli runs cBots only.
- Cloud: Plugins cannot run in the cloud: it runs cBots only.

C#:

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

Python:

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

### Returns

`PriceAlerts` — 

Available since cAlgo.API 5.2.

### Examples

C#:

```csharp
Print("Price alerts: {0}", PriceAlerts.Count);
foreach (var priceAlert in PriceAlerts.FindAll("EURUSD"))
    Print("EURUSD alert {0} at {1} ({2})", priceAlert.Id, priceAlert.Price, priceAlert.Condition);
```

Python:

```python
api.Print(f"Price alerts: {api.PriceAlerts.Count}")
for priceAlert in api.PriceAlerts.FindAll("EURUSD"):
    api.Print(f"EURUSD alert {priceAlert.Id} at {priceAlert.Price} ({priceAlert.Condition})")
```

