No release in over 3 years
Low commit activity in last 3 years
A simple API wrapper in Ruby to facilite the use of Cryptowat.ch
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0
>= 1.8.7, ~> 1.8
~> 10.0
>= 3.7.0, ~> 3.7
~> 3.0
 Project Readme

Cryptowatch Wrapper in Ruby

A simple API wrapper for Cryptowatch written in Ruby.

Cryptowat.ch API documentation: https://cryptowat.ch/docs/

Get started

Installation

gem install 'cryptowatch'

Require the gem into your project with:

require 'cryptowatch'

An example

require 'cryptowatch'

class MyApplication
  wrapper = Cryptowatch::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