GithubHelp home page GithubHelp logo

webcerebrium / java-binance-api Goto Github PK

View Code? Open in Web Editor NEW
73.0 9.0 40.0 147 KB

Java Binance API Client

License: MIT License

Java 100.00%
binance-api trade gradle lombok java api-coverage binance binance-exchange binance-crytpocurrency-exchange api-client

java-binance-api's People

Contributors

cutwebapps avatar elsehow avatar mirxak avatar stijnq avatar vic-awsdev5 avatar wcrbrm avatar wimpymistake avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

java-binance-api's Issues

ERROR: -1111, Precision is over the maximum defined for this asset.

Hi, I'm trying to place sell order and I'm getting this error.
I have amount of 355.551 and price 0.00002898.
ExchangeSymbol precisions are both 8 for base and quote.
What exactly do I need to do?

I tried the same order through web interface and Binance is rounding amount to 355.

Cannot deserialize value of type `java.lang.Long` from String "9534.95000000"

Hi !

I got this error when I call BinanceApiRestClient.getCandlestickBars :
com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type java.lang.Long from String "9534.95000000": not a valid Long value
at [Source: (okhttp3.ResponseBody$BomAwareReader); line: 1, column: 17] (through reference chain: java.util.ArrayList[0]->com.binance.api.client.domain.market.Candlestick["closeTime"])

It seems that price value is going to closeTime

The method cancelOrder(BinanceOrder) is undefined for the type BinanceOrder

I am trying to cancel an order using the example code:

BinanceSymbol symbol = new BinanceSymbol("ETHBTC");
BinanceOrder order = api.getOrder(symbol, 123456L);
System.out.println(order.cancelOrder(order));

But I get the error:

The method cancelOrder(BinanceOrder) is undefined for the type BinanceOrder

Increase the speed of order request

This post is not an issue but more like a suggestion for optimization.

I am wondering if it's possible by any means to lower the time that is required to POST an order. If the price is guaranteed it takes 1 second to send the request and get the order registered. Is there a chance to lower that time ?

MARKET_LOT_SIZE error (code = -1013

Hello everyone,
When I try to place an order with the instruction create_test_order I have this error "APIError(code=-1013): Filter failure: MARKET_LOT_SIZE.

However, I read the documentation about this and I am sure that I respect the conditions (minQty, maxQty, filterType). It happens only when I try to sell 75000 TRX in BUSD, while it's fine with BTCBUSD and ETHBUSD. More precisely, the line I wrote is : order = client.create_test_order(symbol='TRXBUSD', side='SELL', type='MARKET', quantity=0.15*500000))

Do you have any ideas please?

market buy price necessary?[question]

I am looking at the market buy method. If I use type = market, is it necessary to set both price and quantity? I mean like when we use the binance pc client, we have the option to press 25,50% etc and just click buy, and it will give is the markets current best price, without having to thinking about what the price is (i just notice the rise). Can you follow me, or is it too unclear? All the code for limit/market buy is the same, only the type differ, but maybe i misunderstood their works.

Basically, can I make the the buy say 50% of my funds, without pinging the price first. Thanks

ERROR: -1013, Filter failure: LOT_SIZE

When I try to place an order I get this error:

com.webcerebrium.binance.api.BinanceApiException: ERROR: -1013, Filter failure: LOT_SIZE

How can I resolve this?

Websockets don't reconnect

Websocket-Lister do not reconnect after they have been disconnected (from binance or when disconnected by 24h DSL-disconnect)

It would be nice, to automatically reconnect Websocket-Listeners.

Get price market into websocket

Good, I have a problem, I am making Market type orders, what I do is first check the prices of the getAllPrices library and then proceed to place the order, but at that moment when I generate the order the price changes; I imagine that it happens because a call is made to RestApi and that takes a while that when generating the order the price change. I am now using webSocket, do you know where I can get the market price in the methods that are associated with the websocket?

Websocket error: org.slf4j.helpers.MessageFormatter.arrayFormat

I am trying to run:

BinanceSymbol symbol = new BinanceSymbol("ETHBTC");
Session session = (new BinanceApi()).websocketDepth(symbol, new BinanceWebSocketAdapterDepth() {
    @Override
    public void onMessage(BinanceEventDepthUpdate message) {
        System.out.println(message.toString());
    }
});
try { Thread.sleep(5000); } catch (InterruptedException e) {}
session.close();

But I get this error:

com.webcerebrium.binance.api.BinanceApiException: Websocket error: org.slf4j.helpers.MessageFormatter.arrayFormat(Ljava/lang/String;[Ljava/lang/Object;)Lorg/slf4j/helpers/FormattingTuple;
at com.webcerebrium.binance.api.BinanceApi.getWebsocketSession(BinanceApi.java:631)
at com.webcerebrium.binance.api.BinanceApi.websocketDepth(BinanceApi.java:643)

I guess there is something wrong with the dependencies.

Any ideas ?

Get all prices return empty

Hi,

Today below problem occurred. Could you please help me investigate this?

System.out.println((new BinanceApi()).allPrices());

->
12:51:16.964 [main] DEBUG com.webcerebrium.binance.api.BinanceRequest - GET https://www.binance.com/api/v1/ticker/allPrices
12:51:18.974 [main] DEBUG com.webcerebrium.binance.api.BinanceRequest - Response: []
[]

Best Regards,

ERROR: -1013, Filter failure: PRICE_FILTER

I'm getting this error even when i've parsed the exchangeInfo api and trimmed my price value to the appropriate asset precision. It's also above the minPrice value as well. Can't seem to find what the problem is. This is the value i am using to create my NANOBTC order with: 9.7504E-4. The base asset preicision for NANOBTC is 8. What am i missing?

Use this library on testnet

Is there any way to use this library on binance testnet ?
and what about features ?
I can not found any documentation about that .

How to get all historical data from a specific asset?

i am wondering how to get all historical data from a specific asset from the start until the end. i am trying something like this with no success

   Exchange bitstamp = ExchangeFactory.INSTANCE.createExchange(BinanceExchange.class);
        MarketDataService marketDataService = bitstamp.getMarketDataService();
        List<CurrencyPair> list=bitstamp.getExchangeSymbols();
        list.stream().forEach(val-> System.out.println(val.toString()));
        List<Ticker> ticker = marketDataService.getTickers((Params) list.get(2));
        System.out.println(ticker.toString());

help!

hey,
I have this type of error and idk why can you explain pls?
the error :
binance.exceptions.BinanceAPIException: APIError(code=-1013): Filter failure: LOT_SIZE

UserDataStream disconnecting?

Even a couple of seconds after starting up the user web socket listener i found out that it does not processes order data sometimes. I am not receiving any errors. Infact, i am not even receiving any message at all.

What is MIN_NOTIONAL Error

my buy XRPUSDT with Price 10.04286 quntity 9.6

com.webcerebrium.binance.api.BinanceApiException: ERROR: -1013, Filter failure: MIN_NOTIONAL at com.webcerebrium.binance.api.BinanceRequest.read(BinanceRequest.java:260) at com.webcerebrium.binance.api.BinanceApi.createOrder(BinanceApi.java:523) at com.mahdi.btcorders.OrderService.openOrder(OrderService.java:144) at com.mahdi.btcorders.OrderService.getBalanceBinance(OrderService.java:123) at com.mahdi.btcorders.OrderService$1.run(OrderService.java:40) at java.base/java.lang.Thread.run(Thread.java:834)

Logback

Hello,

I have been using this api for a little while now, and I like it. However I can not seem to disable the logback. I have never used logback myself, so I just tried creating logback.xml files at the root of the project and some other places. However it still keeps on logging. Can somebody tell me what I have to put where to disable it. I imported the project using maven.

Android support?

I'm trying to run this on Android, but can't seem to get this compile.

try {
    BinanceSymbol symbol = new BinanceSymbol("ETHXLM");
    new BinanceApi().websocketTrades(symbol, new BinanceWebSocketAdapterAggTrades() {
        @Override
        public void onMessage(BinanceEventAggTrade event) throws BinanceApiException {
            Log.i(TAG, "onMessage: "+event.getPrice()+"/"+event.getQuantity());
        }
    });
} catch (BinanceApiException e) {
    e.printStackTrace();
}

Error message:

Error:com.android.builder.dexing.DexArchiveBuilderException: Error while dexing org/eclipse/jetty/util/statistic/SampleStatistic.class
Error:com.android.dx.cf.code.SimException: invalid opcode ba (invokedynamic requires --min-sdk-version >= 26)
...and more

It seems that this will only work on Android 8.0 since the jetty library is not support for earlier versions

getting connection refused Exception using web socket

When I run websocketDepth example, I'm getting ConnectionRefusedException.
This is the log:
starting
20:02:56.576 [main] DEBUG org.eclipse.jetty.util.log - Logging to Logger[org.eclipse.jetty.util.log] via org.eclipse.jetty.util.log.Slf4jLog
20:02:56.592 [main] INFO org.eclipse.jetty.util.log - Logging initialized @420MS to org.eclipse.jetty.util.log.Slf4jLog
20:02:56.809 [main] DEBUG org.eclipse.jetty.util.component.ContainerLifeCycle - WebSocketClient@d44e68e3[httpClient=org.eclipse.jetty.client.HttpClient@574caa3f,openSessions.size=0] added {org.eclipse.jetty.client.HttpClient@574caa3f,AUTO}
20:02:56.866 [main] DEBUG org.eclipse.jetty.util.component.ContainerLifeCycle - org.eclipse.jetty.websocket.common.scopes.SimpleContainerScope@6aceb1a5 added {org.eclipse.jetty.util.thread.QueuedThreadPool@WebSocketContainer@1791930789{STOPPED,8<=0<=200,i=0,q=0},AUTO}
20:02:56.984 [main] DEBUG org.eclipse.jetty.util.component.AbstractLifeCycle - starting WebSocketClient@d44e68e3[httpClient=org.eclipse.jetty.client.HttpClient@574caa3f,openSessions.size=0]
20:02:56.987 [main] DEBUG org.eclipse.jetty.util.component.AbstractLifeCycle - starting org.eclipse.jetty.client.HttpClient@574caa3f
20:02:56.988 [main] DEBUG org.eclipse.jetty.util.component.ContainerLifeCycle - org.eclipse.jetty.client.HttpClient@574caa3f added {SslContextFactory@63d4e2ba(null,null),AUTO}
20:02:57.000 [main] DEBUG org.eclipse.jetty.util.component.ContainerLifeCycle - org.eclipse.jetty.client.HttpClient@574caa3f added {org.eclipse.jetty.util.thread.QueuedThreadPool@HttpClient@1464642111{STOPPED,8<=0<=200,i=0,q=0},AUTO}
20:02:57.002 [main] DEBUG org.eclipse.jetty.util.component.ContainerLifeCycle - org.eclipse.jetty.client.HttpClient@574caa3f added {org.eclipse.jetty.io.MappedByteBufferPool@33a10788,POJO}
20:02:57.004 [main] DEBUG org.eclipse.jetty.util.component.ContainerLifeCycle - org.eclipse.jetty.client.HttpClient@574caa3f added {org.eclipse.jetty.util.thread.ScheduledExecutorScheduler@3aa9e816,AUTO}
20:02:57.004 [main] DEBUG org.eclipse.jetty.util.component.ContainerLifeCycle - org.eclipse.jetty.client.HttpClient@574caa3f added {org.eclipse.jetty.client.http.HttpClientTransportOverHTTP@17d99928,AUTO}
20:02:57.006 [main] DEBUG org.eclipse.jetty.util.component.ContainerLifeCycle - org.eclipse.jetty.client.HttpClient@574caa3f added {org.eclipse.jetty.util.SocketAddressResolver$Async@6fffcba5,POJO}
20:02:57.050 [main] DEBUG org.eclipse.jetty.util.component.AbstractLifeCycle - starting SslContextFactory@63d4e2ba(null,null)
20:02:57.050 [main] DEBUG org.eclipse.jetty.util.ssl.SslContextFactory - No keystore or trust store configured. ACCEPTING UNTRUSTED CERTIFICATES!!!!!
20:02:57.859 [main] DEBUG org.eclipse.jetty.util.ssl.SslContextFactory - Selected Protocols [TLSv1, TLSv1.1, TLSv1.2] of [SSLv2Hello, SSLv3, TLSv1, TLSv1.1, TLSv1.2]
20:02:57.860 [main] DEBUG org.eclipse.jetty.util.ssl.SslContextFactory - Selected Ciphers [TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384, TLS_RSA_WITH_AES_256_CBC_SHA256, TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384, TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384, TLS_DHE_RSA_WITH_AES_256_CBC_SHA256, TLS_DHE_DSS_WITH_AES_256_CBC_SHA256, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256, TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256, TLS_DHE_RSA_WITH_AES_128_CBC_SHA256, TLS_DHE_DSS_WITH_AES_128_CBC_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, TLS_RSA_WITH_AES_256_GCM_SHA384, TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384, TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384, TLS_DHE_RSA_WITH_AES_256_GCM_SHA384, TLS_DHE_DSS_WITH_AES_256_GCM_SHA384, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256, TLS_DHE_RSA_WITH_AES_128_GCM_SHA256, TLS_DHE_DSS_WITH_AES_128_GCM_SHA256] of [TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384, TLS_RSA_WITH_AES_256_CBC_SHA256, TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384, TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384, TLS_DHE_RSA_WITH_AES_256_CBC_SHA256, TLS_DHE_DSS_WITH_AES_256_CBC_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDH_RSA_WITH_AES_256_CBC_SHA, TLS_DHE_RSA_WITH_AES_256_CBC_SHA, TLS_DHE_DSS_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256, TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256, TLS_DHE_RSA_WITH_AES_128_CBC_SHA256, TLS_DHE_DSS_WITH_AES_128_CBC_SHA256, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA, TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDH_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_DSS_WITH_AES_128_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, TLS_RSA_WITH_AES_256_GCM_SHA384, TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384, TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384, TLS_DHE_RSA_WITH_AES_256_GCM_SHA384, TLS_DHE_DSS_WITH_AES_256_GCM_SHA384, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256, TLS_DHE_RSA_WITH_AES_128_GCM_SHA256, TLS_DHE_DSS_WITH_AES_128_GCM_SHA256]
20:02:57.860 [main] DEBUG org.eclipse.jetty.util.component.AbstractLifeCycle - STARTED @1690ms SslContextFactory@63d4e2ba(null,null)
20:02:57.860 [main] DEBUG org.eclipse.jetty.util.component.AbstractLifeCycle - starting org.eclipse.jetty.util.thread.QueuedThreadPool@HttpClient@1464642111{STOPPED,8<=0<=200,i=0,q=0}
20:02:57.862 [main] DEBUG org.eclipse.jetty.util.component.AbstractLifeCycle - STARTED @1692ms org.eclipse.jetty.util.thread.QueuedThreadPool@HttpClient@1464642111{STARTED,8<=8<=200,i=2,q=0}
20:02:57.862 [main] DEBUG org.eclipse.jetty.util.component.AbstractLifeCycle - starting org.eclipse.jetty.util.thread.ScheduledExecutorScheduler@3aa9e816
20:02:57.865 [main] DEBUG org.eclipse.jetty.util.component.AbstractLifeCycle - STARTED @1695ms org.eclipse.jetty.util.thread.ScheduledExecutorScheduler@3aa9e816
20:02:57.865 [main] DEBUG org.eclipse.jetty.util.component.AbstractLifeCycle - starting org.eclipse.jetty.client.http.HttpClientTransportOverHTTP@17d99928
20:02:57.867 [main] DEBUG org.eclipse.jetty.util.component.ContainerLifeCycle - org.eclipse.jetty.client.http.HttpClientTransportOverHTTP@17d99928 added {org.eclipse.jetty.client.AbstractConnectorHttpClientTransport$ClientSelectorManager@23ceabc1,AUTO}
20:02:57.867 [main] DEBUG org.eclipse.jetty.util.component.AbstractLifeCycle - starting org.eclipse.jetty.client.AbstractConnectorHttpClientTransport$ClientSelectorManager@23ceabc1
20:02:57.868 [main] DEBUG org.eclipse.jetty.util.component.ContainerLifeCycle - org.eclipse.jetty.client.AbstractConnectorHttpClientTransport$ClientSelectorManager@23ceabc1 added {org.eclipse.jetty.util.thread.ReservedThreadExecutor@100fc185{s=0,p=0},MANAGED}
20:02:57.876 [main] DEBUG org.eclipse.jetty.util.component.ContainerLifeCycle - EatWhatYouKill@735b5592/SelectorProducer@724af044/IDLE/org.eclipse.jetty.util.thread.ReservedThreadExecutor@100fc185{s=0,p=0} added {SelectorProducer@724af044,POJO}
20:02:57.876 [main] DEBUG org.eclipse.jetty.util.thread.strategy.EatWhatYouKill - EatWhatYouKill@735b5592/SelectorProducer@724af044/IDLE/org.eclipse.jetty.util.thread.ReservedThreadExecutor@100fc185{s=0,p=0} created
20:02:57.877 [main] DEBUG org.eclipse.jetty.util.component.ContainerLifeCycle - org.eclipse.jetty.io.ManagedSelector@4678c730 id=0 keys=-1 selected=-1 added {EatWhatYouKill@735b5592/SelectorProducer@724af044/IDLE/org.eclipse.jetty.util.thread.ReservedThreadExecutor@100fc185{s=0,p=0},MANAGED}
20:02:57.877 [main] DEBUG org.eclipse.jetty.util.component.ContainerLifeCycle - org.eclipse.jetty.client.AbstractConnectorHttpClientTransport$ClientSelectorManager@23ceabc1 added {org.eclipse.jetty.io.ManagedSelector@4678c730 id=0 keys=-1 selected=-1,AUTO}
20:02:57.877 [main] DEBUG org.eclipse.jetty.util.component.ContainerLifeCycle - EatWhatYouKill@6767c1fc/SelectorProducer@29ee9faa/IDLE/org.eclipse.jetty.util.thread.ReservedThreadExecutor@100fc185{s=0,p=0} added {SelectorProducer@29ee9faa,POJO}
20:02:57.878 [main] DEBUG org.eclipse.jetty.util.thread.strategy.EatWhatYouKill - EatWhatYouKill@6767c1fc/SelectorProducer@29ee9faa/IDLE/org.eclipse.jetty.util.thread.ReservedThreadExecutor@100fc185{s=0,p=0} created
20:02:57.878 [main] DEBUG org.eclipse.jetty.util.component.ContainerLifeCycle - org.eclipse.jetty.io.ManagedSelector@c038203 id=1 keys=-1 selected=-1 added {EatWhatYouKill@6767c1fc/SelectorProducer@29ee9faa/IDLE/org.eclipse.jetty.util.thread.ReservedThreadExecutor@100fc185{s=0,p=0},MANAGED}
20:02:57.878 [main] DEBUG org.eclipse.jetty.util.component.ContainerLifeCycle - org.eclipse.jetty.client.AbstractConnectorHttpClientTransport$ClientSelectorManager@23ceabc1 added {org.eclipse.jetty.io.ManagedSelector@c038203 id=1 keys=-1 selected=-1,AUTO}
20:02:57.878 [main] DEBUG org.eclipse.jetty.util.component.AbstractLifeCycle - starting org.eclipse.jetty.util.thread.ReservedThreadExecutor@100fc185{s=0,p=0}
20:02:57.879 [main] DEBUG org.eclipse.jetty.util.component.AbstractLifeCycle - STARTED @1709ms org.eclipse.jetty.util.thread.ReservedThreadExecutor@100fc185{s=0,p=0}
20:02:57.879 [main] DEBUG org.eclipse.jetty.util.component.AbstractLifeCycle - starting org.eclipse.jetty.io.ManagedSelector@4678c730 id=0 keys=-1 selected=-1
20:02:57.879 [main] DEBUG org.eclipse.jetty.util.component.AbstractLifeCycle - starting EatWhatYouKill@735b5592/SelectorProducer@724af044/IDLE/org.eclipse.jetty.util.thread.ReservedThreadExecutor@100fc185{s=0,p=0}
20:02:57.879 [main] DEBUG org.eclipse.jetty.util.component.AbstractLifeCycle - STARTED @1710ms EatWhatYouKill@735b5592/SelectorProducer@724af044/IDLE/org.eclipse.jetty.util.thread.ReservedThreadExecutor@100fc185{s=0,p=0}
20:02:57.890 [main] DEBUG org.eclipse.jetty.util.thread.QueuedThreadPool - queue org.eclipse.jetty.io.ManagedSelector$$Lambda$5/892529689@68c4039c
20:02:57.891 [main] DEBUG org.eclipse.jetty.util.component.AbstractLifeCycle - STARTED @1721ms org.eclipse.jetty.io.ManagedSelector@4678c730 id=0 keys=0 selected=0
20:02:57.891 [HttpClient@1464642111-13] DEBUG org.eclipse.jetty.util.thread.QueuedThreadPool - run org.eclipse.jetty.io.ManagedSelector$$Lambda$5/892529689@68c4039c
20:02:57.891 [main] DEBUG org.eclipse.jetty.util.component.AbstractLifeCycle - starting org.eclipse.jetty.io.ManagedSelector@c038203 id=1 keys=-1 selected=-1
20:02:57.891 [HttpClient@1464642111-13] DEBUG org.eclipse.jetty.util.thread.strategy.EatWhatYouKill - EatWhatYouKill@735b5592/SelectorProducer@724af044/IDLE/org.eclipse.jetty.util.thread.ReservedThreadExecutor@100fc185{s=0,p=0} produce
20:02:57.891 [main] DEBUG org.eclipse.jetty.util.component.AbstractLifeCycle - starting EatWhatYouKill@6767c1fc/SelectorProducer@29ee9faa/IDLE/org.eclipse.jetty.util.thread.ReservedThreadExecutor@100fc185{s=0,p=0}
20:02:57.891 [main] DEBUG org.eclipse.jetty.util.component.AbstractLifeCycle - STARTED @1722ms EatWhatYouKill@6767c1fc/SelectorProducer@29ee9faa/IDLE/org.eclipse.jetty.util.thread.ReservedThreadExecutor@100fc185{s=0,p=0}
20:02:57.892 [HttpClient@1464642111-13] DEBUG org.eclipse.jetty.io.ManagedSelector - Selector loop waiting on select
20:02:57.892 [main] DEBUG org.eclipse.jetty.util.thread.QueuedThreadPool - queue org.eclipse.jetty.io.ManagedSelector$$Lambda$5/892529689@ae45eb6
20:02:57.893 [main] DEBUG org.eclipse.jetty.util.component.AbstractLifeCycle - STARTED @1723ms org.eclipse.jetty.io.ManagedSelector@c038203 id=1 keys=0 selected=0
20:02:57.893 [HttpClient@1464642111-12] DEBUG org.eclipse.jetty.util.thread.QueuedThreadPool - run org.eclipse.jetty.io.ManagedSelector$$Lambda$5/892529689@ae45eb6
20:02:57.893 [main] DEBUG org.eclipse.jetty.util.component.AbstractLifeCycle - STARTED @1723ms org.eclipse.jetty.client.AbstractConnectorHttpClientTransport$ClientSelectorManager@23ceabc1
20:02:57.893 [main] DEBUG org.eclipse.jetty.util.component.AbstractLifeCycle - STARTED @1723ms org.eclipse.jetty.client.http.HttpClientTransportOverHTTP@17d99928
20:02:57.893 [HttpClient@1464642111-12] DEBUG org.eclipse.jetty.util.thread.strategy.EatWhatYouKill - EatWhatYouKill@6767c1fc/SelectorProducer@29ee9faa/IDLE/org.eclipse.jetty.util.thread.ReservedThreadExecutor@100fc185{s=0,p=0} produce
20:02:57.893 [main] DEBUG org.eclipse.jetty.util.component.AbstractLifeCycle - STARTED @1723ms org.eclipse.jetty.client.HttpClient@574caa3f
20:02:57.893 [HttpClient@1464642111-12] DEBUG org.eclipse.jetty.io.ManagedSelector - Selector loop waiting on select
20:02:57.893 [main] DEBUG org.eclipse.jetty.util.component.AbstractLifeCycle - STARTED @1723ms WebSocketClient@d44e68e3[httpClient=org.eclipse.jetty.client.HttpClient@574caa3f,openSessions.size=0]
20:02:57.896 [main] DEBUG org.eclipse.jetty.websocket.client.WebSocketClient - connect websocket com.smartsoft.binanceTerminal.Test$1@42d80b78 to wss://stream.binance.com:9443/ws/ethbtc@depth
20:02:57.945 [main] DEBUG org.eclipse.jetty.util.component.ContainerLifeCycle - org.eclipse.jetty.client.HttpClient@574caa3f added {HttpDestination[wss://stream.binance.com:9443]@5649fd9b,queue=0,pool=null,MANAGED}
20:02:57.945 [main] DEBUG org.eclipse.jetty.util.component.AbstractLifeCycle - starting HttpDestination[wss://stream.binance.com:9443]@5649fd9b,queue=0,pool=null
20:02:57.947 [main] DEBUG org.eclipse.jetty.util.component.ContainerLifeCycle - HttpDestination[wss://stream.binance.com:9443]@5649fd9b,queue=0,pool=DuplexConnectionPool@64bfbc86[c=0/64,a=0,i=0] added {DuplexConnectionPool@64bfbc86[c=0/64,a=0,i=0],POJO}
20:02:57.948 [main] DEBUG org.eclipse.jetty.util.component.AbstractLifeCycle - STARTED @1779ms HttpDestination[wss://stream.binance.com:9443]@5649fd9b,queue=0,pool=DuplexConnectionPool@64bfbc86[c=0/64,a=0,i=0]
20:02:57.949 [main] DEBUG org.eclipse.jetty.client.HttpClient - Created HttpDestination[wss://stream.binance.com:9443]@5649fd9b,queue=0,pool=DuplexConnectionPool@64bfbc86[c=0/64,a=0,i=0]
20:02:57.952 [main] DEBUG org.eclipse.jetty.client.HttpDestination - Queued HttpRequest[GET /ws/ethbtc@depth HTTP/1.1]@1e127982 for HttpDestination[wss://stream.binance.com:9443]@5649fd9b,queue=1,pool=DuplexConnectionPool@64bfbc86[c=0/64,a=0,i=0]
20:02:57.952 [main] DEBUG org.eclipse.jetty.client.AbstractConnectionPool - Connection 1/64 creation
20:02:57.955 [main] DEBUG org.eclipse.jetty.util.thread.QueuedThreadPool - queue org.eclipse.jetty.util.SocketAddressResolver$Async$$Lambda$7/555826066@66480dd7
20:02:57.955 [HttpClient@1464642111-10] DEBUG org.eclipse.jetty.util.thread.QueuedThreadPool - run org.eclipse.jetty.util.SocketAddressResolver$Async$$Lambda$7/555826066@66480dd7
20:02:57.992 [HttpClient@1464642111-10] DEBUG org.eclipse.jetty.util.SocketAddressResolver - Resolved stream.binance.com in 34 ms
20:02:57.995 [HttpClient@1464642111-10] DEBUG org.eclipse.jetty.io.ManagedSelector - Queued change org.eclipse.jetty.io.ManagedSelector$Connect@398a1721 on org.eclipse.jetty.io.ManagedSelector@4678c730 id=0 keys=0 selected=0
20:02:57.995 [HttpClient@1464642111-10] DEBUG org.eclipse.jetty.util.thread.QueuedThreadPool - ran org.eclipse.jetty.util.SocketAddressResolver$Async$$Lambda$7/555826066@66480dd7
20:02:57.995 [HttpClient@1464642111-13] DEBUG org.eclipse.jetty.io.ManagedSelector - Selector loop woken up from select, 0/0 selected
20:02:57.996 [HttpClient@1464642111-13] DEBUG org.eclipse.jetty.io.ManagedSelector - Running action org.eclipse.jetty.io.ManagedSelector$Connect@398a1721
20:02:57.997 [HttpClient@1464642111-13] DEBUG org.eclipse.jetty.io.ManagedSelector - Selector loop waiting on select
20:03:00.577 [HttpClient@1464642111-13] DEBUG org.eclipse.jetty.io.ManagedSelector - Selector loop woken up from select, 1/1 selected
20:03:00.579 [HttpClient@1464642111-13] DEBUG org.eclipse.jetty.io.ManagedSelector - selected sun.nio.ch.SelectionKeyImpl@7d5df3d9 org.eclipse.jetty.io.ManagedSelector$Connect@398a1721
20:03:00.583 [HttpClient@1464642111-13] DEBUG org.eclipse.jetty.client.HttpClientTransport - Could not connect to HttpDestination[wss://stream.binance.com:9443]@5649fd9b,queue=1,pool=DuplexConnectionPool@64bfbc86[c=1/64,a=0,i=0]
20:03:00.586 [HttpClient@1464642111-13] DEBUG org.eclipse.jetty.io.ManagedSelector - Queued change org.eclipse.jetty.io.ManagedSelector$Connect@3c673310 on org.eclipse.jetty.io.ManagedSelector@c038203 id=1 keys=0 selected=0
20:03:00.587 [HttpClient@1464642111-13] DEBUG org.eclipse.jetty.io.ManagedSelector - Selector loop waiting on select
20:03:00.587 [HttpClient@1464642111-12] DEBUG org.eclipse.jetty.io.ManagedSelector - Selector loop woken up from select, 0/0 selected
20:03:00.588 [HttpClient@1464642111-12] DEBUG org.eclipse.jetty.io.ManagedSelector - Running action org.eclipse.jetty.io.ManagedSelector$Connect@3c673310
20:03:00.589 [HttpClient@1464642111-12] DEBUG org.eclipse.jetty.io.ManagedSelector - Selector loop waiting on select
20:03:03.205 [HttpClient@1464642111-12] DEBUG org.eclipse.jetty.io.ManagedSelector - Selector loop woken up from select, 1/1 selected
20:03:03.205 [HttpClient@1464642111-12] DEBUG org.eclipse.jetty.io.ManagedSelector - selected sun.nio.ch.SelectionKeyImpl@eb82d48 org.eclipse.jetty.io.ManagedSelector$Connect@3c673310
20:03:03.209 [HttpClient@1464642111-12] DEBUG org.eclipse.jetty.client.HttpClientTransport - Could not connect to HttpDestination[wss://stream.binance.com:9443]@5649fd9b,queue=1,pool=DuplexConnectionPool@64bfbc86[c=1/64,a=0,i=0]
20:03:03.211 [HttpClient@1464642111-12] DEBUG org.eclipse.jetty.io.ManagedSelector - Queued change org.eclipse.jetty.io.ManagedSelector$Connect@7fc2ef on org.eclipse.jetty.io.ManagedSelector@4678c730 id=0 keys=0 selected=0
20:03:03.212 [HttpClient@1464642111-13] DEBUG org.eclipse.jetty.io.ManagedSelector - Selector loop woken up from select, 0/0 selected
20:03:03.212 [HttpClient@1464642111-12] DEBUG org.eclipse.jetty.io.ManagedSelector - Selector loop waiting on select
20:03:03.213 [HttpClient@1464642111-13] DEBUG org.eclipse.jetty.io.ManagedSelector - Running action org.eclipse.jetty.io.ManagedSelector$Connect@7fc2ef
20:03:03.214 [HttpClient@1464642111-13] DEBUG org.eclipse.jetty.io.ManagedSelector - Selector loop waiting on select
20:03:05.770 [HttpClient@1464642111-13] DEBUG org.eclipse.jetty.io.ManagedSelector - Selector loop woken up from select, 1/1 selected
20:03:05.770 [HttpClient@1464642111-13] DEBUG org.eclipse.jetty.io.ManagedSelector - selected sun.nio.ch.SelectionKeyImpl@2c746446 org.eclipse.jetty.io.ManagedSelector$Connect@7fc2ef
20:03:05.772 [HttpClient@1464642111-13] DEBUG org.eclipse.jetty.client.HttpClientTransport - Could not connect to HttpDestination[wss://stream.binance.com:9443]@5649fd9b,queue=1,pool=DuplexConnectionPool@64bfbc86[c=1/64,a=0,i=0]
20:03:05.777 [HttpClient@1464642111-13] DEBUG org.eclipse.jetty.client.AbstractConnectionPool - Connection 1/64 creation failed
java.net.ConnectException: Connection refused: no further information
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
at org.eclipse.jetty.io.SelectorManager.doFinishConnect(SelectorManager.java:385)
at org.eclipse.jetty.io.ManagedSelector.processConnect(ManagedSelector.java:154)
at org.eclipse.jetty.io.ManagedSelector.access$1300(ManagedSelector.java:59)
at org.eclipse.jetty.io.ManagedSelector$SelectorProducer.processSelected(ManagedSelector.java:394)
at org.eclipse.jetty.io.ManagedSelector$SelectorProducer.produce(ManagedSelector.java:289)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:179)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:140)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:679)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:597)
at java.lang.Thread.run(Thread.java:748)
20:03:05.779 [HttpClient@1464642111-13] DEBUG org.eclipse.jetty.client.HttpExchange - Failed HttpExchange@256aa851 req=COMPLETED/java.net.ConnectException: Connection refused: no further information@19c1e16b res=COMPLETED/java.net.ConnectException: Connection refused: no further information@19c1e16b: req=true/rsp=true java.net.ConnectException: Connection refused: no further information
20:03:05.780 [HttpClient@1464642111-13] DEBUG org.eclipse.jetty.client.HttpExchange - Aborting while queued HttpExchange@256aa851 req=COMPLETED/java.net.ConnectException: Connection refused: no further information@19c1e16b res=COMPLETED/java.net.ConnectException: Connection refused: no further information@19c1e16b: java.net.ConnectException: Connection refused: no further information
20:03:05.781 [HttpClient@1464642111-13] DEBUG org.eclipse.jetty.websocket.client.WebSocketUpgradeRequest - onComplete() - Result[HttpRequest[GET /ws/ethbtc@depth HTTP/1.1]@1e127982 > HttpResponse[null 0 null]@d02d819] java.net.ConnectException: Connection refused: no further information
20:03:05.782 [HttpClient@1464642111-13] DEBUG org.eclipse.jetty.websocket.client.WebSocketUpgradeRequest - General Failure
java.net.ConnectException: Connection refused: no further information
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
at org.eclipse.jetty.io.SelectorManager.doFinishConnect(SelectorManager.java:385)
at org.eclipse.jetty.io.ManagedSelector.processConnect(ManagedSelector.java:154)
at org.eclipse.jetty.io.ManagedSelector.access$1300(ManagedSelector.java:59)
at org.eclipse.jetty.io.ManagedSelector$SelectorProducer.processSelected(ManagedSelector.java:394)
at org.eclipse.jetty.io.ManagedSelector$SelectorProducer.produce(ManagedSelector.java:289)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:179)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:140)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:679)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:597)
at java.lang.Thread.run(Thread.java:748)
20:03:05.782 [HttpClient@1464642111-13] DEBUG org.eclipse.jetty.websocket.client.WebSocketUpgradeRequest - Request Failure
java.net.ConnectException: Connection refused: no further information
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
at org.eclipse.jetty.io.SelectorManager.doFinishConnect(SelectorManager.java:385)
at org.eclipse.jetty.io.ManagedSelector.processConnect(ManagedSelector.java:154)
at org.eclipse.jetty.io.ManagedSelector.access$1300(ManagedSelector.java:59)
at org.eclipse.jetty.io.ManagedSelector$SelectorProducer.processSelected(ManagedSelector.java:394)
at org.eclipse.jetty.io.ManagedSelector$SelectorProducer.produce(ManagedSelector.java:289)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:179)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:140)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:679)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:597)
at java.lang.Thread.run(Thread.java:748)
20:03:05.783 [HttpClient@1464642111-13] DEBUG org.eclipse.jetty.websocket.client.WebSocketUpgradeRequest - Response Failure
java.net.ConnectException: Connection refused: no further information
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
at org.eclipse.jetty.io.SelectorManager.doFinishConnect(SelectorManager.java:385)
at org.eclipse.jetty.io.ManagedSelector.processConnect(ManagedSelector.java:154)
at org.eclipse.jetty.io.ManagedSelector.access$1300(ManagedSelector.java:59)
at org.eclipse.jetty.io.ManagedSelector$SelectorProducer.processSelected(ManagedSelector.java:394)
at org.eclipse.jetty.io.ManagedSelector$SelectorProducer.produce(ManagedSelector.java:289)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:179)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:140)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:679)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:597)
at java.lang.Thread.run(Thread.java:748)
20:03:05.783 [HttpClient@1464642111-13] DEBUG org.eclipse.jetty.websocket.common.events.AbstractEventDriver - incomingError(java.net.ConnectException)
java.net.ConnectException: Connection refused: no further information
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
at org.eclipse.jetty.io.SelectorManager.doFinishConnect(SelectorManager.java:385)
at org.eclipse.jetty.io.ManagedSelector.processConnect(ManagedSelector.java:154)
at org.eclipse.jetty.io.ManagedSelector.access$1300(ManagedSelector.java:59)
at org.eclipse.jetty.io.ManagedSelector$SelectorProducer.processSelected(ManagedSelector.java:394)
at org.eclipse.jetty.io.ManagedSelector$SelectorProducer.produce(ManagedSelector.java:289)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:179)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:140)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:679)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:597)
at java.lang.Thread.run(Thread.java:748)
20:03:05.783 [HttpClient@1464642111-13] ERROR com.webcerebrium.binance.websocket.BinanceWebSocketAdapterDepth - onWebSocketError: {}
java.net.ConnectException: Connection refused: no further information
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
at org.eclipse.jetty.io.SelectorManager.doFinishConnect(SelectorManager.java:385)
at org.eclipse.jetty.io.ManagedSelector.processConnect(ManagedSelector.java:154)
at org.eclipse.jetty.io.ManagedSelector.access$1300(ManagedSelector.java:59)
at org.eclipse.jetty.io.ManagedSelector$SelectorProducer.processSelected(ManagedSelector.java:394)
at org.eclipse.jetty.io.ManagedSelector$SelectorProducer.produce(ManagedSelector.java:289)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:179)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:140)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:679)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:597)
at java.lang.Thread.run(Thread.java:748)
20:03:05.784 [HttpClient@1464642111-13] DEBUG org.eclipse.jetty.websocket.common.events.AbstractEventDriver - incomingError(org.eclipse.jetty.websocket.api.UpgradeException)
org.eclipse.jetty.websocket.api.UpgradeException: 0 null
at org.eclipse.jetty.websocket.client.WebSocketUpgradeRequest.onComplete(WebSocketUpgradeRequest.java:520)
at org.eclipse.jetty.client.ResponseNotifier.notifyComplete(ResponseNotifier.java:193)
at org.eclipse.jetty.client.ResponseNotifier.notifyComplete(ResponseNotifier.java:185)
at org.eclipse.jetty.client.HttpExchange.notifyFailureComplete(HttpExchange.java:269)
at org.eclipse.jetty.client.HttpExchange.abort(HttpExchange.java:240)
at org.eclipse.jetty.client.HttpConversation.abort(HttpConversation.java:141)
at org.eclipse.jetty.client.HttpRequest.abort(HttpRequest.java:748)
at org.eclipse.jetty.client.HttpDestination.abort(HttpDestination.java:447)
at org.eclipse.jetty.client.HttpDestination.failed(HttpDestination.java:227)
at org.eclipse.jetty.client.AbstractConnectionPool$1.failed(AbstractConnectionPool.java:122)
at org.eclipse.jetty.util.Promise$Wrapper.failed(Promise.java:136)
at org.eclipse.jetty.client.HttpClient$1$1.failed(HttpClient.java:589)
at org.eclipse.jetty.client.AbstractConnectorHttpClientTransport.connectFailed(AbstractConnectorHttpClientTransport.java:135)
at org.eclipse.jetty.client.AbstractConnectorHttpClientTransport$ClientSelectorManager.connectionFailed(AbstractConnectorHttpClientTransport.java:180)
at org.eclipse.jetty.io.ManagedSelector$Connect.failed(ManagedSelector.java:679)
at org.eclipse.jetty.io.ManagedSelector$Connect.access$500(ManagedSelector.java:646)
at org.eclipse.jetty.io.ManagedSelector.processConnect(ManagedSelector.java:184)
at org.eclipse.jetty.io.ManagedSelector.access$1300(ManagedSelector.java:59)
at org.eclipse.jetty.io.ManagedSelector$SelectorProducer.processSelected(ManagedSelector.java:394)
at org.eclipse.jetty.io.ManagedSelector$SelectorProducer.produce(ManagedSelector.java:289)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:179)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:140)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:679)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:597)
at java.lang.Thread.run(Thread.java:748)
20:03:05.784 [HttpClient@1464642111-13] ERROR com.webcerebrium.binance.websocket.BinanceWebSocketAdapterDepth - onWebSocketError: {}
org.eclipse.jetty.websocket.api.UpgradeException: 0 null
at org.eclipse.jetty.websocket.client.WebSocketUpgradeRequest.onComplete(WebSocketUpgradeRequest.java:520)
at org.eclipse.jetty.client.ResponseNotifier.notifyComplete(ResponseNotifier.java:193)
at org.eclipse.jetty.client.ResponseNotifier.notifyComplete(ResponseNotifier.java:185)
at org.eclipse.jetty.client.HttpExchange.notifyFailureComplete(HttpExchange.java:269)
at org.eclipse.jetty.client.HttpExchange.abort(HttpExchange.java:240)
at org.eclipse.jetty.client.HttpConversation.abort(HttpConversation.java:141)
at org.eclipse.jetty.client.HttpRequest.abort(HttpRequest.java:748)
at org.eclipse.jetty.client.HttpDestination.abort(HttpDestination.java:447)
at org.eclipse.jetty.client.HttpDestination.failed(HttpDestination.java:227)
at org.eclipse.jetty.client.AbstractConnectionPool$1.failed(AbstractConnectionPool.java:122)
at org.eclipse.jetty.util.Promise$Wrapper.failed(Promise.java:136)
at org.eclipse.jetty.client.HttpClient$1$1.failed(HttpClient.java:589)
at org.eclipse.jetty.client.AbstractConnectorHttpClientTransport.connectFailed(AbstractConnectorHttpClientTransport.java:135)
at org.eclipse.jetty.client.AbstractConnectorHttpClientTransport$ClientSelectorManager.connectionFailed(AbstractConnectorHttpClientTransport.java:180)
at org.eclipse.jetty.io.ManagedSelector$Connect.failed(ManagedSelector.java:679)
at org.eclipse.jetty.io.ManagedSelector$Connect.access$500(ManagedSelector.java:646)
at org.eclipse.jetty.io.ManagedSelector.processConnect(ManagedSelector.java:184)
at org.eclipse.jetty.io.ManagedSelector.access$1300(ManagedSelector.java:59)
at org.eclipse.jetty.io.ManagedSelector$SelectorProducer.processSelected(ManagedSelector.java:394)
at org.eclipse.jetty.io.ManagedSelector$SelectorProducer.produce(ManagedSelector.java:289)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:179)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:140)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:679)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:597)
at java.lang.Thread.run(Thread.java:748)
20:03:05.785 [HttpClient@1464642111-13] DEBUG org.eclipse.jetty.io.ManagedSelector - Selector loop waiting on select
com.webcerebrium.binance.api.BinanceApiException: Websocket error: java.net.ConnectException: Connection refused: no further informationfinished

at com.webcerebrium.binance.api.BinanceApi.getWebsocketSession(BinanceApi.java:644)
at com.webcerebrium.binance.api.BinanceApi.websocketDepth(BinanceApi.java:656)
at com.smartsoft.binanceTerminal.Test.test(Test.java:19)
at com.smartsoft.binanceTerminal.App.main(App.java:17)

withdraw is not working

Is the withdraw function working? Why would the amount is long instead of double? Besides long issue on the amount parameter, I tried to run and also got following errors

"msg":"{"code":-1105,"msg":"Parameter 'recvWindow' was was empty.

Thanks

ORDER_WOULD_TRIGGER_IMMEDIATELY not present in OrderRejectReason

We have exception in parsing WebSocket message using BinanceApi:

com.binance.api.client.exception.BinanceApiException: com.fasterxml.jackson.databind.exc.InvalidFormatException: Can not deserialize value of type com.binance.api.client.domain.OrderRejectReason from String "ORDER_WOULD_TRIGGER_IMMEDIATELY": value not one of declared Enum instance names: [INSUFFICIENT_BALANCE, ACCOUNT_CANNOT_SETTLE, UNKNOWN_ACCOUNT, UNKNOWN_ORDER, DUPLICATE_ORDER, UNKNOWN_INSTRUMENT, ACCOUNT_INACTIVE, MARKET_CLOSED, PRICE_QTY_EXCEED_HARD_LIMITS, NONE] at [Source: {"e":"executionReport","E":NUMBER,"s":"BTCUSDT","c":"bnc17","S":"BUY","o":"STOP_LOSS_LIMIT","f":"GTC","q":"0.00237200","p":"6240.00000000","P":"6320.00000000","F":"0.00000000","g":-1,"C":"null","x":"REJECTED","X":"REJECTED","r":"ORDER_WOULD_TRIGGER_IMMEDIATELY","i":-1,"l":"0.00000000","z":"0.00000000","L":"0.00000000","n":"0","N":null,"T":1533755889379,"t":-1,"I":-1,"w":false,"m":false,"M":false,"O":-1,"Z":"0.00000000"}; line: 1, column: 236] (through reference chain: com.binance.api.client.domain.event.OrderTradeUpdateEvent["r"]) at com.binance.api.client.domain.event.UserDataUpdateEventDeserializer.getUserDataUpdateEventDetail(UserDataUpdateEventDeserializer.java:56) ~[binance-api-client-1.0.2-SNAPSHOT.jar:?] at com.binance.api.client.domain.event.UserDataUpdateEventDeserializer.deserialize(UserDataUpdateEventDeserializer.java:45) ~[binance-api-client-1.0.2-SNAPSHOT.jar:?] at com.binance.api.client.domain.event.UserDataUpdateEventDeserializer.deserialize(UserDataUpdateEventDeserializer.java:18) ~[binance-api-client-1.0.2-SNAPSHOT.jar:?] at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3798) ~[jackson-databind-2.8.8.jar:2.8.8] at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2842) ~[jackson-databind-2.8.8.jar:2.8.8] at com.binance.api.client.impl.BinanceApiWebSocketListener.onMessage(BinanceApiWebSocketListener.java:43) [binance-api-client-1.0.2-SNAPSHOT.jar:?] at okhttp3.internal.ws.RealWebSocket.onReadMessage(RealWebSocket.java:307) ~[okhttp-3.8.1.jar:?] at okhttp3.internal.ws.WebSocketReader.readMessageFrame(WebSocketReader.java:222) ~[okhttp-3.8.1.jar:?] at okhttp3.internal.ws.WebSocketReader.processNextFrame(WebSocketReader.java:101) ~[okhttp-3.8.1.jar:?] at okhttp3.internal.ws.RealWebSocket.loopReader(RealWebSocket.java:262) [okhttp-3.8.1.jar:?] at okhttp3.internal.ws.RealWebSocket$2.onResponse(RealWebSocket.java:201) [okhttp-3.8.1.jar:?] at okhttp3.RealCall$AsyncCall.execute(RealCall.java:141) [okhttp-3.8.1.jar:?] at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) [okhttp-3.8.1.jar:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_131] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_131] at java.lang.Thread.run(Unknown Source) [?:1.8.0_131]

ERROR: -1106, Parameter 'timeInForce' sent when not required.

When I try to place an order using the BinanceOrderType.MARKET I get the following error:

com.webcerebrium.binance.api.BinanceApiException: ERROR: -1106, Parameter 'timeInForce' sent when not required.
at com.webcerebrium.binance.api.BinanceRequest.read(BinanceRequest.java:260)
at com.webcerebrium.binance.api.BinanceApi.createOrder(BinanceApi.java:498)

If I place an order through BinanceOrderType.LIMIT there is no problem.

Websocket API depth with level doesn't work

Hi! binance-api version 1.0.9
I found an error with BinanceWebSocketAdapterDepth which you're using in BinanceApi.websocketDepth{level} methods. BinanceWebSocketAdapterDepth uses BinanceEventDepthUpdate which parses the event message from socket but response for @Depth{levels} is another than for @Depth and NullPointerExceptions are occured. I think you can make an another BinanceEventDepthUpdate and BinanceWebSocketAdapterDepth for using in websocketDepth methods.

ThreadSafe implementation of balances

Hi,

The current implementation of BinanceApi.balancesMap() is not thread safe as you are using a HashMap. Is it possible to change it to ConcurrentHashMap? Even though my call to getting the balances is single-threaded, the resulting map is used in a multithreaded application.

Using version 1.0.3.

Great job with the client, very intuitive and easy to use.

Web Socket - No Output

I am trying to run:

		BinanceSymbol symbol = new BinanceSymbol("ETHBTC");
		Session session = (new BinanceApi()).websocketTrades(symbol, new BinanceWebSocketAdapterAggTrades() {
		    @Override
		    public void onMessage(BinanceEventAggTrade message) { 
		        System.out.println(message.toString());
		    }
		});
		try { Thread.sleep(5000); } catch (InterruptedException e) {}
		session.close();

But I don't get any output. There are no errors and the program never stop. Is this somehow my fault?

Trade with PAX or TUSD

When will be trade with PAX and TUSD be supported?

com.webcerebrium.binance.api.BinanceApiException: Market Symbol should be ending with BTC, ETH, BNB or USDT. Example: BQXBTC

getMinNotional wrong

In BinanceExchangeSymbol.java:

public JsonObject getPriceFilter() {
    return filters.get("PRICE_FILTER");
}

public JsonObject getLotSize() {
    return filters.get("LOT_SIZE");
}

public JsonObject getMinNotional() {
    return filters.get("LOT_SIZE");
}

The last is wrong - it should be MIN_NOTIONAL.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.