cryptum 0.0.336 → 0.0.338
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 -12
- data/lib/cryptum/version.rb +1 -1
- data/lib/cryptum/web_sock/coinbase.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: 4f08c4d732a1a59acb8704496ced174cc88cdb1b6b8dd2e1e007f0889af419dc
|
4
|
+
data.tar.gz: e738ac02a2244c1b1edb030bf983102ec0927e20c4c7c7b650fa4b6a475675a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed8eb018654c62215643b760a729b42180bfe7145615c78e189bea821ff73d472baf0caffe0181947c49d03c3eab7981fa975005ccdc6040cebd405e67b5238a
|
7
|
+
data.tar.gz: 50cc9e2f6c80c965f2db832a3567014e903de87d44bbdb98d633f500e96717b8e678ed2b99cb4de13d756be145252693856133f5470c780005e1771bdc009afc
|
data/lib/cryptum/ui/ticker.rb
CHANGED
@@ -32,18 +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
|
-
|
45
|
-
end
|
46
|
-
#
|
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
|
47
47
|
|
48
48
|
open_24h = event[:open_24h].to_f
|
49
49
|
order_book[:open_24h] = open_24h
|
data/lib/cryptum/version.rb
CHANGED