Cryptowatch Library for Ruby

Developpement of a simple interface in Ruby for Cryptowatch.

To describe the use of the methods I used the phrases of the Cryptowat.ch documentation: API: https://cryptowat.ch/docs/

Get started

Install it yourself as:

gem install 'cryptowatch'

Require the gem into your project with:

require 'cryptowatch'

An example

require 'cryptowatch'

class MyApplication
  include Cryptowatch

    wrapper   = Wrapper.new;

    wrapper.get(Assets::index)
    wrapper.get(Assets::asset(:btc))

    wrapper.get(Exchanges::index)
    wrapper.get(Exchanges::exchange(:kraken))

    wrapper.get(Markets::index)
    wrapper.get(Markets::price(:kraken, :btcusd))
    wrapper.get(Markets::summary(:gdax, :btceur))
    wrapper.get(Markets::trades(:poloniex, :ethbtc))
    wrapper.get(Markets::orderbook(:kraken, :xrpbtc))
    wrapper.get(Markets::ohlc(:kraken, :xrpbtc))

    wrapper.get(Pairs::index)
    wrapper.get(Pairs::pair(:btcusd))
end

#In writing...