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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2687c6be08b4b287a0f9ad8192708a0f862b526933614bcd440607fa667e6e06
4
- data.tar.gz: 00c9a699c865e8f91cdecafcc896e19a1481100c01e492c3bf53e15a22df9ee2
3
+ metadata.gz: 700e1a1a2785e98e2ba35546de12c8920716951d891439f37ddb67d44d11ac45
4
+ data.tar.gz: e0ba8ec4ce2dea089fe9e58aafc93258d02593029875636e20c0edee0f7a068d
5
5
  SHA512:
6
- metadata.gz: fd74b3c4bd968db4e24b1a3fae5802b86d356619909e0d32a45d9d246d38c81a1b91714b3691f3ff7a3d95e2d4fcd0b57bdb408bfb89030062e1c57379379b5c
7
- data.tar.gz: c2ec14727da1cfccc54afacb7760feb0062d640da5d7cc7e24189dcbad5c03c0e9aeacc339a619e53a192e236f43d98ddee672abc26349a20a2a630a48ae4a4d
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
- # 24 hours
67
- self.time_between_orders_max = self.time_between_orders_reset * 144
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 = "#{trend} - #{speed} BUY: #{order_countdown} of #{time_between_order_exec_out}"
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
 
@@ -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
- margin_percent_open_24h_out = "#{Cryptum.up_arrow} #{beautify_margin_percent_open_24h}%"
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
- margin_percent_open_24h_out = "#{Cryptum.down_arrow}#{beautify_margin_percent_open_24h}%"
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')
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cryptum
4
- VERSION = '0.0.256'
4
+ VERSION = '0.0.257'
5
5
  end
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.256
4
+ version: 0.0.257
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.