Manage your Watchlists
Watchlists are an essential feature in Bigdata, allowing users to track specific securities or assets of interest with ease. Below, we’ll walk you through the process of managing your watchlists.
Create a Watchlist
To create a new watchlist, use the create
method and define the name
and a list of items:
Output:
Retrieve Watchlists
You can retrieve a watchlist by ID using the method get
:
Output:
The retrieved watchlist object contains the id
, name
and metadata
such as date_created
or last_updated
, representing the dates when
the object was created and last updated, respectively.
And you can access the watchlist items
list from the object (Items are
lazy evaluated)
Output:
You can also retrieve all your watchlists with the method list
:
Caution
When fetching all watchlists (bigdata.watchlists.list()
) you will get
all the watchlists you have access to, that is, those that belong to you
and those that were shared from someone within your organization.
list
method support owned
parameter
When owned=True
is provided only watchlists which owned by logged user
will be returned
Share Watchlists
Watchlists can be shared with everyone else in the company. Once a
watchlist is shared users will gain read access. They won’t be able to
modify it but they will be able to use it in their queries. To share a
watchlist, use the share_with_company
method.
You can share a watchlist using the object in memory:
Or using its ID:
After sharing, the company_shared_permission
attribute of the
watchlist object will be set to SharePermission.READ
.
Unshare Watchlists
You can unshare a watchlist using the method unshare_with_company
.
Using the object in memory:
Or using its ID:
If you delete a shared watchlist, those queries from not owner users will raise an error at execution time because of missing references.
Update Watchlists
Once you define a watchlist, you can always update its name:
Extend the list of existing items:
Or entirely replace it:
Delete Watchlists
If you no longer need a watchlist, you can delete it using the delete
method.
Using the object in memory:
Or using its ID: