trade-o-matic 0.5.2 → 0.5.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: cdb3595eea3330dbf40ed1afd20fb8348bb8bb4d
4
- data.tar.gz: 78a9ef0e573e675b114c32d080919d6b5e8757c8
3
+ metadata.gz: b576a3dcdc653394bb76f68e9b9623d03eb762cd
4
+ data.tar.gz: e37a4067ea7d14ee39417fe91bb96c2c7205bd80
5
5
  SHA512:
6
- metadata.gz: bc904cab00433f2d3976d980c2bbd2faccf79912e72f5e9ed1e7d23bf58c0bddd17e6e978994b640e60313cc41755ace6d94d8244cd1ca2a999d4842bc293f4b
7
- data.tar.gz: 7ecfa279fa0a9b8394d361f43f0c22a28653fa8aae669e60b011fda220f0d6fd1948d0281cea65102642cac232e5d2351ca1dce963970a47d8c2677b00959fca
6
+ metadata.gz: 3dd600bd73ef4edbb3cb9a30e2711467d90f11194896e676ae73706fe485e189035f6d5dcb4ca3cbc71f3cdeb26c6c368681b737707c07e2ec9bf76619d69168
7
+ data.tar.gz: 5fd1be56bd9a05c605970cccd6f52a91f94c1648e860361642d96ba029f85b8c3613d4ed58156c7d0e2e4811311c9b6f35596070c6f97dc1174fed7e2767ac57
@@ -21,7 +21,8 @@ module Trader
21
21
  class OrderAdaptor < RawAccountOrder
22
22
  attr_mapped(:id)
23
23
  attr_mapped(:pair) { |r| MAIN_MARKET }
24
- attr_mapped(:price) { |r| r['type'] == 'exchange market' ? nil : r['price'] }
24
+ attr_mapped(:limit?) { |r| r['type'] == 'exchange limit' }
25
+ attr_mapped(:price)
25
26
  attr_mapped(:volume, 'original_amount')
26
27
  attr_mapped(:executed_volume, 'executed_amount')
27
28
  attr_mapped(:instruction) { |r| r['side'] == 'buy' ? Order::BID : Order::ASK }
@@ -34,10 +35,6 @@ module Trader
34
35
  AccountOrder::CLOSED
35
36
  end
36
37
  end
37
-
38
- def limit?
39
- true
40
- end
41
38
  end
42
39
 
43
40
  def initialize
@@ -1,3 +1,3 @@
1
1
  module Trader
2
- VERSION = "0.5.2"
2
+ VERSION = "0.5.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trade-o-matic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ignacio Baixas