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
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.
After you have created your account and everything is set up, you will need to create an API key.
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.
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
You created your own bot!
Now watch as your code makes money for you.
Less than 48 hours into starting my Bitcoin bot, which I named BARVIS. Up 8.35%. Cheers!
— Chukwuemeka➰ (@omoseisreal) December 3, 2017
Up 14.08% …. pic.twitter.com/9lg6LdOZbw
— Chukwuemeka➰ (@omoseisreal) December 6, 2017
Up 16.55% pic.twitter.com/PkL6x9qpX6
— Chukwuemeka➰ (@omoseisreal) December 7, 2017
— Chukwuemeka➰ (@omoseisreal) December 8, 2017
And then celebrate