PriceAlertUpdatedEventArgs
class cAlgo.API Since 5.2
DesktopCLICloud
Provides data for the price alert updated event.
Environment behaviour
Cloud — not supported. Never raised in the cloud: the events that pass it never fire there (PriceAlerts.Updated).
Definition
public class PriceAlertUpdatedEventArgs
Namespace: cAlgo.API · Group: EventArgs
Examples
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);
}
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
| Name | Description |
|---|---|
PriceAlertDesktopCLICloudPriceAlert | Gets updated price alert. |