mercado_bitcoin 0.2.1 → 0.2.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 475f4256d5ef764ff5fa64350cc0493540d1d2ac
|
4
|
+
data.tar.gz: ea44e83274d855689011a8a2e5195ec9ee1b6114
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77b6168955f5003020add7016f54400d567e0865cc9b8cb0318a428655938ef964effd1e0c2b16276961e8561227e87336fc982c9cf9e545208a706f4a342595
|
7
|
+
data.tar.gz: e0add242770dc851fab4453f47ed767a38afb8816635c7e5149f6217ca731776815ea0be2c6cfe961dd16be362943c21711218fed62694c0be106c32d95dc383
|
@@ -26,6 +26,13 @@ module MercadoBitcoin
|
|
26
26
|
post(params)
|
27
27
|
end
|
28
28
|
|
29
|
+
def cancel_order(pair: 'btc_brl', order_id:)
|
30
|
+
params = base_params('CancelOrder')
|
31
|
+
params[:pair] = pair
|
32
|
+
params[:order_id] = order_id
|
33
|
+
post(params)
|
34
|
+
end
|
35
|
+
|
29
36
|
# status: active, canceled, completed
|
30
37
|
# since and end: in Unix timestamp: Time.new.to_i
|
31
38
|
def order_list(pair: 'btc_brl', type: nil, status: nil, from_id: nil, end_id: nil, since: nil, _end: nil)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mercado_bitcoin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marco Carvalho
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: virtus
|