WatchlistRenamedEventArgs.Watchlist
property · WatchlistRenamedEventArgs · 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.WatchlistRenamed).
Definition
public Watchlist Watchlist {get;}
watchlistRenamedEventArgs.Watchlist: Watchlist
Returns Watchlist
Examples
protected override void OnStart()
{
Watchlists.WatchlistRenamed += OnWatchlistRenamed;
}
private void OnWatchlistRenamed(WatchlistRenamedEventArgs args)
{
Print("Watchlist new name: {0}", args.Watchlist.Name);
}
def on_start(self):
api.Watchlists.WatchlistRenamed += self.on_watchlist_renamed
def on_watchlist_renamed(self, args):
api.Print(f"Watchlist new name: {args.Watchlist.Name}")