cryptum 0.0.441 → 0.0.443

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 34fc0b9e8e0e95188dfc4613ad76834eb6623ed189f86745ee55faa249bca821
4
- data.tar.gz: 86e7f3fd197417a1405da04df7b3eb467ec376fbba569d53a2c8083e3c37e523
3
+ metadata.gz: d8ca71a0ff95cdca55d57dfe60aa0b6f32e31afe6b5f719d40f2b125555c1e58
4
+ data.tar.gz: f3c23f42997506e9dd30a588318d00cb16b9ea2dc074600051785a82530ef7ec
5
5
  SHA512:
6
- metadata.gz: f9cd561f1deab520e0b56b9dc21dd56270a4a37f3bfad8b67e4609d723526df793c5cfaa4fd6fec19af70431ece35b086d30e145f52f4dc861f45cdc940fbadd
7
- data.tar.gz: b70b78138bf29f7ccf2b782be4c796bc96c169a0ab0bb45e73691b3fc6dba5ff19416a4f0acfe4a0a3909f1b04b199338630f9a4831f2d932e77904ccc342ff1
6
+ metadata.gz: 7d7aa231eb05c0eae584823f37a5b107e0e69a010612e973d948407948a8edfd19117f5fd934f2f21470b4110209535aea87b358dd6e89e822b2f808a5f5f69f
7
+ data.tar.gz: 0e8949fa7b3a9a38986bb12d22642296d86ef167efe717916c38448178ca5bb6d0338a3937b40f508f6c0030b5e0fd524d5d20ea4ca1e5515eb63bf60eb498d6
@@ -29,7 +29,7 @@ module Cryptum
29
29
  end
30
30
  this_product = this_product_arr.last
31
31
 
32
- ftimestr = '%Y-%m-%d %H:%M:%S.%N%z'
32
+ ftimestr = '%Y-%m-%d %H:%M:%S%z'
33
33
 
34
34
  order_book = {
35
35
  path: order_book_file,
@@ -81,7 +81,7 @@ module Cryptum
81
81
  event_history.order_book[:market_trend][:buy] = 0
82
82
  event_history.order_book[:market_trend][:sell] = 0
83
83
  event_history.order_book[:last_trend_reset] = Time.now.strftime(
84
- '%Y-%m-%d %H:%M:%S.%N%z'
84
+ '%Y-%m-%d %H:%M:%S%z'
85
85
  )
86
86
 
87
87
  event_history
@@ -65,7 +65,7 @@ module Cryptum
65
65
  if event_history.order_book[:order_plan].length.positive?
66
66
  if event_history.order_ready
67
67
  event_history.order_book[:last_order_exec] = Time.now.strftime(
68
- '%Y-%m-%d %H:%M:%S.%N%z'
68
+ '%Y-%m-%d %H:%M:%S%z'
69
69
  )
70
70
  end
71
71
 
@@ -183,7 +183,7 @@ module Cryptum
183
183
  order_history_meta.each do |meta|
184
184
  next unless meta[:buy_order_id] == buy_order_id
185
185
 
186
- meta[:done_at] = Time.now.strftime('%Y-%m-%d %H:%M:%S.%N%z')
186
+ meta[:done_at] = Time.now.strftime('%Y-%m-%d %H:%M:%S%z')
187
187
  meta[:color] = :white
188
188
  end
189
189
  end
@@ -231,7 +231,7 @@ module Cryptum
231
231
  order_history_meta.each do |meta|
232
232
  next unless meta[:sell_order_id] == sell_order_id
233
233
 
234
- meta[:done_at] = Time.now.strftime('%Y-%m-%d %H:%M:%S.%N%z')
234
+ meta[:done_at] = Time.now.strftime('%Y-%m-%d %H:%M:%S%z')
235
235
 
236
236
  # Reinitiate GTFO if the previous GTFO Order Expires.
237
237
  terminal_win.key_press_event.key_g = true if meta[:color] == :magenta
@@ -267,7 +267,7 @@ module Cryptum
267
267
  learning_arr.push(learning)
268
268
  end
269
269
 
270
- meta[:done_at] = Time.now.strftime('%Y-%m-%d %H:%M:%S.%N%z')
270
+ meta[:done_at] = Time.now.strftime('%Y-%m-%d %H:%M:%S%z')
271
271
  meta[:color] = :green
272
272
 
273
273
  # Obtain buy && sell order details from order history
@@ -463,13 +463,13 @@ module Cryptum
463
463
  unless buy_created_at_hash_arr.empty?
464
464
  order_exec_last_ln = Time.parse(
465
465
  buy_created_at_hash_arr.first[:created_at]
466
- ).strftime('%Y-%m-%d %H:%M:%S.%N%z')
466
+ ).strftime('%Y-%m-%d %H:%M:%S%z')
467
467
  end
468
468
  when :green, :white
469
469
  if meta[:done_at]
470
470
  order_exec_last_ln = Time.parse(
471
471
  meta[:done_at]
472
- ).strftime('%Y-%m-%d %H:%M:%S.%N%z')
472
+ ).strftime('%Y-%m-%d %H:%M:%S%z')
473
473
  end
474
474
  when :magenta, :yellow
475
475
  sell_created_at_hash_arr = order_history.select do |oh|
@@ -479,7 +479,7 @@ module Cryptum
479
479
  unless sell_created_at_hash_arr.empty?
480
480
  order_exec_last_ln = Time.parse(
481
481
  sell_created_at_hash_arr.first[:created_at]
482
- ).strftime('%Y-%m-%d %H:%M:%S.%N%z')
482
+ ).strftime('%Y-%m-%d %H:%M:%S%z')
483
483
  end
484
484
  end
485
485
 
@@ -74,7 +74,7 @@ module Cryptum
74
74
  end
75
75
 
76
76
  # Have a Clock
77
- clock = Time.now.strftime('%Y-%m-%d %H:%M:%S.%N%z')
77
+ clock = Time.now.strftime('%Y-%m-%d %H:%M:%S%z')
78
78
 
79
79
  # UI
80
80
  col_just4 = (Curses.cols - Cryptum::UI.col_fourth) - 1
@@ -36,7 +36,7 @@ module Cryptum
36
36
  # if last_sequence + 1 < sequence
37
37
  # sequence_diff = sequence - last_sequence
38
38
  # File.open('/tmp/cryptum-errors.txt', 'a') do |f|
39
- # f.puts Time.now.strftime('%Y-%m-%d %H:%M:%S.%N%z')
39
+ # f.puts Time.now.strftime('%Y-%m-%d %H:%M:%S%z')
40
40
  # f.puts "Module: #{self}"
41
41
  # f.puts 'Messages likely dropped:'
42
42
  # f.puts "This Sequence: #{sequence}"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cryptum
4
- VERSION = '0.0.441'
4
+ VERSION = '0.0.443'
5
5
  end
@@ -216,12 +216,9 @@ module Cryptum
216
216
  EM.add_periodic_timer(option_choice.market_trend_reset) do
217
217
  # NOTE: To ensure the integrity of event_history is maintained,
218
218
  # changes to its contents _MUST_ stay in this block.
219
- # event_history.order_book[:market_trend][:buy] = 0
220
- # event_history.order_book[:market_trend][:sell] = 0
221
- # event_history.order_book[:last_trend_reset] = Time.now.strftime(
222
- # '%Y-%m-%d %H:%M:%S.%N%z'
223
- # )
224
- event_history = Cryptum::OrderBook::MarketTrend.reset(event_history: event_history)
219
+ event_history = Cryptum::OrderBook::MarketTrend.reset(
220
+ event_history: event_history
221
+ )
225
222
 
226
223
  # Reload Bot Conf (i.e. Risk Allocation)
227
224
  # Recalculate Order Plan, and Write to File
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.441
4
+ version: 0.0.443
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.