Skip to main content
< 戻る

概要

利用可能な操作

  • getV22 - Dividends V2.2 を取得
  • get - Dividends V2 および V2.1 を取得

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()) {
            // レスポンスを処理する
        }
    }
}

パラメータ

パラメータ必須説明
requestGetDividendsV22Request:heavy_check_mark:このリクエストで使用するリクエストオブジェクト。

レスポンス

GetDividendsV22Response

エラー

エラータイプステータスコードContent-Type
models/errors/APIException4XX, 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()) {
            // レスポンスを処理する
        }
    }
}

パラメータ

パラメータ必須説明
requestGetDividendsRequest:heavy_check_mark:このリクエストで使用するリクエストオブジェクト。

レスポンス

GetDividendsResponse

エラー

エラータイプステータスコードContent-Type
models/errors/APIException4XX, 5XX/