I am using the C# api to get a list of assets in a primary watchlist, but getting empty list
IReadOnlyList wl = await alpacaTradingClient.ListWatchListsAsync(token);
wl[0].Assets is a empty list everytime, even though my primary watch list is having many asset
I’ve checked the raw response from the Paper API using the Postman and curl tools and I can confirm - the /v2/watchlists
REST endpoint doesn’t return the assets for watchlists in the list. I’m not sure is it expected behavior or not but in any case, client-side SDK is unable to do anything with it. If you will request a single watchlist using the GetWatchListByIdAsync
or GetWatchListByNameAsync
methods the resulting object will have an assets list because the server returns this data.