Get Instruments
InstrumentGetInstrumentsResponse v1().instruments().getInstruments(InstrumentGetInstrumentsParamsparams = InstrumentGetInstrumentsParams.none(), RequestOptionsrequestOptions = RequestOptions.none())
GET/v1/instruments
Get Instruments
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.instruments.InstrumentGetInstrumentsParams;
import com.clear_street.api.models.v1.instruments.InstrumentGetInstrumentsResponse;
public final class Main {
private Main() {}
public static void main(String[] args) {
ClearStreetClient client = ClearStreetOkHttpClient.builder()
.fromEnv()
.apiKey("My API Key")
.build();
InstrumentGetInstrumentsResponse response = client.v1().instruments().getInstruments();
}
}{
"data": [
{
"country_of_issue": "US",
"currency": "USD",
"easy_to_borrow": true,
"id": "0f5a1a4e-5b3e-4d8f-9b7a-2b1d0e3f4a5b",
"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"
}
],
"error": null,
"metadata": {
"next_page_token": "cGFnZT0yJmxhc3Rfc3ltYm9sPUdNRQ==",
"page_number": 1,
"request_id": "4a5b6c7d-8e9f-0a1b-2c3d-4e5f6a7b8c9d",
"total_items": 10,
"total_pages": 5
}
}Returns Examples
{
"data": [
{
"country_of_issue": "US",
"currency": "USD",
"easy_to_borrow": true,
"id": "0f5a1a4e-5b3e-4d8f-9b7a-2b1d0e3f4a5b",
"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"
}
],
"error": null,
"metadata": {
"next_page_token": "cGFnZT0yJmxhc3Rfc3ltYm9sPUdNRQ==",
"page_number": 1,
"request_id": "4a5b6c7d-8e9f-0a1b-2c3d-4e5f6a7b8c9d",
"total_items": 10,
"total_pages": 5
}
}