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 +4 -4
- data/lib/trade-o-matic/adapters/bitfinex_backend.rb +2 -5
- data/lib/trade-o-matic/version.rb +1 -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: b576a3dcdc653394bb76f68e9b9623d03eb762cd
|
4
|
+
data.tar.gz: e37a4067ea7d14ee39417fe91bb96c2c7205bd80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(:
|
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
|