Cloud Driven Snakes

Maximilian Wimmer
5 min readJun 7, 2022

Get Started with PythonAnywhere to run a Trading Algorithm in the Cloud

In the last articel we learned how to use pylivetrader to run a live trading algortihm locally. In this articel we are going to look at how to use pylivetrader for running an algortihm in the cloud. There are many cloud services on the market, including AWS, Google Cloud, Heroku, Digital Ocean, and PythonAnywhere. This walkthrough focuses on setting up PythonAnywhere and running a sample trading algorithm with pylivetrader. PythonAnywhere has a free tier of accounts but to access the Alpaca endpoints you will need a paid account. PythonAnywhere is a nice option because it gives you some manner of GUI for accessing consoles, files, notebooks, and even scheduling tasks that automatically restart if they go down which is excellent for algo trading.

Forthermore I added a section to fix the BTC symbol error while running an algorithm with pylivetrader and pipeline-live in the cloud.

1. Setting up PythonAnywhere

1.1 New Account

Frist of all you need to make a new PythonAnywhere account.

After you login with your account you are going to be welcomed with your dashboard.

--

--