cryptum 0.0.345 → 0.0.347
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 361bea330d813c6882f2ef103686a502c1b44217e75cd165ed02edc388827bbd
|
4
|
+
data.tar.gz: c5c3054d099deaec60d810b42fd9878878e99c0367e2d22346a871607e3cdb9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3708dff657b574bfb45322a147e60e2ee9c00f2b679a874a9a49fe1d72a9956f381a457f5ee74b289c68b4577454587ae5e47e3f16e1098ff4000f7b1e492858
|
7
|
+
data.tar.gz: a66ae834378131a367d56a4730916f7c48864cf6693cdd2de930dfcb4677fd7c11c8d88afe2604fd76990d3b19c2c511835b732efc440f261851934e279fcc52
|
@@ -45,7 +45,7 @@ module Cryptum
|
|
45
45
|
# order_difference_out = Cryptum.beautify_large_number(
|
46
46
|
# value: order_difference
|
47
47
|
# ).to_i
|
48
|
-
motivation = '
|
48
|
+
motivation = 'BTD'
|
49
49
|
motivation = 'FOMO' if event_history.bullish_trend
|
50
50
|
indicator_hash[:color] = :green
|
51
51
|
indicator_hash[:ui] = "#{motivation} | BUYS UP BY #{order_difference.to_i}"
|
@@ -56,8 +56,8 @@ module Cryptum
|
|
56
56
|
# order_difference_out = Cryptum.beautify_large_number(
|
57
57
|
# value: order_difference
|
58
58
|
# ).to_i
|
59
|
-
motivation = '
|
60
|
-
motivation = '
|
59
|
+
motivation = 'GTFO'
|
60
|
+
motivation = 'TPROF' if event_history.bullish_trend
|
61
61
|
indicator_hash[:color] = :red
|
62
62
|
indicator_hash[:ui] = "#{motivation} | SELLS UP BY #{order_difference.to_i}"
|
63
63
|
indicator_hash[:status] = "S#{Cryptum.up_arrow}"
|
@@ -62,7 +62,8 @@ module Cryptum
|
|
62
62
|
current_crypto_fiat_value.to_f.fdiv(total_holdings.to_f) * 100
|
63
63
|
)
|
64
64
|
|
65
|
-
event_history.red_pill = true if crypto_invested_percent.to_f > autotrade_percent
|
65
|
+
event_history.red_pill = true if crypto_invested_percent.to_f > autotrade_percent ||
|
66
|
+
fiat_budget > min_market_funds.to_f
|
66
67
|
|
67
68
|
# SAUCE 2
|
68
69
|
# Generating and/or recalculating order plan
|
data/lib/cryptum/version.rb
CHANGED
@@ -202,8 +202,8 @@ module Cryptum
|
|
202
202
|
key_press_event: terminal_win.key_press_event
|
203
203
|
)
|
204
204
|
|
205
|
-
if order_countdown.zero? ||
|
206
|
-
|
205
|
+
if (order_countdown.zero? || order_countdown.negative?) &&
|
206
|
+
!event_history.red_pill
|
207
207
|
|
208
208
|
# Ready to Submit a BUY order
|
209
209
|
event_history.order_ready = true
|