trade-o-matic 0.2.0 → 0.2.1
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/surbtc_backend.rb +1 -1
- data/lib/trade-o-matic/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74776e7f65da3df4d74c5ab9dd6e644bd3921f55
|
4
|
+
data.tar.gz: 8800ca9874d710757acb209fa72f891b5dd93435
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 756a98df8523873f62a16a4d777e82d8588123ab912415c3dc88a908e3b879927936032eee1df52721c5f5fac486668f91811fea8c32a98e36755aae39c1b7e9
|
7
|
+
data.tar.gz: 1078355996be86bc4a7432afd9b02d820058cca913a41bf0b768a32131d91d5453c4460e026365f7558fddaa168e0df258bc96b01f12d904d4ae8647bd5564b1
|
@@ -38,7 +38,7 @@ module Trader
|
|
38
38
|
attr_mapped(:price) { |r| r['limit'] }
|
39
39
|
attr_mapped(:volume) { |r| r['original_amount'].to_f }
|
40
40
|
attr_mapped(:executed_volume) { |r| r['total_exchanged'].to_f }
|
41
|
-
attr_mapped(:instruction) { |r| TYPE_MAP[r['type']] }
|
41
|
+
attr_mapped(:instruction) { |r| TYPE_MAP[r['type'].downcase] }
|
42
42
|
attr_mapped(:status) { |r| STATUS_MAP[r['state']] }
|
43
43
|
attr_mapped(:limit?) { |r| r['price_type'] == 'limit' }
|
44
44
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trade-o-matic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ignacio Baixas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|