Skip to content

Latest commit

 

History

History
62 lines (43 loc) · 2.11 KB

File metadata and controls

62 lines (43 loc) · 2.11 KB

ValuationRatios

(valuationRatios())

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 com.benzinga.bzclient.Bzclient;
import com.benzinga.bzclient.models.operations.GetValuationRatiosV21Response;
import java.lang.Exception;

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

Parameter Type Required Description
symbols Optional<String> Comma separated list of symbols
asOf Optional<String> As of date
period Optional<String> Period
reportType Optional<String> Report Type

Response

GetValuationRatiosV21Response

Errors

Error Type Status Code Content Type
models/errors/APIException 4XX, 5XX */*