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

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

# PriceAlertAddedEventArgs.PriceAlert

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

## PriceAlert

Gets added 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.Added).

C#:

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

Python:

```python
priceAlertAddedEventArgs.PriceAlert: PriceAlert
```

### Returns

`PriceAlert` — 

Available since cAlgo.API 5.2.

### Examples

C#:

```csharp
protected override void OnStart()
{
    PriceAlerts.Added += OnPriceAlertsAdded;
}

private void OnPriceAlertsAdded(PriceAlertAddedEventArgs args)
{
    var alert = args.PriceAlert;
    Print("Alert {0}: {1} {2} {3} ({4})", alert.Id, alert.Symbol.Name, alert.Condition, alert.Price, alert.QuoteType);
}
```

Python:

```python
def on_start(self):
    api.PriceAlerts.Added += self.on_price_alerts_added

def on_price_alerts_added(self, args):
    alert = args.PriceAlert
    api.Print(f"Alert {alert.Id}: {alert.Symbol.Name} {alert.Condition} {alert.Price} ({alert.QuoteType})")
```

