markusaksli / TradeBot

Crypto trading bot using Binance API (Java)
GNU General Public License v3.0
371 stars 138 forks source link

Rework the codebase to be more modular #7

Open markusaksli opened 3 years ago

markusaksli commented 3 years ago

Rework the entire current codebase to be essentially a backend instead of the current basic console app standalone solution.

This is the prerequisite for https://github.com/markusaksli/TradeBot/issues/8. This means the console exe with launch4j can be replaced with a different front-end. Once this is done the bot backend could also be entirely detached from the local executable, run as a server, and communicate via API responses.

ramarro123 commented 3 years ago

hi @markusaksli i also suggest you to remove static classes BuySell, Trade, Simulator, and make them object, in this way it will be possible to spawn multiple simulator at once, making everything self contained

markusaksli commented 3 years ago

@ramarro123 I'm working on this right now in the v11 branch

https://github.com/markusaksli/TradeBot/blob/v11/src/main/java/trading/Instance.java

It's still pretty incomplete but let me know if this fits the general idea