cryptum 0.0.441 → 0.0.443
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/generate.rb +1 -1
- data/lib/cryptum/order_book/market_trend.rb +1 -1
- data/lib/cryptum/ui/order/execute.rb +7 -7
- data/lib/cryptum/ui/order/timer.rb +1 -1
- data/lib/cryptum/ui/ticker.rb +1 -1
- data/lib/cryptum/version.rb +1 -1
- data/lib/cryptum/web_sock/event_machine.rb +3 -6
- 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: d8ca71a0ff95cdca55d57dfe60aa0b6f32e31afe6b5f719d40f2b125555c1e58
|
4
|
+
data.tar.gz: f3c23f42997506e9dd30a588318d00cb16b9ea2dc074600051785a82530ef7ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d7aa231eb05c0eae584823f37a5b107e0e69a010612e973d948407948a8edfd19117f5fd934f2f21470b4110209535aea87b358dd6e89e822b2f808a5f5f69f
|
7
|
+
data.tar.gz: 0e8949fa7b3a9a38986bb12d22642296d86ef167efe717916c38448178ca5bb6d0338a3937b40f508f6c0030b5e0fd524d5d20ea4ca1e5515eb63bf60eb498d6
|
@@ -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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
482
|
+
).strftime('%Y-%m-%d %H:%M:%S%z')
|
483
483
|
end
|
484
484
|
end
|
485
485
|
|
data/lib/cryptum/ui/ticker.rb
CHANGED
@@ -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
|
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}"
|
data/lib/cryptum/version.rb
CHANGED
@@ -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
|
-
|
220
|
-
|
221
|
-
|
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
|