cryptum 0.0.284 → 0.0.285
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cryptum/order_book/market_trend.rb +10 -8
- data/lib/cryptum/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11fd793af2271f3e611c3ec71809c89d3b55d8e5d8f4c848aa1a51bb92e50994
|
4
|
+
data.tar.gz: e9a583f65fc801fe5560a38d1c0bdb13aa3862d6acbf2c159a8ddb2272696d28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 970e1172f5a797644dc35eb91e36788e12c37921ff1c68217ef55da740564af51b825a34b01e350bf21640efbe886ab1e6f5615c83c601f4aaad29dfe9a59e79
|
7
|
+
data.tar.gz: 963a96eeba7c7116d7d909b5a556e8da1f1a411dd39f6530a5d55a4f2da52d6765dfd491217f7cbf4d8495f981e77be46b7cd3aaafc74924b40bf077018f5e1d
|
@@ -34,19 +34,21 @@ module Cryptum
|
|
34
34
|
# order_difference = 0
|
35
35
|
if buy_total > sell_total
|
36
36
|
order_difference = buy_total - sell_total
|
37
|
-
|
38
|
-
|
39
|
-
|
37
|
+
# Too Expensive
|
38
|
+
# order_difference_out = Cryptum.beautify_large_number(
|
39
|
+
# value: order_difference
|
40
|
+
# ).to_i
|
40
41
|
indicator_hash[:color] = :green
|
41
|
-
indicator_hash[:ui] = "BUYS UP BY #{
|
42
|
+
indicator_hash[:ui] = "BUYS UP BY #{order_difference.to_i}"
|
42
43
|
indicator_hash[:status] = "B#{Cryptum.up_arrow}"
|
43
44
|
elsif buy_total < sell_total
|
44
45
|
order_difference = sell_total - buy_total
|
45
|
-
|
46
|
-
|
47
|
-
|
46
|
+
# Too Expensive
|
47
|
+
# order_difference_out = Cryptum.beautify_large_number(
|
48
|
+
# value: order_difference
|
49
|
+
# ).to_i
|
48
50
|
indicator_hash[:color] = :red
|
49
|
-
indicator_hash[:ui] = "SELLS UP BY #{
|
51
|
+
indicator_hash[:ui] = "SELLS UP BY #{order_difference.to_i}"
|
50
52
|
indicator_hash[:status] = "S#{Cryptum.up_arrow}"
|
51
53
|
else
|
52
54
|
# This Condition is Met When candle_buy_tot == candle_sell_tot
|
data/lib/cryptum/version.rb
CHANGED