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
- Fork it ( https://github.com/jordsmi/bitcoin_price/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request