< BACK

Overview

Available Operations

  • get - Get operation ratios V2.1

get

Get operation ratios for a list of symbols

Example Usage

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()) {
            // handle response
        }
    }
}

Parameters

ParameterTypeRequiredDescription
symbolsString:heavy_check_mark: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

GetOperationRatiosV21Response

Errors

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

Was this page helpful?