cryptum 0.0.252 → 0.0.253

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: 19c65d120a6680f9194a21ac9013e92e6f310dfd8303624fdd004222d5d5312e
4
- data.tar.gz: 594138604571f74d30c2a7f7ec356200bc38e5a91b2ff02e6bf742b827168ded
3
+ metadata.gz: de7aa17b3fb681ba04be33a6deb553a69288bda764c5dd986629885e01a2b844
4
+ data.tar.gz: 4cd2964dea4a496037635def94cccce1592ba2fa6d1f6b9245cbb2ffa324619d
5
5
  SHA512:
6
- metadata.gz: 71afbb3e1abe24bc405df5b665140589a91e748dd834b7ba98632e16e5dbbfdf57220eb737ece3b0b60579e417a80d8ded685d27ca20e18cd32c2ec5a5ec776e
7
- data.tar.gz: 204567aa5fed94200c212dc584708879b556c3c9d89208a21dead47d6dfef890629d6b3f4c8ab6fb03dcb2ffbe81f3292cc0aae0c997d216eb6194fee3aa2bdc
6
+ metadata.gz: 18cc950260a9780e3cedc068f68e3663ff9bba8fa4be7f50e93ea047a8930dc5fe22743f3b98a9f28f8ad717ed1ac4ac7edb3dc2c74588430d78e3480ec05b34
7
+ data.tar.gz: 4e9bdff3af78b80049811e4af5b4d16b63c17ab80630dc26a689c7cda9fb23615e0af0233a85aba4d2ce466e7d948b5425a9cee923191fd5fce60b25d88de62c
data/Gemfile CHANGED
@@ -30,7 +30,7 @@ gem 'rubocop-rake', '0.6.0'
30
30
  gem 'rubocop-rspec', '2.15.0'
31
31
  gem 'ruby-prof', '1.4.3'
32
32
  gem 'rvm', '1.11.3.9'
33
- gem 'sinatra', '3.0.3'
33
+ gem 'sinatra', '3.0.4'
34
34
  gem 'thin', '1.8.1'
35
35
  gem 'tty-prompt', '0.23.1'
36
36
  gem 'tty-spinner', '0.9.3'
@@ -35,18 +35,15 @@ module Cryptum
35
35
  when :green
36
36
  order_trend_color = :green
37
37
  trend_arrow = Cryptum.up_arrow
38
- trend = 'BULL'
39
38
  when :yellow
40
39
  order_trend_color = :yellow
41
40
  trend_arrow = Cryptum.flat_arrow
42
- trend = 'FLATLINE'
43
41
  when :red
44
42
  order_trend_color = :red
45
43
  trend_arrow = Cryptum.down_arrow
46
- trend = 'BEAR'
47
44
  end
48
45
 
49
- market_trend_out = "Market Trend #{trend_arrow} | #{trend} | #{order_trend_out}"
46
+ market_trend_out = "Market Trend #{trend_arrow} | #{order_trend_out}"
50
47
 
51
48
  # UI
52
49
  # col_just1 = 12
@@ -70,7 +70,7 @@ module Cryptum
70
70
  cast_margin_to_sec = margin_percent_open_24h * 0.1
71
71
 
72
72
  # Reset times to max or default depending on
73
- # bullish or bearish trend
73
+ # BULL or BEAR market trend
74
74
  if cast_margin_to_sec.positive?
75
75
  event_history.bullish_trend = true
76
76
  event_history.time_between_orders = event_history.time_between_orders_max
@@ -47,9 +47,16 @@ module Cryptum
47
47
  color = indicator_status.market_trend[:color] if indicator_status.market_trend
48
48
  case color
49
49
  when :green
50
- intent = "- Wait for Open Sell Orders -"
50
+ intent = "- Waiting for Open Sell Orders to Trigger -"
51
51
  else
52
- intent = "Next BUY: #{order_countdown} of #{time_between_order_exec_out}"
52
+ trend = 'BEAR'
53
+ speed = 'FAST'
54
+ if event_history.bullish_trend
55
+ trend = 'BULL'
56
+ speed = 'SLOW'
57
+ end
58
+
59
+ intent = "#{speed} #{trend} BUY: #{order_countdown} of #{time_between_order_exec_out}"
53
60
  intent = '- BUYING PAUSED -' if event_history.red_pill
54
61
  end
55
62
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cryptum
4
- VERSION = '0.0.252'
4
+ VERSION = '0.0.253'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cryptum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.252
4
+ version: 0.0.253
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-19 00:00:00.000000000 Z
11
+ date: 2022-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -282,14 +282,14 @@ dependencies:
282
282
  requirements:
283
283
  - - '='
284
284
  - !ruby/object:Gem::Version
285
- version: 3.0.3
285
+ version: 3.0.4
286
286
  type: :runtime
287
287
  prerelease: false
288
288
  version_requirements: !ruby/object:Gem::Requirement
289
289
  requirements:
290
290
  - - '='
291
291
  - !ruby/object:Gem::Version
292
- version: 3.0.3
292
+ version: 3.0.4
293
293
  - !ruby/object:Gem::Dependency
294
294
  name: thin
295
295
  requirement: !ruby/object:Gem::Requirement