Skip to main content
< 戻る

概要

利用可能な操作

  • get - オペレーション比率 v2.1 を取得

get

指定したシンボルリストのオペレーション比率を取得します

使用例

package hello.world;

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

public class Application {

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

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

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

        if (res.string().isPresent()) {
            // レスポンスを処理
        }
    }
}

パラメータ

ParameterTypeRequiredDescription
symbolsString:heavy_check_mark:カンマ区切りのシンボル一覧
asOfOptional<String>:heavy_minus_sign:基準日
periodOptional<String>:heavy_minus_sign:会計期間
reportTypeOptional<String>:heavy_minus_sign:レポート種別

レスポンス

GetOperationRatiosV21Response

エラー

エラータイプステータスコードコンテンツタイプ
models/errors/APIException4XX, 5XX/