Skip to main content

Documentation Index

Fetch the complete documentation index at: https://finance.dev/llms.txt

Use this file to discover all available pages before exploring further.

Overview

The Watchlist API allows you to create, update, and delete watchlists for tracking securities.

Methods

GetWatchlists(accountID string)

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))
}

CreateWatchlist(accountID, name string, symbols []string)

wl, err := client.Watchlist.CreateWatchlist(
    "acc_123",
    "Tech Stocks",
    []string{"AAPL", "GOOGL", "MSFT"},
)

UpdateWatchlist(watchlistID string, symbols []string)

err := client.Watchlist.UpdateWatchlist("wl_123", symbols)

DeleteWatchlist(watchlistID string)

err := client.Watchlist.DeleteWatchlist("wl_123")