Skip to content

Derivatives Trading (USDS-M Futures) connector version 10.0.0 does not close properly #228

@memories369

Description

@memories369

Hello,
I use in my java application the Derivatives Trading USDS-M java binance connector version 10.0.0.

I am using these lines to initialize the websocket connection

private DerivativesTradingUsdsFuturesWebSocketStreams getApi() {
config = DerivativesTradingUsdsFuturesWebSocketStreamsUtil.getClientConfiguration();
connectionWrapper = new StreamConnectionWrapper(config, JSON.getGson());
apiWrapper = new DerivativesTradingUsdsFuturesWebSocketStreams(connectionWrapper); // Error must be "config" not "connectionWrapper"
return apiWrapper;
}
It is impossible to put in "apiWrapper" the "connectionWrapper" - it must be "config" directly.
Everything works perfectly except this:
this.connectionWrapper.stop(); // no reaction = connector's threads run without possibility to close app
this.connectionWrapper.disconnect(); // no reaction = connector's threads run without possibility to close app

Solution is downgrade from

io.github.binance
binance-derivatives-trading-usds-futures
10.0.0

to

io.github.binance binance-derivatives-trading-usds-futures 9.0.0

With version 10.0.0:
I tried to get connection directly from apiWrapper.getConnection(); but no reaction all binance connector's threads were active.
I tried to get connection directly with getApi.getConnection(); but no reaction = all binance connector's threads were active.
I tried probably every possible way to stop and disconnect binance connector client -but without reaction and without Console error logs.
The solution is downgrade to version 9.0.0. I do not know, it is bug or I miss maybe something?

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