Sha256: 344d159866927810618a862806f52d49471c0869974414ccec7f659953db28f0

Contents?: true

Size: 882 Bytes

Versions: 1

Compression:

Stored size: 882 Bytes

Contents

# 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

```ruby
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
```

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cryptowatch-ruby-0.0.3 README.md