< BACK

Overview

Available Operations

  • get - Get valuation ratios V2.1

get

Get valuation ratios for a list of symbols, ISINs, or CIKs

Example Usage

package hello.world;

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

public class Application {

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

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

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

        if (res.string().isPresent()) {
            // handle response
        }
    }
}

Parameters

ParameterTypeRequiredDescription
symbolsOptional<String>:heavy_minus_sign:Comma separated list of symbols
asOfOptional<String>:heavy_minus_sign:As of date
periodOptional<String>:heavy_minus_sign:Period
reportTypeOptional<String>:heavy_minus_sign:Report Type

Response

GetValuationRatiosV21Response

Errors

Error TypeStatus CodeContent Type
models/errors/APIException4XX, 5XX*/*

Was this page helpful?