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

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

# PriceAlertAddedEventArgs (class)

Provides data for the price alert added event.

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

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

## Definition

```csharp
public class PriceAlertAddedEventArgs
```

Available since cAlgo.API 5.2.

## Examples

C#:

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

private void OnPriceAlertsAdded(PriceAlertAddedEventArgs args)
{
    Print("Price alert added for {0} at {1}", args.PriceAlert.Symbol.Name, args.PriceAlert.Price);
}
```

Python:

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

def on_price_alerts_added(self, args):
    api.Print(f"Price alert added for {args.PriceAlert.Symbol.Name} at {args.PriceAlert.Price}")
```

## Properties

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

