Skip to main content
< ๋’ค๋กœ ๊ฐ€๊ธฐ

๊ฐœ์š”

์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ ์ž‘์—…

  • getV21 - IPOs V2.1 ๊ฐ€์ ธ์˜ค๊ธฐ
  • get - IPOs V2 ๊ฐ€์ ธ์˜ค๊ธฐ

getV21

IPO ๋ฐ์ดํ„ฐ๋ฅผ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค.

์‚ฌ์šฉ ์˜ˆ์‹œ

package hello.world;

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

public class Application {

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

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

        GetIposV21Request req = GetIposV21Request.builder()
                .build();

        GetIposV21Response res = sdk.ipos().getV21()
                .request(req)
                .call();

        if (res.modelsIPOJSON().isPresent()) {
            // ์‘๋‹ต ์ฒ˜๋ฆฌ
        }
    }
}

๋งค๊ฐœ๋ณ€์ˆ˜

๋งค๊ฐœ๋ณ€์ˆ˜ํƒ€์ž…ํ•„์ˆ˜ ์—ฌ๋ถ€์„ค๋ช…
requestGetIposV21Request:heavy_check_mark:์š”์ฒญ์— ์‚ฌ์šฉํ•  ๊ฐ์ฒด์ž…๋‹ˆ๋‹ค.

์‘๋‹ต

GetIposV21Response

์˜ค๋ฅ˜

์˜ค๋ฅ˜ ์œ ํ˜•์ƒํƒœ ์ฝ”๋“œ์ฝ˜ํ…์ธ  ์œ ํ˜•
models/errors/APIException4XX, 5XX/
IPO ๊ด€๋ จ ๋ฐ์ดํ„ฐ๋ฅผ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค.

์‚ฌ์šฉ ์˜ˆ์‹œ

package hello.world;

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

public class Application {

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

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

        GetIposV2Request req = GetIposV2Request.builder()
                .build();

        GetIposV2Response res = sdk.ipos().get()
                .request(req)
                .call();

        if (res.modelsIPOJSON().isPresent()) {
            // ์‘๋‹ต ์ฒ˜๋ฆฌ
        }
    }
}

๋งค๊ฐœ๋ณ€์ˆ˜

๋งค๊ฐœ๋ณ€์ˆ˜์œ ํ˜•ํ•„์ˆ˜ ์—ฌ๋ถ€์„ค๋ช…
requestGetIposV2Request:heavy_check_mark:์š”์ฒญ์— ์‚ฌ์šฉํ•  ๊ฐ์ฒด์ž…๋‹ˆ๋‹ค.

์‘๋‹ต

GetIposV2Response

์˜ค๋ฅ˜

์˜ค๋ฅ˜ ์œ ํ˜•์ƒํƒœ ์ฝ”๋“œ์ฝ˜ํ…์ธ  ์œ ํ˜•
models/errors/APIException4XX, 5XX/