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: 37b802c2ccc2762aa8a1858c2c0af07a6702c77a
4
- data.tar.gz: c52509be379fd67d9cdb6206bf9a96fc9d515a04
3
+ metadata.gz: 475f4256d5ef764ff5fa64350cc0493540d1d2ac
4
+ data.tar.gz: ea44e83274d855689011a8a2e5195ec9ee1b6114
5
5
  SHA512:
6
- metadata.gz: 7795b77cb087d438e760e7c383361c6c01ed3cfaa87bcb36c41478504c7e18fc40312181ac7352152b71a458e2c57879e69560ee3f1db62435da6a22e499a310
7
- data.tar.gz: 7530a4891d411083a78bcdd219e876ba0e182cad2c440d634437b17178dc22b8b140a564cd78b7fc08924576257f726d40438642cd1cb5fb04459b3e334fd2e8
6
+ metadata.gz: 77b6168955f5003020add7016f54400d567e0865cc9b8cb0318a428655938ef964effd1e0c2b16276961e8561227e87336fc982c9cf9e545208a706f4a342595
7
+ data.tar.gz: e0add242770dc851fab4453f47ed767a38afb8816635c7e5149f6217ca731776815ea0be2c6cfe961dd16be362943c21711218fed62694c0be106c32d95dc383
@@ -6,8 +6,8 @@ class MercadoBitcoin::Api::Data::AskBid
6
6
 
7
7
  def to_hash
8
8
  {
9
- price: price,
10
- volume: volume
9
+ price: price.to_f,
10
+ volume: volume.to_f
11
11
  }
12
12
  end
13
13
 
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module MercadoBitcoin
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.3"
3
3
  end
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.1
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-03 00:00:00.000000000 Z
11
+ date: 2016-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: virtus