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: 2476e8d459d2cedb77447a65564b2ea564917e82ab806c03c617ed289be1f247
4
- data.tar.gz: 5e30077ba732f84341c56811acb2613d39f6a244e05a0a3aacf67171a53e9331
3
+ metadata.gz: 361bea330d813c6882f2ef103686a502c1b44217e75cd165ed02edc388827bbd
4
+ data.tar.gz: c5c3054d099deaec60d810b42fd9878878e99c0367e2d22346a871607e3cdb9a
5
5
  SHA512:
6
- metadata.gz: 2bfa1a93abce00e987a79964d87dbce1a08fb5276b260791820c344a1c4080c4b276f11290029327149fbaf4108d3b6890593bfbd2e08461b6d3555bdd787183
7
- data.tar.gz: a9609ebc72a394b2368533dacf37a639cb37106c4619c3a9d036b64def573ff8dd35d5c07d406a92708136d91d561bd4d7188932807b1c909663ff982394b579
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 = 'BUYING THE DIP'
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 = 'GETTING THE F* OUT'
60
- motivation = 'TAKING PROFITS' if event_history.bullish_trend
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cryptum
4
- VERSION = '0.0.345'
4
+ VERSION = '0.0.347'
5
5
  end
@@ -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
- order_countdown.negative?
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cryptum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.345
4
+ version: 0.0.347
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.