概要
利用可能な操作
- get - 株式分割情報を取得
取得
使用例
package hello.world;
import java.lang.Exception;
import org.benzinga.BZClient.Bzclient;
import org.benzinga.BZClient.models.operations.GetSplitsRequest;
import org.benzinga.BZClient.models.operations.GetSplitsResponse;
public class Application {
public static void main(String[] args) throws Exception {
Bzclient sdk = Bzclient.builder()
.apiKeyAuth("<YOUR_API_KEY_HERE>")
.build();
GetSplitsRequest req = GetSplitsRequest.builder()
.build();
GetSplitsResponse res = sdk.splits().get()
.request(req)
.call();
if (res.modelsSplitJSON().isPresent()) {
// レスポンスを処理する
}
}
}
パラメータ
| パラメータ | 型 | 必須 | 説明 |
|---|---|---|---|
request | GetSplitsRequest | :heavy_check_mark: | このリクエストで使用するリクエストオブジェクト。 |
レスポンス
エラー
| エラータイプ | ステータスコード | Content-Type |
|---|---|---|
| models/errors/APIException | 4XX, 5XX | / |