Skip to content
Get started

Delete Watchlist Item

v1.watchlist.delete_watchlist_item(stritem_id, WatchlistDeleteWatchlistItemParams**kwargs) -> object
DELETE/v1/watchlists/{watchlist_id}/items/{item_id}

Delete an instrument from a watchlist

ParametersExpand Collapse
watchlist_id: str
item_id: str
ReturnsExpand Collapse
object

Delete Watchlist Item

from clear_street import ClearStreet

client = ClearStreet(
    api_key="My API Key",
)
response = client.v1.watchlist.delete_watchlist_item(
    item_id="660e8400-e29b-41d4-a716-446655440001",
    watchlist_id="550e8400-e29b-41d4-a716-446655440000",
)
print(response)
{
  "data": null,
  "metadata": {
    "request_id": "5b0709e3-5868-4116-9a84-26f1b8c30503"
  }
}
{
  "error": {
    "code": 404,
    "message": "Some requested entity was not found"
  },
  "metadata": {
    "request_id": "8462e079-739c-421b-b2d2-35cf007b4fc7"
  }
}
Returns Examples
{
  "data": null,
  "metadata": {
    "request_id": "5b0709e3-5868-4116-9a84-26f1b8c30503"
  }
}
{
  "error": {
    "code": 404,
    "message": "Some requested entity was not found"
  },
  "metadata": {
    "request_id": "8462e079-739c-421b-b2d2-35cf007b4fc7"
  }
}