Create and manage watchlists with the Go SDK
watchlists, err := client.Watchlist.GetWatchlists("acc_123") if err != nil { log.Fatal(err) } for _, wl := range watchlists { fmt.Printf("%s: %d symbols\n", wl.Name, len(wl.Symbols)) }
wl, err := client.Watchlist.CreateWatchlist( "acc_123", "Tech Stocks", []string{"AAPL", "GOOGL", "MSFT"}, )
err := client.Watchlist.UpdateWatchlist("wl_123", symbols)
err := client.Watchlist.DeleteWatchlist("wl_123")
Was this page helpful?