Skip to main content
< 돌아가기

개요

사용 가능한 작업

  • getV22 - 배당 데이터 V2.2 가져오기
  • get - 배당 데이터 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

오류

오류 유형상태 코드콘텐츠 유형
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

오류

오류 유형상태 코드콘텐츠 유형
models/errors/APIException4XX, 5XX/