cbx 0.0.2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3f33df9c4f8cbf40452cb09df7782456bea54bc5
4
- data.tar.gz: d784b77f9d0342c51a80b3210f64a5f563fed1a3
3
+ metadata.gz: 7597a3ad34516559fa70042556243da1950f8ad3
4
+ data.tar.gz: 908ac4dca312d8f6e332809a2ece0c752ec4b7e7
5
5
  SHA512:
6
- metadata.gz: 0e4e51d7262e7f9132184597b2a0ee1ac16ba9e0f1b11058b710094dd144821d6144316c79cda16c8471211cd10160657f425827277050e253e0733a75641d9c
7
- data.tar.gz: 88c3e1a7eef1bc7a92756268bf66c378e34a75d01d50cfc0554b9cd3f45b0b6fc8d727e66fc234bbe35bef8f8d3fd4ad9432aa2bd1b61fec81393beb24a98813
6
+ metadata.gz: e09a21127b88a44c6ed2956d857c4a839abf749bd0dbb9b8194640abd26429c0027af1b183605e7f6d58d675ac4ba095825779aa8fe00168bcfdbebed0cd5c48
7
+ data.tar.gz: 08a0a7737bf1f00e634420c2dc78ac75c2a7cb575fe9a8f51c360987c8c0c164dc6024e06cba01495869de7a08ed1dddf69e81604fe3415a9f80fb199c2694d7
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'cbx'
3
- s.version = '0.0.2'
4
- s.date = '2015-03-15'
3
+ s.version = '0.1.0'
4
+ s.date = '2015-03-16'
5
5
  s.summary = "Ruby wrapper for the Coinbase Exchange API"
6
6
  s.description = "A complete interface to the Coinbase Exchange trading API."
7
7
  s.authors = ["Michael Rodrigues","Dan Silver"]
@@ -17,5 +17,21 @@ class CBX
17
17
  def trades(product_id='BTC-USD', &block)
18
18
  get('products/' + product_id + '/trades', nil, &block)
19
19
  end
20
+
21
+ def candles(level='1', product_id='BTC-USD', &block)
22
+ get('products/' + product_id + '/candles', nil, &block)
23
+ end
24
+
25
+ def stats(&block)
26
+ get('products/' + product_id + '/states', nil, &block)
27
+ end
28
+
29
+ def currencies(&block)
30
+ get('currencies', nil, &block)
31
+ end
32
+
33
+ def time(&block)
34
+ get('time', nil, &block)
35
+ end
20
36
  end
21
37
  end
@@ -1,3 +1,3 @@
1
1
  class CBX
2
- VERSION="0.0.2"
2
+ VERSION="0.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cbx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Rodrigues
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-03-15 00:00:00.000000000 Z
12
+ date: 2015-03-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: unirest