This section is for installing the bot on your own computer. If you have trouble with this, skip right to the section on hosting the bot on heroku. It's much easier!
Curl is a library that is a dependency of rbtc_arbitrage. You will need it installed on your computer to install the gem. To check if you have curl, open your terminal and type 'curl'. If you got a message that says something like 'command not found', then you'll need to install cURL. Head over to their download wizard
, select your operating system, and install the package.
If you've installed cURL and still have problems install
The first thing you'll need to know is whether Ruby is available on your computer. You will also need to have curl installed, as it is a dependency of the Bitstamp library. If you aren't sure whether you have Ruby installed, open your command line application (Terminal on OS X or Command Prompt on Windows) and enter 'ruby -v' (without quotes). You'll need to have at least version 1.9 of Ruby. If no error appears and you're above 1.9, you are all set up. Otherwise, you'll need to install Ruby.
If you're on Windows, I recommend using RubyInstaller. It's suggested to install version 1.9.3, but 2.0.0 works well too. Download the .exe installer
If you're on Linux or OS X, you should install ruby with RVM. You can install RVM by running this command in the terminal: curl -sSL https://get.rvm.io | bash -s stable
Before continuing, make sure you are using atleast version 1.9 of Ruby. Run "ruby -v" to make sure your version is valid. If you are below version 1.9, you will not be able to install the bot.
Once you know Ruby is set up on your computer, you can install the toolkit (known as a Ruby gem) by running 'gem install rbtc_arbitrage' in the command line. This should take less than 30 seconds. If you run into errors, check out this StackOverflow thread. Those install issues usually have to do with the Bitstamp gem, which is a dependency of rbtc_arbitrage.
If you're still having problems installing rbtcarbitrage, and you don't need to trade with Bitstamp, there is a version of rbtc_arbitrage that usually eliminates installation issues. To use this version, run '_gem install rbtc_arbitrage_simple'. Instead of starting your commands with 'rbtc', use 'rbtc_simple'.
After that's installed, simply run
rbtc. If you see the current arbitrage conditions (like market prices and profit margins), you're all set. Feel free to move on to learn about how to use and customize this tool.
Sometimes, issues arise during this process. Your best friend during these situations is Google and other search engines. Try searching for the error message you receive. Here are a few common errors that arise:
Failure to build native extensions
Building native extensions. This could take a while...
ERROR: Error installing rbtc_arbitrage:
ERROR: Failed to build gem native extension.
There are a few reasons why this could happen. If you see something like this in your output:
**gems/json-1.8.1_ _or even 1.8 or 1.8.1
you probably have the wrong ruby version installed. Ruby 'ruby -v'. If your version is below 1.9, you need to upgrade.
If your output indicates that it has something to do with the
curb gem, try the solutions here.
If you see something like "**Can't find libcurl or curl/curl.h
", you need to install curl.
If you're still having issues, try installing rbtc_simple.
mkmf.rb can't find header files for ruby
**If you're on OS X, you might have to install XCode command line tools. Check this thread for details. Try running 'xcode-select --install'.
in `connect': SSL_connect returned=1 e
rrno=0 state=SSLv3 read server certificate B: certificate verify failed**
Check out this page about openSSL certificate errors for solutions.