watchcow 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/watchcow/client.rb +7 -11
- data/lib/watchcow/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1b15c9de20d884e068ef230f92b09657a1cf93af7f1373d003ec1e8478b630c
|
4
|
+
data.tar.gz: 91899f1fe1756b5dbd28f5adb7c76335660491c7151114b0d850e64745fc9af9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98a8e7ec181598f1e06b1d6716759e002e4cb7c435e31d01c385726e0fa0a3d130ec0a566a6f7056fd17afea6f66e3fdb589c95ea2f59e9260adc0e3819050d0
|
7
|
+
data.tar.gz: 07f6533ef510386861017afd3bb116f9134237256e83eddd721d7dea2b7e2a60db2ed619b546f561887c625ce5d5bfe778f53557fe8743e2be85ee169a6a951c
|
data/lib/watchcow/client.rb
CHANGED
@@ -38,17 +38,13 @@ module Watchcow
|
|
38
38
|
best_cw = cw.first
|
39
39
|
best_nw = nw.first
|
40
40
|
text = [best_nq, best_cq, best_nw, best_cw].each do |x|
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
first dm bid: #{x.dig('dm_first_bid')}
|
49
|
-
first spot bid: #{x.dig('spot_first_bid')}
|
50
|
-
|
51
|
-
CONTENT
|
41
|
+
t =
|
42
|
+
<<-CONTENT
|
43
|
+
#{x.dig('coin')}, #{x.dig('days')} days left
|
44
|
+
annual margin: #{x.dig('margin')}%
|
45
|
+
landed margin: #{x.dig('real_margin_expected')}%
|
46
|
+
dm bid: #{x.dig('dm_first_bid')}, spot bid: #{x.dig('spot_first_bid')}
|
47
|
+
CONTENT
|
52
48
|
puts t
|
53
49
|
end
|
54
50
|
end
|
data/lib/watchcow/version.rb
CHANGED