Skip to content

Latest commit

 

History

History
840 lines (597 loc) · 30.7 KB

README.md

File metadata and controls

840 lines (597 loc) · 30.7 KB

Fundamentals

(fundamentals())

Overview

Available Operations

getV21

Get Fundamentals V2.1

Example Usage

package hello.world;

import com.benzinga.bzclient.Bzclient;
import com.benzinga.bzclient.models.operations.GetFundamentalsV21Response;
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();

        GetFundamentalsV21Response res = sdk.fundamentals().getV21()
                .symbols("<value>")
                .asOf("<value>")
                .period("<value>")
                .reportType("<value>")
                .call();

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

Parameters

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

Response

GetFundamentalsV21Response

Errors

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

getAlphaBeta

Get Alpha Beta

Example Usage

package hello.world;

import com.benzinga.bzclient.Bzclient;
import com.benzinga.bzclient.models.operations.GetAlphaBetaV21Response;
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();

        GetAlphaBetaV21Response res = sdk.fundamentals().getAlphaBeta()
                .symbols("<value>")
                .asOf("<value>")
                .period("<value>")
                .reportType("<value>")
                .call();

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

Parameters

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

Response

GetAlphaBetaV21Response

Errors

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

getCompanyV21

Get Company Data

Example Usage

package hello.world;

import com.benzinga.bzclient.Bzclient;
import com.benzinga.bzclient.models.operations.GetCompanyV21Response;
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();

        GetCompanyV21Response res = sdk.fundamentals().getCompanyV21()
                .symbols("<value>")
                .asOf("<value>")
                .period("<value>")
                .reportType("<value>")
                .call();

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

Parameters

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

Response

GetCompanyV21Response

Errors

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

getCompanyProfileV21

Get Company Profile

Example Usage

package hello.world;

import com.benzinga.bzclient.Bzclient;
import com.benzinga.bzclient.models.operations.GetCompanyProfileV21Response;
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();

        GetCompanyProfileV21Response res = sdk.fundamentals().getCompanyProfileV21()
                .symbols("<value>")
                .asOf("<value>")
                .period("<value>")
                .reportType("<value>")
                .call();

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

Parameters

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

Response

GetCompanyProfileV21Response

Errors

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

getShareClass

Get Share Class

Example Usage

package hello.world;

import com.benzinga.bzclient.Bzclient;
import com.benzinga.bzclient.models.operations.GetShareClassV21Response;
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();

        GetShareClassV21Response res = sdk.fundamentals().getShareClass()
                .symbols("<value>")
                .asOf("<value>")
                .period("<value>")
                .reportType("<value>")
                .call();

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

Parameters

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

Response

GetShareClassV21Response

Errors

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

getShareClassProfile

Get Share Class Profile

Example Usage

package hello.world;

import com.benzinga.bzclient.Bzclient;
import com.benzinga.bzclient.models.operations.GetShareClassProfileV21Response;
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();

        GetShareClassProfileV21Response res = sdk.fundamentals().getShareClassProfile()
                .symbols("<value>")
                .asOf("<value>")
                .period("<value>")
                .reportType("<value>")
                .call();

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

Parameters

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

Response

GetShareClassProfileV21Response

Errors

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

get

Get Fundamentals V2

Example Usage

package hello.world;

import com.benzinga.bzclient.Bzclient;
import com.benzinga.bzclient.models.operations.GetFundamentalsV2Response;
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();

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

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

Parameters

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

Response

GetFundamentalsV2Response

Errors

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

getAssetClassification

Get Asset Classification

Example Usage

package hello.world;

import com.benzinga.bzclient.Bzclient;
import com.benzinga.bzclient.models.operations.GetAssetClassificationV21Response;
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();

        GetAssetClassificationV21Response res = sdk.fundamentals().getAssetClassification()
                .symbols("<value>")
                .asOf("<value>")
                .period("<value>")
                .reportType("<value>")
                .call();

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

Parameters

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

Response

GetAssetClassificationV21Response

Errors

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

getEarningsReports

Get Earnings Reports

Example Usage

package hello.world;

import com.benzinga.bzclient.Bzclient;
import com.benzinga.bzclient.models.operations.GetEarningsReportsV21Response;
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();

        GetEarningsReportsV21Response res = sdk.fundamentals().getEarningsReports()
                .symbols("<value>")
                .asOf("<value>")
                .period("<value>")
                .reportType("<value>")
                .call();

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

Parameters

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

Response

GetEarningsReportsV21Response

Errors

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

getFinancialsV21

Get Financials V2.1

Example Usage

package hello.world;

import com.benzinga.bzclient.Bzclient;
import com.benzinga.bzclient.models.errors.BzhttpResp;
import com.benzinga.bzclient.models.operations.GetFinancialsV21Response;
import java.lang.Exception;

public class Application {

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

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

        GetFinancialsV21Response res = sdk.fundamentals().getFinancialsV21()
                .symbols("<value>")
                .asOf("<value>")
                .period("<value>")
                .reportType("<value>")
                .call();

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

Parameters

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

Response

GetFinancialsV21Response

Errors

Error Type Status Code Content Type
models/errors/BzhttpResp 400, 500 application/json
models/errors/APIException 4XX, 5XX */*

getV3

Get Fundamentals V3

Example Usage

package hello.world;

import com.benzinga.bzclient.Bzclient;
import com.benzinga.bzclient.models.operations.GetFundamentalsV3Response;
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();

        GetFundamentalsV3Response res = sdk.fundamentals().getV3()
                .symbols("<value>")
                .from("<value>")
                .to("<value>")
                .date("2024-11-16")
                .call();

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

Parameters

Parameter Type Required Description
symbols String ✔️ Comma separated list of symbols
from Optional<String> From date
to Optional<String> To date
date Optional<String> Report Type

Response

GetFundamentalsV3Response

Errors

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

getBalanceSheetV3

Get Balance Sheet V3

Example Usage

package hello.world;

import com.benzinga.bzclient.Bzclient;
import com.benzinga.bzclient.models.errors.BzhttpResp;
import com.benzinga.bzclient.models.operations.GetBalanceSheetV3Response;
import java.lang.Exception;

public class Application {

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

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

        GetBalanceSheetV3Response res = sdk.fundamentals().getBalanceSheetV3()
                .symbols("<value>")
                .from("<value>")
                .to("<value>")
                .date("2024-01-14")
                .call();

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

Parameters

Parameter Type Required Description
symbols String ✔️ Symbols
from Optional<String> From
to Optional<String> To
date Optional<String> Report Type

Response

GetBalanceSheetV3Response

Errors

Error Type Status Code Content Type
models/errors/BzhttpResp 400 application/json
models/errors/APIException 4XX, 5XX */*

getCashFlowV3

Get Cash Flow V3

Example Usage

package hello.world;

import com.benzinga.bzclient.Bzclient;
import com.benzinga.bzclient.models.errors.BzhttpResp;
import com.benzinga.bzclient.models.operations.GetCashFlowV3Response;
import java.lang.Exception;

public class Application {

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

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

        GetCashFlowV3Response res = sdk.fundamentals().getCashFlowV3()
                .symbols("<value>")
                .from("<value>")
                .to("<value>")
                .date("2024-06-04")
                .call();

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

Parameters

Parameter Type Required Description
symbols String ✔️ Comma separated list of symbols
from Optional<String> From date
to Optional<String> To date
date Optional<String> Report Type

Response

GetCashFlowV3Response

Errors

Error Type Status Code Content Type
models/errors/BzhttpResp 400, 500 application/json
models/errors/APIException 4XX, 5XX */*

getIncomeStatement

Get Income Statement V3

Example Usage

package hello.world;

import com.benzinga.bzclient.Bzclient;
import com.benzinga.bzclient.models.operations.GetIncomeStatementV3Response;
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();

        GetIncomeStatementV3Response res = sdk.fundamentals().getIncomeStatement()
                .symbols("<value>")
                .from("<value>")
                .to("<value>")
                .date("2024-01-05")
                .call();

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

Parameters

Parameter Type Required Description
symbols String ✔️ Comma separated list of symbols
from Optional<String> From date
to Optional<String> To date
date Optional<String> Report Type

Response

GetIncomeStatementV3Response

Errors

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

getSharePriceRatios

Get Share Price Ratios

Example Usage

package hello.world;

import com.benzinga.bzclient.Bzclient;
import com.benzinga.bzclient.models.errors.BzhttpResp;
import com.benzinga.bzclient.models.operations.GetSharePriceRatiosV3Response;
import java.lang.Exception;

public class Application {

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

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

        GetSharePriceRatiosV3Response res = sdk.fundamentals().getSharePriceRatios()
                .symbols("<value>")
                .from("<value>")
                .to("<value>")
                .date("2024-07-17")
                .call();

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

Parameters

Parameter Type Required Description
symbols String ✔️ Comma separated list of symbols
from Optional<String> From date
to Optional<String> To date
date Optional<String> Report type

Response

GetSharePriceRatiosV3Response

Errors

Error Type Status Code Content Type
models/errors/BzhttpResp 400, 500 application/json
models/errors/APIException 4XX, 5XX */*