BitcoinPrice

Simple Ruby gem to grab the current Bitcoin price from various exchanges.

Currently works with: Bitstamp, Bitfinex, btc-e, and Coinbase

Installation

Add this line to your application's Gemfile:

gem 'bitcoin_price'

And then execute:

$ bundle

Or install it yourself as:

$ gem install bitcoin_price

Usage

#Get last bitstamp price
puts BitcoinPrice.bitstamp

#Get last bitfinex price
puts BitcoinPrice.bitfinex

#Get last btc-e price
puts BitcoinPrice.btce

#Get last coinbase price
puts BitcoinPrice.coinbase

Contributing

  1. Fork it ( https://github.com/jordsmi/bitcoin_price/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request