Giter Club home page Giter Club logo

binancetradingbot's Introduction

Hi there 👋

My name is Yonathan Wolloch, currently pursuing a Computer Science with specialization in Data Science bachelors master degree from Ben-Gurion University of the Negev in Israel.

🌱 I’m currently learning:

  • Machine learning algorithms and libraries like sklearn.
  • JavaScript.
  • Big data and Machine learning optimization methods.

Projects that I've worked on: ⚡ Cryptocurrency trading bot - Built an autonomous bot as a part of a team. The bot buys and sells cryptocurrency according to its own strategies. This is a multi-threaded OOP Java program that uses Binance’s Rest and WebSocket APIs. Link: https://github.com/yonathan95/BinanceTradingBot

binancetradingbot's People

Contributors

dependabot[bot] avatar omriattal avatar urib94 avatar yonathan95 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  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

binancetradingbot's Issues

Exception in thread "pool-1-thread-1" java.lang.NumberFormatException: For input string

Hi, I have tried to run this project but first , IDE(Netbeans) warned about invalid api key , after that I have changed request client folder and program has launched . Bot shows last trades and open orders but when I activate strategy , bot respond about (Exception in thread "pool-1-thread-1" java.lang.NumberFormatException: For input string ) after connecting server .

Granting access

Hello! My name is daniel, i am java software test automation engineer and i want to contribute to you project. Could you give me access please?

web socket not connecting

The below is repeated in the console. Tracing the code and it appears that the web socket is not connecting and the watchdog is timing out as a result. I have downloaded binance-java-sdk and used the web socket tests successfully, so the socket is accessible from my computer and is working properly.

I've gone through the docs and I'm likely missing something, just not sure what. Your assistance is appreciated, thanks!

[main] INFO com.binance.client.impl.WebSocketConnection - [Sub] Connection [id: 0] created for Candlestick for LTCUSDT
[main] INFO com.binance.client.impl.WebSocketConnection - [Sub][0] Connecting...
[OkHttp https://fstream.binance.com/...] INFO com.binance.client.impl.WebSocketConnection - [Sub][0] Connected to server
[pool-2-thread-1] WARN com.binance.client.impl.WebSocketConnection - [Sub][0] No response from server
[pool-2-thread-1] WARN com.binance.client.impl.WebSocketConnection - [Sub][0] Reconnecting after 15 seconds later
[OkHttp https://fstream.binance.com/...] ERROR com.binance.client.impl.WebSocketConnection - [Sub][0] Unexpected error: Socket closed
com.binance.client.exception.BinanceApiException: Unexpected error: Socket closed
[pool-2-thread-1] INFO com.binance.client.impl.WebSocketConnection - [Sub][0] Connecting...
[pool-2-thread-1] INFO com.binance.client.impl.WebSocketConnection - [Sub][0] Connecting...
[OkHttp https://fstream.binance.com/...] INFO com.binance.client.impl.WebSocketConnection - [Sub][0] Connected to server
[OkHttp https://fstream.binance.com/...] INFO com.binance.client.impl.WebSocketConnection - [Sub][0] Connected to server
[pool-2-thread-1] WARN com.binance.client.impl.WebSocketConnection - [Sub][0] No response from server
[pool-2-thread-1] WARN com.binance.client.impl.WebSocketConnection - [Sub][0] Reconnecting after 15 seconds later
[OkHttp https://fstream.binance.com/...] ERROR com.binance.client.impl.WebSocketConnection - [Sub][0] Unexpected error: Socket closed

[Executing] -2014: API-key format invalid

image
Hello,

I'm having problem above. I know I'm most likely doing something wrong. Can anyone help me with this please?

Note: I have double checked the usual stupid human made mistake such copying a space or similar things.

Start Bot

Hello Dev,
How to start this bot on windows or Linux?

Proper Read.Me

First of all Thanks for this tool.

I have setup everything as mentioned in your Readme Doc. but how to run this tool there where i get no clue.
Im not familiar with Java, im running Ubuntu WSL in Win10. so how can i run this?

Thank you

Thread [main] (Suspended (exception ArrayIndexOutOfBoundsException))

2 months ago the code was working but today I've discovered it's not working anymore and I got the following exception:
Thread [main] (Suspended (exception ArrayIndexOutOfBoundsException))
Preconditions.checkFromIndexSize(int, int, int, BiFunction<String,List,X>) line: 361
ArrayUtil.nullAndBoundsCheck(byte[], int, int) line: 53
GaloisCounterMode$GCMDecrypt.doFinal(byte[], int, int, byte[], int) line: 1364
GaloisCounterMode$AESGCM(GaloisCounterMode).engineDoFinal(byte[], int, int) line: 406
Cipher.doFinal() line: 2088
SSLCipher$T13GcmReadCipherGenerator$GcmReadCipher.dispose() line: 1977
SSLSocketInputRecord(InputRecord).changeReadCiphers(SSLCipher$SSLReadCipher) line: 125
Finished$T13FinishedConsumer.onConsumeFinished(ClientHandshakeContext, ByteBuffer) line: 1005
Finished$T13FinishedConsumer.consume(ConnectionContext, ByteBuffer) line: 893
SSLHandshake.consume(ConnectionContext, ByteBuffer) line: 396
ClientHandshakeContext(HandshakeContext).dispatch(byte, ByteBuffer) line: 480
ClientHandshakeContext(HandshakeContext).dispatch(byte, Plaintext) line: 458
TransportContext.dispatch(Plaintext) line: 201
SSLTransport.decode(TransportContext, ByteBuffer[], int, int, ByteBuffer[], int, int) line: 172
SSLSocketImpl.decode(ByteBuffer) line: 1505
SSLSocketImpl.readHandshakeRecord() line: 1420
SSLSocketImpl.startHandshake(boolean) line: 455
SSLSocketImpl.startHandshake() line: 426
RealConnection.kt line: 379
RealConnection.kt line: 337
RealConnection.kt line: 209
ExchangeFinder.findConnection(int, int, int, int, boolean) line: 226
ExchangeFinder.findHealthyConnection(int, int, int, int, boolean, boolean) line: 106
ExchangeFinder.find(OkHttpClient, RealInterceptorChain) line: 74
RealCall.kt line: 255
ConnectInterceptor.intercept(Interceptor$Chain) line: 32
RealInterceptorChain.kt line: 109
CacheInterceptor.intercept(Interceptor$Chain) line: 95
RealInterceptorChain.kt line: 109
BridgeInterceptor.kt line: 83
RealInterceptorChain.kt line: 109
RetryAndFollowUpInterceptor.intercept(Interceptor$Chain) line: 76
RealInterceptorChain.kt line: 109
RealCall.kt line: 201
RealCall.kt line: 154
RestApiInvoker.callSync(RestApiRequest) line: 54
SyncRequestImpl.getAccountInformation() line: 186
AccountBalance.() line: 31
AccountBalance.(AccountBalance) line: 27
AccountBalance$AccountBalanceHolder.() line: 24
AccountBalance.getAccountBalance() line: 38
Main.main(String[]) line: 12

Does anyone know what changed for the last 2 months?
P.S. I've merged all the PR's available at the moment but it doesn't help...

Error

Exception: java.lang.NumberFormatException: For input string: "6;"
Exception in thread "main" java.lang.ExceptionInInitializerError
at data.AccountBalance.getAccountBalance(AccountBalance.java:38)
at Main.main(Main.java:12)
Caused by: com.binance.client.exception.BinanceApiException: [Executing] -2014: API-key format invalid.
at com.binance.client.impl.RestApiInvoker.checkResponse(RestApiInvoker.java:38)
at com.binance.client.impl.RestApiInvoker.callSync(RestApiInvoker.java:65)
at com.binance.client.impl.SyncRequestImpl.getAccountInformation(SyncRequestImpl.java:186)
at data.AccountBalance.(AccountBalance.java:31)
at data.AccountBalance.(AccountBalance.java:17)
at data.AccountBalance$AccountBalanceHolder.(AccountBalance.java:24)
... 2 more

can you help me to run your bot?

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.