Get User's Watchlists
List a user's watchlists
Last updated
List a user's watchlists
Last updated
This GET endpoint enables you to retrieve the list of watchlists of a user whose ID is provided in the request's path. The watchlists can be retrieved either with only information about the watchlists or including the list of securities in every watchlist.
There are five required parameters that must be provided in the request:
Et-App-Key (header). This is the unique key of your app that identifies your app when communicating with our service. Contact your administrator to get this key.
Authorization (header). This is the authorization token from the very first .
API version (path). Unless necessary, leave it at "1.0".
userID (path). This is the ID of the user whose watchlists need to be retrieved.
includeSecurities (query). This field indicates if the retrieved watchlists should include their corresponding stocks.
Here's the final template for this API request:
In response to this API request, you'll receive a JSON file that lists the user's watchlists:
If the includeSecurities query parameter is set to true, the retrieved watchlists will include their corresponding securities:
Parameter
Description
Id
This is the internal identifier of the watchlist in Autoshares Trader.
Name
This is the name of the watchlist in Autoshares Trader.
Type
This is the type of the watchlist. It could either be a user-created watchlist or a default watchlist provided by the system.
CreateDate
This is the date on which the watchlist was created.
ModifyDate
This is the date on which the watchlist was last modified.
ReadOnly
This field indicates if the watchlist is modifiable.
SecurityList
This is a collection of securities in the watchlist.
Here are some of the common mistakes that developers make when attempting to retrieve a user's watchlists.
If you specify the wrong Et-App-Key parameter or fail to include it in the header altogether, you'll get the following error:
It's crucial to understand that the includeSecurities parameter must be indicated in the request; otherwise you'll receive the 404 status code and the following message:
The following article covers the syntax for this API request in detail.