Algorithmic Trading on Raspberry Pi: Setup, Install & Automate Your First Script
### **In this video:** 1. Overview of Raspberry Pi 4B hardware and specs for trading. 2. Step-by-step Raspbian OS installation and setup. 3. Explanation of alternate operating systems for the Pi. 4. Brief intro on Linux Ecosystem 4. Installing Python and setting up a Conda environment for clean, efficient coding. 5. Running our first simple Python algorithm on the Pi and automate it using Crontab! Whether you're a beginner or an experienced trader looking to save on cloud costs, this setup will give you all the tools you need to start collecting data and running trading algorithms from home. Subscribe to follow the full series and build a complete, cost-effective trading setup with Raspberry Pi! 🎉 Link for the DIY article: https://www.technicallywizardry.com/diy-dashcam-raspberry-pi-zero-w-motion-eye/?form=MG0AV3 Some useful commands that you have to run on RPI terminal: Open Terminal and run these commands to update your package list and upgrade all packages: sudo apt update sudo apt upgrade Add Conda to Your PATH: Open your shell configuration file export PATH="/home/your_username/miniforge3/bin:$PATH" Reload Your Shell Configuration: Apply the changes by running: source ~/.bashrc Create a New Environment: Create a new Conda environment with Python: conda create -n quantext python=3.12.0 Activate the Environment: Activate the new environment: conda activate quantext (replace quantext with any name you have given) VNC configuration in order to allow copy and paste between your Windows machine and Raspberry Pi sudo nano /etc/vnc/config.d/custom Add the following line to enable copy/paste functionality: AcceptCutText=1 Make the Python Script Executable: chmod +x /home/pi/script/your_script.py Create a bash script to activate the Conda environment and run your Python script. nano /home/pi/script/run_script.sh Add the following content to the file: #!/bin/bash source /home/pi/miniforge3/bin/activate quantext python /home/pi/script/your_script.py Make the Bash Script Executable: chmod +x /home/pi/script/run_script.sh Open the crontab editor to add a cron job: crontab -e Add the following line to run the bash script at a specific time. For example, to run it every day at 2 AM: 30 16 * * 1-5 /home/pi/script/run_script.sh If above cronjob doesnt work (sometimes its x11 display issue) then write this 30 16 * * 1-5 export DISPLAY=:0 && /home/pi/script/run_script.sh
Download
0 formatsNo download links available.