Setting up an Amazon EC2 server to run an arbitrage trading bot for crypto exchanges

Economy Finance Trading
4 min readJun 17, 2019

Just a few reminders before getting straight to the point. I wrote a php arbritage BOT for trade.io exchange.

You can find this BOT source here : https://medium.com/@aymeric_nc/trade-io-crypto-exchange-arbitrage-bot-full-source-e74e5eccd082

You can find my exeperience with trade.io exchange here :

Finally, if you want to get in touch with me, you can find me here : https://t.me/tradiobottrading

So, there are around 9 steps to setup your Amazon EC2 server (considering you have an aws.amazon account and considering you have the software Putty (and Putty key generator which comes along) or any other software which allow ssh connection to servers. (Don’t ask me on apple, I have no idea !)

Note : My screenshots are in french, sorry for that ;)

First step to create an Amazon EC2 server to run a crypto arbitrage trading BOT
  1. So first step is to click on “Create instance”. That you can find in your aws.amazon dashboard ! (easy huh)
Second step to create an Amazon EC2 server to run a crypto arbitrage trading BOT

2. Select the Amazon Linux AMI server

Third step to create an Amazon EC2 server to run a crypto arbitrage trading BOT

3. Select this (there s not much to describe huh), then click next (wow)

Fourth step to create an Amazon EC2 server to run a crypto arbitrage trading BOT

4. Here it s becoming a bit more tricky, if you don’t have any keys, you need to create some (find any name you want) then click on “Download keys” you ll end up with a pem file on your computer. pem is not a kind of file that putty can read, so you ll need to convert it to ppk.

Fifth step to create an Amazon EC2 server to run a crypto arbitrage trading BOT

5. To do so, open Putty Key Generator. Click on “Conversions” and “Import key”

Sixth step to create an Amazon EC2 server to run a crypto arbitrage trading BOT

6. Then enter a Key passphrase (password) and confirm it. And finally click on “Save private key”. You now have a .ppk file !

Seventh step to create an Amazon EC2 server to run a crypto arbitrage trading BOT

7. You can now open putty. Fill your server IP (that you can find in your aws.amazon account, and then on the left, find “Connection -> SSH -> Auth. Click on it. Then click on Browser, and find your .ppk file.

8. Click on “open” and your terminal will popup. It will ask your for your username, enter : ec2-user (note : username is not “admin” or “root” !). If you have selected an ubuntu instance, your username is probably “ubuntu”. Press enter. It will ask you for your password (the one you entered in Putty Key Generator), press Enter again.

Nineth step to create an Amazon EC2 server to run a crypto arbitrage trading BOT

Now you just need to update your server and install php.

First command is :

> sudo yum update

Second command is :

sudo yum install -y php70

Congrats, your Amazon EC2 php server is up and running !

Feel free to join my telegram group on : https://t.me/tradiobottrading

And if you feel this article was cool and want to join trade.io, please use my ref code : https://trade.io/?tioRef=83de9d0a , I get 50% of the fees you spend on the exchange !

Thanks !

--

--

Economy Finance Trading

Everything about economy, finance and trading that could potentially help you understand the crazy financial world we are living in.