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