Plugin.Watchlists
property · Plugin · cAlgo.API
DesktopCLICloud
Gets the watchlist.
Environment behaviour
CLI — not supported. Plugins cannot run in the CLI: ctrader-cli runs cBots only.
Cloud — not supported. Plugins cannot run in the cloud: it runs cBots only.
Definition
public Watchlists Watchlists {get;}
api.Watchlists: Watchlists
Returns Watchlists
Examples
foreach (var watchlist in Watchlists)
Print("{0}: {1}", watchlist.Name, string.Join(", ", watchlist.SymbolNames));
for watchlist in api.Watchlists:
api.Print(f"{watchlist.Name}: {', '.join(watchlist.SymbolNames)}")