cryptum 0.0.251 → 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: 63704cd9e9c0e493e0436429debe08d93220075f2c37ff6bbdfc78d74e3aaf59
4
- data.tar.gz: 49e8aadb0b764eb53f6294b4b056c8aceeb95fd3b8e52737bf3c7c20c9677e5e
3
+ metadata.gz: de7aa17b3fb681ba04be33a6deb553a69288bda764c5dd986629885e01a2b844
4
+ data.tar.gz: 4cd2964dea4a496037635def94cccce1592ba2fa6d1f6b9245cbb2ffa324619d
5
5
  SHA512:
6
- metadata.gz: 047f1d30ab87233edd6c1d3300ef226d3f6b0b365e510bb1bcf1eccc6b96de87f9015c6d88d490b2ed0e228a4847b56cbdf7d0d99a76f6f5785f802c76f2d5a9
7
- data.tar.gz: 851aab581bf70ddb957aadf3e2dc54c7422a825952a159af65521b2c25a0a890fd7f47c13aaecc34cb900b646ffbfb9336b90d45a6e8adbbeac52772d16e8b0b
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'
@@ -43,12 +43,12 @@ module Cryptum
43
43
  self.red_pill = false
44
44
  self.reset_market_trend = false
45
45
 
46
- # 1 hour
47
- self.time_between_orders = 3_600
46
+ # 10 minutes
47
+ self.time_between_orders = 600
48
48
  self.time_between_orders_reset = self.time_between_orders
49
49
 
50
50
  # 24 hours
51
- self.time_between_orders_max = self.time_between_orders_reset * 24
51
+ self.time_between_orders_max = self.time_between_orders_reset * 144
52
52
 
53
53
  # 5 seconds
54
54
  self.time_between_orders_min = 5
@@ -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.251'
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.251
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-18 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