Converting Your Raspberry Pi Into a Crypto Trading Bot

Written by julian-molina | Published 2020/11/17
Tech Story Tags: raspberry-pi-trading | raspberry-pi | crypto-trading | cryptocurrency | algorithmic-trading | crypto-trading-bots | trading-automation | trading-algorithms

TLDR Julian Molina turns your Raspberry Pi into a crypto-trading bot. Superalgos is an open-source project building a Collective Trading Intelligence Intelligence. The tutorial will take you through all the basics and help you run your first data-mining operation, your first backtest using a demo trading system, and even your first live trading session on Binance.org. The GIU will auto-connect in less than a minute, and you may learn to design your own strategies using the visual designer.via the TL;DR App

What's not to love about your Pi? It's a serious piece of kit, and it's cheap! But… can it make you money?
How about we turn your Pi into a little money-making machine?
Let's get on with it!
This is what you'll need for this cool Pi project:
  • Raspberry Pi 2GB RAM ($40). If you plan to run long (multi-year) backtests you will likely need the 4GB or 8GB version (2 GB is enough for shorter backtests and trading live).
  • Flash-card, 16Gb ($7).
  • Raspberry Pi OS / Ubuntu ($0, open-source).
  • Node.JS ($0, open-source).
  • Git ($0, open-source).
  • Superalgos (0$, open-source).
I'll assume your Raspberry is fully set up with Raspbian/Raspeberry Pi OS or Ubuntu. If it's not, just follow the manufacturer's instructions.
Let's get on with the rest of the software set up:
  1. Download and install Node.JS.
  2. Download and install Git.
  3. Download and install Superalgos.
You don't want to run the Superalgos GUI on your Raspberry… the 2GB RAM version won't be able to cope with it.
The clever setup is to use the Pi as a backend service that you access from your regular machine's browser.
So, run Superalgos with the
noBrowser 
option. If your Pi is less than 8GB RAM, then add
minMemo
too:
node run minMemo noBrowser
The command will start Superalgos backend servers on your Pi!
Then, open Chrome on your regular machine to access the Superalgos backend web server. You will go to the Raspberry on port 34248. Like this:
http://raspberrypi:34248
If your router can’t resolve that URL, then replace
raspberrypi
with the IP Address of your RPI in the network.
Once in, click Stop on the Welcome tutorial, right-click to open the design space map, and click on the Network hierarchy. Expand the hierarchy (plus button on the menu) and find the Network Node.
Now, access the configuration of the Network Node (select Configure on the menu) and change the host by typing your Raspberry's IP address (i.e: 100.110.10.0 or whatever the Pi's address is on the network).
{
"host": "RaspberryIPAddress",
"webPort": "34248",
"webSocketsPort": "18041"
}
Exit the configuration by withdrawing the mouse pointer from the configuration bubble. The GIU will auto-connect in less than a minute, and
you are ready to go!

Get Up to Speed!

If you are not familiar with Superalgos, then right-click to open the design space map again, and click on the Welcome to Superalgos! tutorial hierarchy on the bottom-left corner, open the menu, and click Resume.
The tutorial will take you through all the basics and help you run your first data-mining operation, your first backtest using a demo trading system, and even your first live trading session on Binance.
Once you go through the first experience, you may learn to design your own strategies using the visual designer or use the ones shared by the Community.
The set up you just created is the minimum expression of a trading farm. If you have more Raspberries, or even old laptops or desktops gathering dust in the closet, pull them out, and set them up as new nodes on the Network!
A trading farm setup may run distributed and coordinated tasks across multiple machines, and each machine may run as many trading sessions as the hardware can cope with!
The author is a Core Team member at Superalgos, an open-source crypto-trading automation platform.

Written by julian-molina | Co-founder of Superalgos, an open-source project crowdsourcing superpowers for retail traders.
Published by HackerNoon on 2020/11/17