Skip to content

Connection never close for REST client #82

@Callimard

Description

@Callimard

Hello,

When you use the KucoinRestClient, it make your process never end because it is impossible to close the object.
I test this code:

public static void main(String[] args) throws IOException {
        KucoinRestClient restClient = new KucoinClientBuilder()
                .withBaseUrl("https://api.kucoin.com")
                .withApiKey("xxxxxxxxxxxxxxxxxxxxx", "yyyyyyyyyyyyyyyyyyyyyy", "zzzzzzzzzzzzzzzzzzzzzzzz")
                .buildRestClient();

        System.out.println("current price " + restClient.symbolAPI().getTicker("BTC-USDT").getPrice());
    }

And I get the result but my process never end.

Is it normal? Is there a way to close the KucoinRestClient?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions