cryptum 0.0.256 → 0.0.257
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cryptum/event/history.rb +2 -2
- data/lib/cryptum/ui/order_timer.rb +2 -6
- data/lib/cryptum/ui/ticker.rb +6 -3
- data/lib/cryptum/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: 700e1a1a2785e98e2ba35546de12c8920716951d891439f37ddb67d44d11ac45
|
4
|
+
data.tar.gz: e0ba8ec4ce2dea089fe9e58aafc93258d02593029875636e20c0edee0f7a068d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81f138f0d93da609436879479b61fb59750b2b6c013a921df87de1bbb566bb86e0a38f37067ecc3e8d4409c43db3102596afe17910b3770dcadaad8d0c66c04c
|
7
|
+
data.tar.gz: a94ad89f104b2dab9d0cef42de733b0211271e9ef5bed7788949e203b3f44d85e859dd40c4598befb341bed192f336f8f50c4376f654f238ea9195545d3fcb45
|
@@ -63,8 +63,8 @@ module Cryptum
|
|
63
63
|
self.time_between_orders = 600
|
64
64
|
self.time_between_orders_reset = self.time_between_orders
|
65
65
|
|
66
|
-
#
|
67
|
-
self.time_between_orders_max =
|
66
|
+
# 1 hour
|
67
|
+
self.time_between_orders_max = 3_600
|
68
68
|
|
69
69
|
# 5 seconds
|
70
70
|
self.time_between_orders_min = 5
|
@@ -55,14 +55,10 @@ module Cryptum
|
|
55
55
|
# Otherwise, intent should be something like, "- WAIT FOR MARKET TREND SHIFT -"
|
56
56
|
intent = "- SEE LIMIT SELL ORDERS -"
|
57
57
|
else
|
58
|
-
trend = 'BEAR'
|
59
58
|
speed = 'FAST'
|
60
|
-
if event_history.bullish_trend
|
61
|
-
trend = 'BULL'
|
62
|
-
speed = 'SLOW'
|
63
|
-
end
|
59
|
+
speed = 'SLOW' if event_history.bullish_trend
|
64
60
|
|
65
|
-
intent = "
|
61
|
+
intent = "- #{speed} BUY: #{order_countdown} of #{time_between_order_exec_out} -"
|
66
62
|
intent = '- BUYING PAUSED -' if event_history.red_pill
|
67
63
|
end
|
68
64
|
|
data/lib/cryptum/ui/ticker.rb
CHANGED
@@ -98,14 +98,17 @@ module Cryptum
|
|
98
98
|
)
|
99
99
|
if margin_percent_open_24h.positive?
|
100
100
|
margin_percent_open_24h_color = :green
|
101
|
-
|
101
|
+
trend = 'BULL'
|
102
|
+
margin_percent_open_24h_out = "#{Cryptum.up_arrow} #{beautify_margin_percent_open_24h}% (#{trend})"
|
102
103
|
elsif margin_percent_open_24h.negative?
|
103
104
|
# Space removed to account for negative number.
|
104
105
|
margin_percent_open_24h_color = :red
|
105
|
-
|
106
|
+
trend = 'BEAR'
|
107
|
+
margin_percent_open_24h_out = "#{Cryptum.down_arrow}#{beautify_margin_percent_open_24h}% (#{trend})"
|
106
108
|
else
|
109
|
+
trend = 'FLAT'
|
107
110
|
margin_percent_open_24h_color = :yellow
|
108
|
-
margin_percent_open_24h_out = "#{Cryptum.flat_arrow} #{beautify_margin_percent_open_24h}%"
|
111
|
+
margin_percent_open_24h_out = "#{Cryptum.flat_arrow} #{beautify_margin_percent_open_24h}% (#{trend})"
|
109
112
|
end
|
110
113
|
|
111
114
|
current_time_out = Time.now.strftime('%Y-%m-%d %H:%M:%S%z')
|
data/lib/cryptum/version.rb
CHANGED