Watchlists
Retrieves a watchlist or a list of watchlists.
Endpoints
Retrieve a Watchlist Object
Parameters
api_key string
required
Your authentication key needed to make requests.
format string
default: json
Defines return format of response. Options are json or csv. Default is json.
Example Request
cURL
curl -X GET "https://sensaai.com/data/v1/watchlists/70?api_key=API_KEY"
Response
Returns a watchlist object if a valid watchlist ID was provided. Returns an error otherwise.
{
"id": "70",
"name": "My Selected Stocks",
"description": "A list of selected stocks that I am following closely.",
"private": true,
"createdAt": "2023-10-20T14:00:14.189005+00:00",
"stockCount": 17
}
Retrieve a List of Watchlist Objects
Parameters
api_key string
required
Your authentication key needed to make requests.
format string
default: json
Defines return format of response. Options are json or csv. Default is json.
Example Request
cURL
curl -X GET "https://sensaai.com/data/v1/watchlists/?api_key=API_KEY"
Response
[
{
"id": "69",
"name": "My Watchlist",
"description": "My favourite stocks",
"private": true,
"createdAt": "2023-10-10T12:25:14.159058+00:00",
"stockCount": 102
},
{
"id": "70",
"name": "My Selected Stocks",
"description": "A list of selected stocks that I am following closely.",
"private": true,
"createdAt": "2023-10-20T14:00:14.189005+00:00",
"stockCount": 3
}
...more watchlists
]