---
id: "T:cAlgo.API.PriceAlertUpdatedEventArgs"
kind: "class"
namespace: "cAlgo.API"
url: "https://help.ctrader.com/ctrader-algo/references/EventArgs/PriceAlertUpdatedEventArgs/"
---

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

# PriceAlertUpdatedEventArgs (class)

Provides data for the price alert updated event.

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

- Cloud: Never raised in the cloud: the events that pass it never fire there (PriceAlerts.Updated).

## Definition

```csharp
public class PriceAlertUpdatedEventArgs
```

Available since cAlgo.API 5.2.

## Examples

C#:

```csharp
protected override void OnStart()
{
    PriceAlerts.Updated += OnPriceAlertsUpdated;
}

private void OnPriceAlertsUpdated(PriceAlertUpdatedEventArgs args)
{
    Print("Price alert {0} updated, new price: {1}", args.PriceAlert.Id, args.PriceAlert.Price);
}
```

Python:

```python
def on_start(self):
    api.PriceAlerts.Updated += self.on_price_alerts_updated

def on_price_alerts_updated(self, args):
    api.Print(f"Price alert {args.PriceAlert.Id} updated, new price: {args.PriceAlert.Price}")
```

## Properties

- `public PriceAlert PriceAlert {get;}` — Gets updated price alert. [details](https://help.ctrader.com/ctrader-algo/references/EventArgs/PriceAlertUpdatedEventArgs/PriceAlert/index.md)

