cryptum 0.0.347 → 0.0.348
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/lib/cryptum/order_book/market_trend.rb +10 -4
- data/lib/cryptum/ui/order_execution.rb +7 -3
- data/lib/cryptum/ui/order_timer.rb +4 -1
- data/lib/cryptum/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e20c133e6192e9a3487b1e97fc71e0f60cd8283a4a72c77732674ce656e17cb
|
4
|
+
data.tar.gz: e7f5e45d5285d747ab0eab424e8e0ff46e5426aab1a1cf8f9cec6e9ad38dc86e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ddc551db8524154280752316efeac984db43989c649b07e354f109b9741d9101a1e97bece06bf14669bda4695c17c371d90788e69b9ec659635c94c806f49077
|
7
|
+
data.tar.gz: c4fcac1f3cc3a536cfb6fb3b8991aad8e3ae4c8fad6dee14a4ecb0bf5013795c6857a9ac8f82ed7f1a7ed88a4e13bc3b4ba5c7aaca4692cd485d6ec6266f965a
|
data/Gemfile
CHANGED
@@ -46,8 +46,11 @@ module Cryptum
|
|
46
46
|
# value: order_difference
|
47
47
|
# ).to_i
|
48
48
|
motivation = 'BTD'
|
49
|
-
|
50
|
-
|
49
|
+
indicator_hash[:color] = :red
|
50
|
+
if event_history.bullish_trend
|
51
|
+
motivation = 'FOMO' if event_history.bullish_trend
|
52
|
+
indicator_hash[:color] = :green
|
53
|
+
end
|
51
54
|
indicator_hash[:ui] = "#{motivation} | BUYS UP BY #{order_difference.to_i}"
|
52
55
|
indicator_hash[:status] = "B#{Cryptum.up_arrow}"
|
53
56
|
elsif buy_total < sell_total
|
@@ -56,9 +59,12 @@ module Cryptum
|
|
56
59
|
# order_difference_out = Cryptum.beautify_large_number(
|
57
60
|
# value: order_difference
|
58
61
|
# ).to_i
|
59
|
-
motivation = '
|
60
|
-
motivation = 'TPROF' if event_history.bullish_trend
|
62
|
+
motivation = 'REKT'
|
61
63
|
indicator_hash[:color] = :red
|
64
|
+
if event_history.bullish_trend
|
65
|
+
motivation = 'TPROF' if event_history.bullish_trend
|
66
|
+
indicator_hash[:color] = :green
|
67
|
+
end
|
62
68
|
indicator_hash[:ui] = "#{motivation} | SELLS UP BY #{order_difference.to_i}"
|
63
69
|
indicator_hash[:status] = "S#{Cryptum.up_arrow}"
|
64
70
|
else
|
@@ -57,6 +57,9 @@ module Cryptum
|
|
57
57
|
event_history.bullish_trend = true if cast_margin_to_sec.positive?
|
58
58
|
event_history.bullish_trend = false if cast_margin_to_sec.negative?
|
59
59
|
|
60
|
+
buy_total = event_history.order_book[:market_trend][:buy].to_i
|
61
|
+
sell_total = event_history.order_book[:market_trend][:sell].to_i
|
62
|
+
|
60
63
|
if event_history.order_book[:order_plan].length.positive?
|
61
64
|
if event_history.order_ready
|
62
65
|
event_history.order_book[:last_order_exec] = Time.now.strftime(
|
@@ -67,10 +70,11 @@ module Cryptum
|
|
67
70
|
# BUY
|
68
71
|
# Reset times to max or default depending on
|
69
72
|
# BULL or BEAR market trend
|
70
|
-
event_history.time_between_orders = event_history.time_between_orders_max if
|
73
|
+
event_history.time_between_orders = event_history.time_between_orders_max if buy_total >= sell_total &&
|
74
|
+
!event_history.bullish_trend
|
71
75
|
|
72
|
-
event_history.time_between_orders = event_history.time_between_orders_reset if
|
73
|
-
event_history.bullish_trend
|
76
|
+
event_history.time_between_orders = event_history.time_between_orders_reset if sell_total > buy_total &&
|
77
|
+
!event_history.bullish_trend
|
74
78
|
|
75
79
|
if event_history.order_ready &&
|
76
80
|
indicator_status.action_signal == :buy &&
|
@@ -40,6 +40,9 @@ module Cryptum
|
|
40
40
|
value: format('%0.2f', order_exec_time_remaining)
|
41
41
|
)
|
42
42
|
|
43
|
+
buy_total = event_history.order_book[:market_trend][:buy].to_i
|
44
|
+
sell_total = event_history.order_book[:market_trend][:sell].to_i
|
45
|
+
|
43
46
|
color = :white
|
44
47
|
color = indicator_status.market_trend[:color] if indicator_status.market_trend
|
45
48
|
case color
|
@@ -50,7 +53,7 @@ module Cryptum
|
|
50
53
|
intent = "- SEE ORDER HISTORY #{Cryptum.down_arrow} -"
|
51
54
|
else
|
52
55
|
speed = 'FAST'
|
53
|
-
speed = 'SLOW' if
|
56
|
+
speed = 'SLOW' if buy_total >= sell_total
|
54
57
|
|
55
58
|
intent = "- #{speed} BUY: #{order_countdown} of #{time_between_order_exec_out} -"
|
56
59
|
intent = '- BUYING PAUSED -' if event_history.red_pill
|
data/lib/cryptum/version.rb
CHANGED
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.
|
4
|
+
version: 0.0.348
|
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-12-
|
11
|
+
date: 2022-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -268,14 +268,14 @@ dependencies:
|
|
268
268
|
requirements:
|
269
269
|
- - '='
|
270
270
|
- !ruby/object:Gem::Version
|
271
|
-
version: 1.4.
|
271
|
+
version: 1.4.4
|
272
272
|
type: :runtime
|
273
273
|
prerelease: false
|
274
274
|
version_requirements: !ruby/object:Gem::Requirement
|
275
275
|
requirements:
|
276
276
|
- - '='
|
277
277
|
- !ruby/object:Gem::Version
|
278
|
-
version: 1.4.
|
278
|
+
version: 1.4.4
|
279
279
|
- !ruby/object:Gem::Dependency
|
280
280
|
name: rvm
|
281
281
|
requirement: !ruby/object:Gem::Requirement
|