coinstats 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 99dc2a02be6dd9f5c30a96c4d6d28c5569c2a959
4
- data.tar.gz: a0b1285790e4b92c7b67bc1f18ea6203e8c9cc48
3
+ metadata.gz: 8069842632b21f1e6561578c239f3bfbd687cf37
4
+ data.tar.gz: 1270697cff895a796c00310da72ed382a0f76558
5
5
  SHA512:
6
- metadata.gz: 1686557f11abd7f000a49ada3759a628e116e7ad55135a5f15fab1c5ae5fa0bed8d69bf5fb40ecf0ced6e6dd2da7ac981fdc0235034f9c7cebf2bec9cce46905
7
- data.tar.gz: c303a2135aba493c809dd1b95fb8d71bf7e86f6e0420e8ee88a1c7d00f1d15505a8df1094824f1dd28cd7e7aecc1856e6f25d6971b6ceb24d5ae0205c1abdeb9
6
+ metadata.gz: 1a67cc6b6c3e9fbff866fc37f1f96bc6bb133e2a0b9f4574f9d64e729b2b6794e88a66fe2eb67d67e5839cd5ea9a4e4b71ad0bb404a0ef4fe5ce9ffc3b39a661
7
+ data.tar.gz: 94f7cbaa011f184baf09b1dade0025375643be95c418ef7a45df6ee527fa8222fd0f0b0b322d034de9493e7f996ad779ca2b682b81f89616ae86da0a556a648a
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Coinstats
2
2
 
3
- TODO: Write a gem description
3
+ To get started check out the API Overview. Below is the documentation for each type of API call you can make. https://coinbase.com/api/doc
4
4
 
5
5
  ## Installation
6
6
 
@@ -1,9 +1,12 @@
1
1
  require "coinstats/version"
2
+ require 'openssl'
3
+ require 'rest_client'
4
+ require 'json'
5
+
6
+ API_KEY = ''
7
+ API_SECRET = ''
2
8
 
3
9
  module Coinstats
4
- def self.add(a,b)
5
- a + b
6
- end
7
10
  def get_http(url, body=nil)
8
11
  nonce = (Time.now.to_f * 1e6).to_i
9
12
  message = nonce.to_s + url + body.to_s
@@ -21,5 +24,11 @@ module Coinstats
21
24
  puts e
22
25
  e.response
23
26
  end
24
- end
27
+ end
25
28
  end
29
+
30
+ #data = get_http('https://coinbase.com/api/v1/account/balance')
31
+ #puts get_http('https://coinbase.com/api/v1/prices/spot_rate')
32
+ #puts get_http('https://coinbase.com/api/v1/prices/spot_rate?currency=EUR')
33
+ #puts get_http('https://coinbase.com/api/v1/prices/historical?page=5')
34
+ #puts JSON.parse(data.body)
@@ -1,3 +1,3 @@
1
1
  module Coinstats
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coinstats
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Darren Doyle