cryptum 0.0.335 → 0.0.337
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cryptum/ui/ticker.rb +12 -10
- 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: 6d86af031cf614f71034926e2aea5594c49b13e92462374b83ddd518f497de08
|
4
|
+
data.tar.gz: 6d19a03dfa5b4b511bef4c1da5d5e40425476076bd432c7eea5c9a7aad135a31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abe91003ae0a0df272bc537d198d3d693a25da5d0e0e5f1a73671c5383fc00e67d982e31d7364b903c65f1e567818797fcdee1782d071bd318973d1259c03c7a
|
7
|
+
data.tar.gz: 224777359bb5cdea4b3001539414230a9a61a9277c744e803a5da5b854332dd352db58a7a79339bf74e54ff0ff5eb9493ec05fe2a8270f27694646ad2d67cd18
|
data/lib/cryptum/ui/ticker.rb
CHANGED
@@ -32,16 +32,18 @@ module Cryptum
|
|
32
32
|
|
33
33
|
return unless sequence >= last_sequence
|
34
34
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
#
|
35
|
+
# Useful for detecting dropped messages but it's usually a lot.
|
36
|
+
# if last_sequence + 1 < sequence
|
37
|
+
# sequence_diff = sequence - last_sequence
|
38
|
+
# File.open('/tmp/cryptum-errors.txt', 'a') do |f|
|
39
|
+
# f.puts Time.now.strftime('%Y-%m-%d %H:%M:%S.%N %z')
|
40
|
+
# f.puts "Module: #{self}"
|
41
|
+
# f.puts 'Messages likely dropped:'
|
42
|
+
# f.puts "This Sequence: #{sequence}"
|
43
|
+
# f.puts "Last Sequence: #{last_sequence}"
|
44
|
+
# f.puts "Sequence Diff: #{sequence_diff}\n\n\n"
|
45
|
+
# end
|
46
|
+
# end
|
45
47
|
|
46
48
|
open_24h = event[:open_24h].to_f
|
47
49
|
order_book[:open_24h] = open_24h
|
data/lib/cryptum/version.rb
CHANGED