PriceAlerts.FindAll
method · PriceAlerts · cAlgo.API Since 5.2
DesktopCLICloud
Finds all price alerts by their symbol.
Environment behaviour
Cloud — not supported. Always empty: Count 0, Find null, FindAll empty, Remove false. Added/Removed/Updated/Triggered never raised.
Definition
PriceAlert[] FindAll(string symbolName)
api.PriceAlerts.FindAll(symbolName: str) -> list[PriceAlert]
Parameters
| Name | C# type | Python type | Description |
|---|---|---|---|
symbolName | string | str | The symbol name of the price alert. |
Returns PriceAlert[] — Array of PriceAlerts.
Examples
var eurUsdAlerts = PriceAlerts.FindAll("EURUSD");
Print("EURUSD price alerts: {0}", eurUsdAlerts.Length);
eurUsdAlerts = api.PriceAlerts.FindAll("EURUSD")
api.Print(f"EURUSD price alerts: {len(eurUsdAlerts)}")