Skip to content

Connection never close for REST client #82

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions