Skip to content
Get started

Delete Watchlist Item

$ clear-street v1:watchlist delete-watchlist-item
DELETE/v1/watchlists/{watchlist_id}/items/{item_id}

Delete an instrument from a watchlist

ParametersExpand Collapse
--watchlist-id: string

Watchlist ID

--item-id: string

Item ID

ReturnsExpand Collapse
V1WatchlistDeleteWatchlistItemResponse: unknown

Delete Watchlist Item

clear-street v1:watchlist delete-watchlist-item \
  --api-key 'My API Key' \
  --watchlist-id 550e8400-e29b-41d4-a716-446655440000 \
  --item-id 660e8400-e29b-41d4-a716-446655440001
{
  "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"
  }
}