bitstamp-2 0.4.4 → 0.5.0
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 +4 -4
- data/Gemfile.lock +1 -1
- data/bitstamp.gemspec +1 -1
- data/lib/bitstamp/orders.rb +6 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 947c40d039fd922eee00f49d476948ccabc80844
|
|
4
|
+
data.tar.gz: 33a2da15263047c404fea89be45bed5235f55545
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fcc0386cde7f0ddd45c3cbb4c6f8b755a8cd98e4c31acc5695406d467d92cc23ce02b28cc8a64280a0be8a76e4797c1dc601dee22348ff633a69e80548125b64
|
|
7
|
+
data.tar.gz: afd711b187915c9530742364fb403cedfff1c7c17aef60258665b19e5c643d9dda66f6c67644bdc773564040572075a21590d99fd246fd7e686743c5202112e4
|
data/Gemfile.lock
CHANGED
data/bitstamp.gemspec
CHANGED
data/lib/bitstamp/orders.rb
CHANGED
|
@@ -25,13 +25,18 @@ module Bitstamp
|
|
|
25
25
|
|
|
26
26
|
return all[index] if index
|
|
27
27
|
end
|
|
28
|
+
|
|
29
|
+
def status(order_id, options = {})
|
|
30
|
+
options.merge!({id: order_id})
|
|
31
|
+
Bitstamp::Helper.parse_objects! Bitstamp::Net.post('/order_status', options).body, self.model
|
|
32
|
+
end
|
|
28
33
|
end
|
|
29
34
|
|
|
30
35
|
class Order < Bitstamp::Model
|
|
31
36
|
BUY = 0
|
|
32
37
|
SELL = 1
|
|
33
38
|
|
|
34
|
-
attr_accessor :type, :amount, :price, :id, :datetime
|
|
39
|
+
attr_accessor :type, :amount, :price, :id, :datetime, :status
|
|
35
40
|
attr_accessor :error, :message
|
|
36
41
|
|
|
37
42
|
def cancel!
|