> ## Documentation Index
> Fetch the complete documentation index at: https://docs.benzinga.com/llms.txt
> Use this file to discover all available pages before exploring further.

# インサイダー取引

> insiderTransaction()

[\< 戻る](/ja/sdks/languages/java#insidertransaction)

<div id="overview">
  ## 概要
</div>

<div id="available-operations">
  ### 利用可能な操作
</div>

* [get](#get) - インサイダー取引情報を取得

<div id="get">
  ## 取得
</div>

インサイダー取引の取得

<div id="example-usage">
  ### 使用例
</div>

```java theme={null}
package hello.world;

import java.lang.Exception;
import org.benzinga.BZClient.Bzclient;
import org.benzinga.BZClient.models.errors.ApiErrorResponse;
import org.benzinga.BZClient.models.operations.GetInsiderTransactionRequest;
import org.benzinga.BZClient.models.operations.GetInsiderTransactionResponse;
import org.benzinga.BZClient.models.operations.PathParamType;

public class Application {

    public static void main(String[] args) throws ApiErrorResponse, Exception {

        Bzclient sdk = Bzclient.builder()
                .apiKeyAuth("<YOUR_API_KEY_HERE>")
            .build();

        GetInsiderTransactionRequest req = GetInsiderTransactionRequest.builder()
                .type(PathParamType.FILINGS)
                .build();

        GetInsiderTransactionResponse res = sdk.insiderTransaction().get()
                .request(req)
                .call();

        if (res.modelsInsiderTransactionFilingJSON().isPresent()) {
            // レスポンスを処理する
        }
    }
}
```

<div id="parameters">
  ### パラメータ
</div>

| パラメータ     | 型                                                                                       | 必須                   | 説明                       |
| --------- | --------------------------------------------------------------------------------------- | -------------------- | ------------------------ |
| `request` | [GetInsiderTransactionRequest](../../models/operations/GetInsiderTransactionRequest.md) | :heavy\_check\_mark: | このリクエストで使用するリクエストオブジェクト。 |

<div id="response">
  ### レスポンス
</div>

**[GetInsiderTransactionResponse](../../models/operations/GetInsiderTransactionResponse.md)**

<div id="errors">
  ### エラー
</div>

| エラー種別                          | ステータスコード | Content-Type     |
| ------------------------------ | -------- | ---------------- |
| models/errors/ApiErrorResponse | 400, 500 | application/json |
| models/errors/APIException     | 4XX, 5XX | */*              |
