Search Instruments
InstrumentSearchInstrumentsResponse v1().instruments().searchInstruments(InstrumentSearchInstrumentsParamsparams, RequestOptionsrequestOptions = RequestOptions.none())
GET/v1/instruments/search
Search instruments by symbol, alternate identifier, or company name.
The q parameter is case-insensitive and supports ticker symbols,
alternate identifiers such as CUSIP, ISIN, and OPRA root,
and company names for non-option instruments. Results are ranked by match
quality plus instrument quality signals and relevance. Defaults to the EQUITY asset class (common
stocks, preferred shares, ADRs, ETFs, and exchange-traded mutual funds).
Pass asset_class=OPTION to search option contracts: by full OSI symbol, by
an OSI prefix (root + YYMMDD expiry, e.g. AAPL 261217), or by a
root-scoped phrase such as AAPL Dec 250 call.
Search Instruments
package com.clearstreet.api.example;
import com.clearstreet.api.client.ClearStreetClient;
import com.clearstreet.api.client.okhttp.ClearStreetOkHttpClient;
import com.clearstreet.api.models.v1.instruments.InstrumentSearchInstrumentsParams;
import com.clearstreet.api.models.v1.instruments.InstrumentSearchInstrumentsResponse;
public final class Main {
private Main() {}
public static void main(String[] args) {
ClearStreetClient client = ClearStreetOkHttpClient.builder()
.fromEnv()
.apiKey("My API Key")
.build();
InstrumentSearchInstrumentsParams params = InstrumentSearchInstrumentsParams.builder()
.q("q")
.build();
InstrumentSearchInstrumentsResponse response = client.v1().instruments().searchInstruments(params);
}
}{
"data": [
{
"country_of_issue": "US",
"currency": "USD",
"easy_to_borrow": true,
"id": "0f5a1a4e-5b3e-4d8f-9b7a-2b1d0e3f4a5b",
"instrument_type": "COMMON_STOCK",
"is_fractionable": false,
"is_liquidation_only": false,
"is_marginable": true,
"is_ptp": false,
"is_short_prohibited": false,
"is_threshold_security": false,
"is_tradable": true,
"name": "Apple Inc.",
"symbol": "AAPL",
"venue": "XNMS"
}
],
"error": null,
"metadata": {
"request_id": "6c7d8e9f-0a1b-2c3d-4e5f-6a7b8c9d0e1f"
}
}{
"data": [
{
"country_of_issue": "US",
"currency": "USD",
"easy_to_borrow": true,
"id": "0f5a1a4e-5b3e-4d8f-9b7a-2b1d0e3f4a5b",
"instrument_type": "COMMON_STOCK",
"is_fractionable": false,
"is_liquidation_only": false,
"is_marginable": true,
"is_ptp": false,
"is_short_prohibited": false,
"is_threshold_security": false,
"is_tradable": true,
"name": "Apple Inc.",
"symbol": "AAPL",
"venue": "XNMS"
}
],
"error": null,
"metadata": {
"request_id": "5b6c7d8e-9f0a-1b2c-3d4e-5f6a7b8c9d0e"
}
}Returns Examples
{
"data": [
{
"country_of_issue": "US",
"currency": "USD",
"easy_to_borrow": true,
"id": "0f5a1a4e-5b3e-4d8f-9b7a-2b1d0e3f4a5b",
"instrument_type": "COMMON_STOCK",
"is_fractionable": false,
"is_liquidation_only": false,
"is_marginable": true,
"is_ptp": false,
"is_short_prohibited": false,
"is_threshold_security": false,
"is_tradable": true,
"name": "Apple Inc.",
"symbol": "AAPL",
"venue": "XNMS"
}
],
"error": null,
"metadata": {
"request_id": "6c7d8e9f-0a1b-2c3d-4e5f-6a7b8c9d0e1f"
}
}{
"data": [
{
"country_of_issue": "US",
"currency": "USD",
"easy_to_borrow": true,
"id": "0f5a1a4e-5b3e-4d8f-9b7a-2b1d0e3f4a5b",
"instrument_type": "COMMON_STOCK",
"is_fractionable": false,
"is_liquidation_only": false,
"is_marginable": true,
"is_ptp": false,
"is_short_prohibited": false,
"is_threshold_security": false,
"is_tradable": true,
"name": "Apple Inc.",
"symbol": "AAPL",
"venue": "XNMS"
}
],
"error": null,
"metadata": {
"request_id": "5b6c7d8e-9f0a-1b2c-3d4e-5f6a7b8c9d0e"
}
}