---
id: "P:cAlgo.API.PriceAlertUpdatedEventArgs.PriceAlert"
kind: "property"
type: "T:cAlgo.API.PriceAlertUpdatedEventArgs"
url: "https://help.ctrader.com/ctrader-algo/references/EventArgs/PriceAlertUpdatedEventArgs/PriceAlert/"
---

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

# PriceAlertUpdatedEventArgs.PriceAlert

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

## PriceAlert

Gets updated price alert.

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

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

C#:

```csharp
public PriceAlert PriceAlert {get;}
```

Python:

```python
priceAlertUpdatedEventArgs.PriceAlert: PriceAlert
```

### Returns

`PriceAlert` — 

Available since cAlgo.API 5.2.

### Examples

C#:

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

private void OnPriceAlertsUpdated(PriceAlertUpdatedEventArgs args)
{
    var alert = args.PriceAlert;
    Print("Alert {0} updated at {1}, message: {2}", alert.Id, alert.LastUpdateTime, alert.Message);
}
```

Python:

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

def on_price_alerts_updated(self, args):
    alert = args.PriceAlert
    api.Print(f"Alert {alert.Id} updated at {alert.LastUpdateTime}, message: {alert.Message}")
```

