Get Watchlist By ID
WatchlistGetWatchlistByIdResponse v1().watchlist().getWatchlistById(WatchlistGetWatchlistByIdParamsparams = WatchlistGetWatchlistByIdParams.none(), RequestOptionsrequestOptions = RequestOptions.none())
GET/v1/watchlists/{watchlist_id}
Get Watchlist By ID
package com.clear_street.api.example;
import com.clear_street.api.client.ClearStreetClient;
import com.clear_street.api.client.okhttp.ClearStreetOkHttpClient;
import com.clear_street.api.models.v1.watchlist.WatchlistGetWatchlistByIdParams;
import com.clear_street.api.models.v1.watchlist.WatchlistGetWatchlistByIdResponse;
public final class Main {
private Main() {}
public static void main(String[] args) {
ClearStreetClient client = ClearStreetOkHttpClient.builder()
.fromEnv()
.apiKey("My API Key")
.build();
WatchlistGetWatchlistByIdResponse response = client.v1().watchlist().getWatchlistById("550e8400-e29b-41d4-a716-446655440000");
}
}{
"data": {
"created_at": "2025-01-15T10:00:00.000000000Z",
"id": "550e8400-e29b-41d4-a716-446655440000",
"items": [
{
"added_at": "2025-01-16T09:30:00.000000000Z",
"added_price": "150.25",
"id": "660e8400-e29b-41d4-a716-446655440001",
"instrument": {
"country_of_issue": "US",
"currency": "USD",
"easy_to_borrow": true,
"id": "a1a2a3a4-b1b2-c1c2-d1d2-d3d4d5d6d7d8",
"instrument_type": "COMMON_STOCK",
"is_liquidation_only": false,
"is_marginable": true,
"is_restricted": false,
"is_short_prohibited": false,
"is_threshold_security": false,
"is_tradable": true,
"name": "Apple Inc.",
"symbol": "AAPL",
"venue": "XNMS"
}
}
],
"name": "Tech Stocks"
},
"error": null,
"metadata": {
"request_id": "a1b2c3d4-e5f6-7890-1234-567890abcdef"
}
}{
"error": {
"code": 404,
"message": "Some requested entity was not found"
},
"metadata": {
"request_id": "8e6cec7b-342c-4231-a4f0-e650b48db699"
}
}Returns Examples
{
"data": {
"created_at": "2025-01-15T10:00:00.000000000Z",
"id": "550e8400-e29b-41d4-a716-446655440000",
"items": [
{
"added_at": "2025-01-16T09:30:00.000000000Z",
"added_price": "150.25",
"id": "660e8400-e29b-41d4-a716-446655440001",
"instrument": {
"country_of_issue": "US",
"currency": "USD",
"easy_to_borrow": true,
"id": "a1a2a3a4-b1b2-c1c2-d1d2-d3d4d5d6d7d8",
"instrument_type": "COMMON_STOCK",
"is_liquidation_only": false,
"is_marginable": true,
"is_restricted": false,
"is_short_prohibited": false,
"is_threshold_security": false,
"is_tradable": true,
"name": "Apple Inc.",
"symbol": "AAPL",
"venue": "XNMS"
}
}
],
"name": "Tech Stocks"
},
"error": null,
"metadata": {
"request_id": "a1b2c3d4-e5f6-7890-1234-567890abcdef"
}
}{
"error": {
"code": 404,
"message": "Some requested entity was not found"
},
"metadata": {
"request_id": "8e6cec7b-342c-4231-a4f0-e650b48db699"
}
}