Collection of public data API urls for various online crypto-currency exchanges, e.g. MtGox, BTC-e, etc.
I tried to follow the UNIX philosophy of "write programs which do one thing and do it well", so this module doesn't include a user-agent module. It only provides public data API URL's in one convenient location, and optionally, parses the data returned from those URLs. You'll have to use this in conjunction with 'mechanize' or 'net/http' or some other such module to actually do anything (see example).
gem install crypto_ticker
require 'crypto_ticker' require 'mechanize' require 'pp' agent = Mechanize.new # get MtGox BTC/USD ticker URL: url = ::.('BTC/USD') json = agent.get( url ).body mtgox_data_hash = ::.( json ) pp mtgox_data_hash
- Fork it (Github repo: homepage)
- 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 new Pull Request
Released under the MIT License. See the LICENSE file for further details.