How I Built A Bitcoin Bot

WHAT IS BITCOIN, AND HOW CAN I MAKE MONEY WITH IT?

This is the infamous question that everyone keeps asking. Many people who invested even a few months ago are sitting on profits more than 100%. So how can you get in on this?

Of course, you can watch the price of Bitcoin to buy when low and sell when high for a profit right? In a nutshell, you technically can, however, no one has the flexibility or will power to sit by the computer all day every day to make some money. Especially when you have other responsibilities.

Let’s build the bot

1. GDAX
The first thing you will need to to make an account with GDAX. GDAX is a cryptocurrency market exchange that allows you to buy and sell crypto in seconds. In addition, the provide an API that let you trade on your own. We will use this later on.
gdax

After you have created your account and everything is set up, you will need to create an API key.

2. Code
a.GDAX API

To easily use the GDAX API, you can download the wrappers that are available. For this project, I used the python wrapper. With this, I was making API calls in less than 5 minutes.
b.

3. Cron Job
Now that your code is complete, it’s time to set up a cron job so that your bot runs on a consistently. I used a spare raspberry pi I had to do this.

Set the cron job by using
$ crontab -e

Add your script to run for what time you like. It may be smart to add some type of logging for the output your bot.
$ */10 * * * *

cd /home/pi/Desktop/BARVIS && /usr/bin/python /home/pi/Desktop/BARVIS/BARVIS.py >> /home/pi/Desktop/barvis_log.txt
This runs every 10 mins

Cheers🍻!!
You created your own bot!

Now watch as your code makes money for you.

 

And then celebrate

BTC: 1LuxVKPY3DtbQxzrHj8iqdHEADX9x4UGuL
LTC: LZyUmWqbfKx5vco89PSnFiNtWMsnXKiZtL
ETH: 0xC8a2FEC94198406D79BfC9c9543C14e89be093e1

www.000webhost.com