Cryptocurrency
My aim for this project was not to make money but to learn about the cryptocurrency world. I decided to set up a cryptocurrency mining rig and create a bot linked to my Binance account to trade automatically.
Mining
I chose a Raspberry Pi 4 board to mine cryptoc. Since it doesn’t provide a very high hash rate, I decided to mine Monero. The problem with mining Bitcoin or Ethereum is that it is extremely difficult due to the large number of people using high-end machines to mine them.
I installed mining software on the board, joined a mining pool, and created a wallet.
As mentioned earlier, the hash rate isn’t very competitive. I achieved approximately 44 H/s. For comparison, my RX6700XT GPU produced about 25 MH/s, while high-end mining machines can achieve approximately 103 TH/s.
Trading
I used Python and the Binance API to create a trading bot. It’s a straightforward bot that trades between two selected coins, which I mostly used to trade between BTC and BUSD.
The bot sells BTC when it detects a 0.15% drop in value and buys when its value increases by 0.3%. I determined these thresholds through iteration and analysis of the coin’s price evolution. These thresholds are designed to minimize unnecessary trades caused by minor fluctuations.
The script also detects when the Wi-Fi connection is lost and triggers an alert sound, prompting me to check the connection. This ensures I am aware of any issues and can manually resume trading on my app to avoid losing money.