cryptum 0.0.284 → 0.0.286
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/ui/order_timer.rb +1 -1
- data/lib/cryptum/ui/ticker.rb +1 -1
- data/lib/cryptum/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6803b2f1648237eeb6d2fdf0277e397e4c4224370185ba089ca51aeba5a0fb2
|
4
|
+
data.tar.gz: 5301e4fe263731a469adb3a315c28da88efa4703eddac7a2a9ccceb8ef3c466d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 208a2da8cb0fb3f1f11c33c17e6a17c13f24337cb0053ce41b550ad5ec8ac8c090b5e6f819f5f44652b00ab3d137c87381bd08796e8faca75fefcd3b4bee891d
|
7
|
+
data.tar.gz: aa4f27d4a756f925502aa9f329eb4b7d1d6c36f5756494b8b9f23df9e306b2a648bc68d8ce73bbf90ad869c9b85d9179977ee62783e5b9464245e8c703a7a620
|
@@ -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/ui/ticker.rb
CHANGED
@@ -18,7 +18,7 @@ module Cryptum
|
|
18
18
|
quote_increment = this_product[:quote_increment]
|
19
19
|
fiat_smallest_decimal = quote_increment.to_s.split('.')[-1].length
|
20
20
|
|
21
|
-
symbol_out = "#{this_product[:id]}
|
21
|
+
symbol_out = "#{this_product[:id]}.D"
|
22
22
|
fiat = this_product[:quote_currency].to_sym
|
23
23
|
fiat_symbol = '?'
|
24
24
|
fiat_symbol = '$' if fiat == :USD
|
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.286
|
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-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|