(earningRatios())
- get - Get earning ratios V2.1
Get earning ratios for a list of symbols, ISINs, or CIKs
package hello.world;
import com.benzinga.bzclient.Bzclient;
import com.benzinga.bzclient.models.operations.GetEarningRatiosV21Response;
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();
GetEarningRatiosV21Response res = sdk.earningRatios().get()
.symbols("<value>")
.asOf("<value>")
.period("<value>")
.reportType("<value>")
.call();
if (res.string().isPresent()) {
// handle response
}
}
}
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 |
Error Type | Status Code | Content Type |
---|---|---|
models/errors/APIException | 4XX, 5XX | */* |