bitstamp 0.2.2 → 0.2.3
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.
- data/README.md +7 -0
- data/VERSION +1 -1
- data/bitstamp.gemspec +2 -2
- data/lib/bitstamp/net.rb +0 -9
- metadata +3 -3
data/README.md
CHANGED
@@ -28,6 +28,13 @@ The bitstamp ticker. Returns `last`, `high`, `low`, `volume`, `bid` and `ask`
|
|
28
28
|
Bitstamp.ticker
|
29
29
|
```
|
30
30
|
|
31
|
+
It's also possible to query through the `Bitstamp::Ticker` object with
|
32
|
+
each individual method.
|
33
|
+
|
34
|
+
```ruby
|
35
|
+
Bitstamp::Ticker.low # => "109.00"
|
36
|
+
```
|
37
|
+
|
31
38
|
## Fetch your open order
|
32
39
|
|
33
40
|
Returns an array with your open orders.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.3
|
data/bitstamp.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "bitstamp"
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Jeffrey Wilcke"]
|
12
|
-
s.date = "2013-05-
|
12
|
+
s.date = "2013-05-31"
|
13
13
|
s.description = "Ruby API for use with bitstamp."
|
14
14
|
s.email = "stygeo@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/bitstamp/net.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
module Bitstamp
|
2
2
|
module Net
|
3
3
|
def self.to_uri(path)
|
4
|
-
#return "http#{Kojn.ssl ? "s" : ""}://#{Kojn.host}:#{Kojn.port}#{path}"
|
5
4
|
return "https://www.bitstamp.net/api#{path}/"
|
6
5
|
end
|
7
6
|
|
@@ -23,32 +22,24 @@ module Bitstamp
|
|
23
22
|
def self.get(path, options={})
|
24
23
|
request = self.curl(:GET, path, options)
|
25
24
|
|
26
|
-
request.perform
|
27
|
-
|
28
25
|
return request
|
29
26
|
end
|
30
27
|
|
31
28
|
def self.post(path, options={})
|
32
29
|
request = self.curl(:POST, path, options)
|
33
30
|
|
34
|
-
request.perform
|
35
|
-
|
36
31
|
return request
|
37
32
|
end
|
38
33
|
|
39
34
|
def self.patch(path, options={})
|
40
35
|
request = self.curl(:PATCH, path, options)
|
41
36
|
|
42
|
-
request.perform
|
43
|
-
|
44
37
|
return request
|
45
38
|
end
|
46
39
|
|
47
40
|
def self.delete(path, options={})
|
48
41
|
request = self.curl(:DELETE, path, options)
|
49
42
|
|
50
|
-
request.perform
|
51
|
-
|
52
43
|
return request
|
53
44
|
end
|
54
45
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bitstamp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-05-
|
12
|
+
date: 2013-05-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activemodel
|
@@ -165,7 +165,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
165
165
|
version: '0'
|
166
166
|
segments:
|
167
167
|
- 0
|
168
|
-
hash:
|
168
|
+
hash: -795471452815050134
|
169
169
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
170
170
|
none: false
|
171
171
|
requirements:
|