WatchlistRemovedEventArgs.Watchlist
property · WatchlistRemovedEventArgs · cAlgo.API
DesktopCLICloud
Gets the watchlist.
Environment behaviour
Cloud — not supported. Never raised in the cloud: the events that pass it never fire there (Watchlists.Removed).
Definition
public Watchlist Watchlist {get;}
watchlistRemovedEventArgs.Watchlist: Watchlist
Returns Watchlist
Examples
protected override void OnStart()
{
Watchlists.Removed += OnWatchlistsRemoved;
}
private void OnWatchlistsRemoved(WatchlistRemovedEventArgs args)
{
Print("Watchlist {0} with {1} symbols was removed", args.Watchlist.Name, args.Watchlist.SymbolNames.Count);
}
def on_start(self):
api.Watchlists.Removed += self.on_watchlists_removed
def on_watchlists_removed(self, args):
api.Print(f"Watchlist {args.Watchlist.Name} with {args.Watchlist.SymbolNames.Count} symbols was removed")