Skip to content
Dan Wallace edited this page Sep 25, 2020 · 13 revisions

Welcome to the East Village Trading Bot Wiki!

Here you will learn how to go from zero to a self-running robot on a web-server. All these steps were done on Windows 10 (version 2004). Most of the steps occur when dealing with the amazon web server. Once you have logged into the server, everything will be in linux commands and will be the same for everyone. If you follow this step by step, exactly, you should be up and running in no time.

To simplify installation, go ahead and register accounts on these four sites. We will be pulling resources from them as we go.

Before we start:

Bookmark these sites and remember your logins as you may need to revisit these sites in the future.

Alright, now for the fun part. You are only 15 minutes away from having your own 24/7 stock trading robot.

Step 1

Step 2

Grab your API keys from Alpaca. Open your editor of choice, place them in config.py and save

This works with live or paper trading. I recommend using the paper money api keys Alpaca api key Config.py api key entry

Step 3

Login to your AWS account

Sign into aws console AWS console login

Step 4

Launch virtual machine

Create virtual aws machine

Step 5

Select amazon linux 2 (should be first in the list of results)

Amazon Linux

Step 6

Choose instance: select "t2.micro" -> Press: Review and Launch

Select Instance

Step 7

Review instance -> Press: Launch

Launch Instance

Step 8

Create key pair, download .pem file and press launch instance

Save the downloaded key pair to your user folder: (ex: C:/Users/your pc user name here/example.pem)`

Create Key-Pair

Step 9

Launch and view instance

View Instance

Step 10

Click any blank space in the instance (name field) and the instance summary will appear

Copy the Public IPv4 DNS address and place it in a text document for later

Amazon DNS

Step 11

Login to your ngrok account. After you login you will see see the screen below.

Download the linux (ARM64) file (this is for your linux server). And copy the authentication token into your notepad for later

ngrok authtoken and download

Step 12

Login to your ngrok account. After you login you will see see the screen below.

Download the linux (ARM64) file (this is for your linux server). And copy the authentication token into your notepad for later

ngrok authtoken and download

HALFWAY THERE! You should have a text document for reference that looks like this now:

notepad progress

Step 13 (Microsoft Windows users only)

Install WSL version 2 (windows subsystem for linux). Follow Microsoft's WSL install guide

** SKIP IF: wsl is already installed or you are running macOS or linux **

Step 14 (Microsoft Windows users only)

Open Powershell and type" WSL "

** SKIP IF: you are running macOS or linux **

wsl

Step 15

Once WSL is run in powershell (or you are in macOS/linux terminal), copy and paste the text below (replace the path and file name with your own)

cp /mnt/c/Users/YOUR_PC_USER_NAME_HERE/example_REPLACE_with_Your_own.pem ~/example_REPLACE_with_Your_own.pem

Clone this wiki locally