cryptum 0.0.289 → 0.0.291

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bc2d25f0480e6e6f7a89898fbab387d0d2d49438950786986f408f81cd391b01
4
- data.tar.gz: a8d430225eb2622270e138382663f3bbd121e8fbf7205b00d879a065b400c9cf
3
+ metadata.gz: de399b2c8ca142a086d12d91f497a7c77283f56719f1c02cdeb8b0f73655c97c
4
+ data.tar.gz: 6bbbc70fef48971cefa7e489b20be9c6f27342f641e5836d1bdc1fd5dc0492d0
5
5
  SHA512:
6
- metadata.gz: 1f6877d318b2da7ea95265801033214e99f77750a0edaf6aeef45f5139f1b2ff9d1b8ac5b13dc3750d94bf79de889ef766c58f53b0f5c6e411b49fc5c1e6eef0
7
- data.tar.gz: 87c6a32f74cef4839085cad4f0205dbf2118f770917192e9a3d817b0c325fa36b04cb4256eb5c3bc644b344978b1e45810eb0a1cfa2c3fe743659bc5b5ec32c3
6
+ metadata.gz: 4d627c18f7bb9ba293edb645a084233a1f11efabea06626ac86b5fb12fe7912f7eb96aac94f7c43f5449dd13f92f3b2ba2a14e5bc2871023339edbee653ed48d
7
+ data.tar.gz: 56c49b05af1efe358b0799be7b2802b14700d3a1be779d05afdba98bbf897ce208f9aa04f430d0414b1d5bb1454541aa2da50a4ef45c93213f83eb97097d1b68
@@ -98,16 +98,16 @@ module Cryptum
98
98
  # Only keep order history meta for those
99
99
  # hashes that exist in the last order history
100
100
  # response
101
- order_history_meta.keep_if do |ohm|
102
- order_history.find do |oh|
103
- (oh[:id] == ohm[:buy_order_id] || oh[:id] == ohm[:sell_order_id]) && (
104
- ohm[:color].to_sym == :white ||
105
- ohm[:color].to_sym == :green ||
106
- ohm[:color].to_sym == :yellow
107
- )
108
- end
109
- end
110
- event_history.order_book[:order_history_meta] = order_history_meta
101
+ # order_history_meta.keep_if do |ohm|
102
+ # order_history.find do |oh|
103
+ # (oh[:id] == ohm[:buy_order_id] || oh[:id] == ohm[:sell_order_id]) && (
104
+ # ohm[:color].to_sym == :white ||
105
+ # ohm[:color].to_sym == :green ||
106
+ # ohm[:color].to_sym == :yellow
107
+ # )
108
+ # end
109
+ # end
110
+ # event_history.order_book[:order_history_meta] = order_history_meta
111
111
 
112
112
  # Refactor TPM to be 0.01 > than fee tier,
113
113
  # particularly as fee tier goes up or down
@@ -420,7 +420,9 @@ module Cryptum
420
420
  event_history.order_execute_index_offset = first_row
421
421
  end
422
422
 
423
- if order_history_meta.any? && first_row && last_row
423
+ if order_history_meta.any? && first_row && last_row &&
424
+ order_history_meta.reverse[first_row..last_row]
425
+
424
426
  selected_order = event_history.order_execute_selected_data
425
427
  order_history_meta.reverse[first_row..last_row].each do |meta|
426
428
  out_line_no += 1
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cryptum
4
- VERSION = '0.0.289'
4
+ VERSION = '0.0.291'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cryptum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.289
4
+ version: 0.0.291
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.