Skip to main content
< 뒤로

개요

사용 가능한 작업

  • get - 수익 비율 V2.1 가져오기

get

심볼, 국제증권식별번호(ISIN) 또는 CIK 목록에 대한 이익 비율을 가져옵니다.

사용 예시

package hello.world;

import java.lang.Exception;
import org.benzinga.BZClient.Bzclient;
import org.benzinga.BZClient.models.operations.GetEarningRatiosV21Response;

public class Application {

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

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

        GetEarningRatiosV21Response res = sdk.earningRatios().get()
                .symbols("<value>")
                .asOf("<value>")
                .period("<value>")
                .reportType("<value>")
                .call();

        if (res.string().isPresent()) {
            // 응답 처리
        }
    }
}

Parameters

ParameterTypeRequiredDescription
symbolsOptional<String>:heavy_minus_sign:쉼표로 구분된 심볼 목록
asOfOptional<String>:heavy_minus_sign:기준일
periodOptional<String>:heavy_minus_sign:기간
reportTypeOptional<String>:heavy_minus_sign:보고서 유형

응답

GetEarningRatiosV21Response

오류

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