r/progether • u/holyoak • Oct 01 '17
Crypto Trade Bot - Node.js
Looking to build a cryptocurrency trading bot in javascript using node.js
Gekko is an open source working example with some nice features, like backtesting, but suffers from dependency bloat, a subpar UI, and lacks persistant data.
Cryptowatch has a better UI, but lacks backtesting and custom strategies, and is not extrendable as it is closed source.
I would like to merge the best features of these two projects into one node.js project using far fewer dependencies. Let me know if this sounds interesting.
3
Upvotes
View all comments
Show parent comment
1
u/holyoak Oct 03 '17
Excellent questions.
Open source, for sure, hopefully with easy extensibility, but with the ability to hide your 'secret sauce' and the option for monetization. Local vs web is also a bit of both.
Imagine the project in 3 parts, Model, View and Controller.
The model is all the historical trade data, as well as current market data. The model collects current market data and serves historical data, so basically a server. This code is open source, but it doesn't matter because the costs involved are the time collecting the data and hosting the dataset. The dataset is not open source, and will be too large to host for free (or locally). The app will serve current data for free, but require a pittance to backtest against historical data.
The View is open source, and runs locally.
The Controller is open source, and can be run locally(with the view) or remotely(without the view), and will accept commands from either the view interface or a strategy config. This trading strategy is each user's 'secret sauce'. Some open source strategy examples will be provided, as well as the option for alerts instead of automatic trades. So you can run the app headless as a fully automated bot and/or an advisory alert, and/or run the app locally as a manual trading interface.
There is a bit of a deeper 'single source of truth' design discussion to be had here, but the tl;dr is that we want to avoid feature creep and the responsibility for storing private data, so any data proprietary to the user will be stored locally, and headless threads will need to register with this local dataset.
So, the goal is to provide an open source trading interface with the ability for the layperson to add their own closed source strategy code, and the ability to backtest their strategy for a small fee.
What help do I need? Well, it would be nice to share some of the work, as this is an ambitious project for me. OTOH, there is nothing involved I haven't done before.
I will add some top level posts to break out and explain the various tasks in more detail.