cryptum 0.0.398 → 0.0.399
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 +4 -4
- data/lib/cryptum/api/orders.rb +1 -1
- data/lib/cryptum/log.rb +1 -1
- data/lib/cryptum/ui/order/execute.rb +0 -2
- data/lib/cryptum/ui/order/plan.rb +0 -1
- data/lib/cryptum/ui/order/timer.rb +0 -3
- data/lib/cryptum/ui/ticker.rb +0 -3
- data/lib/cryptum/ui.rb +4 -6
- 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: f571b7426e0de56f7674b3735c661cf48516c4b0b90079c68e0282e67a10c0e2
|
4
|
+
data.tar.gz: 6a2ae463a62d3f5422031af86133d71d55b046c9e5f1408c40fe7daaa31c2d71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9c95206532fc6b6cd7f8ff1f0f76433999e51bad199f040d837fb99313d16d36534cdd6cde3f4b55eaaa909caf0e0ddb0ac829a6ff03ebc00ce79ea6ad02df6
|
7
|
+
data.tar.gz: 6ed967babd35a1fe97703aadc70a0262c5c780f04d719ac44d299fc08abdaa27b705d522d8526e80d3b4e30343c72e5c5d9d7e2e2e38fa978da75d6b51cf25bf
|
data/lib/cryptum/api/orders.rb
CHANGED
@@ -159,7 +159,7 @@ module Cryptum
|
|
159
159
|
crypto_smallest_decimal = base_increment.to_s.split('.')[-1].length
|
160
160
|
fiat_smallest_decimal = quote_increment.to_s.split('.')[-1].length
|
161
161
|
|
162
|
-
#
|
162
|
+
# Calculate / Price / Size
|
163
163
|
last_three_prices_arr = []
|
164
164
|
last_ticker_price = event_history.order_book[:ticker_price].to_f
|
165
165
|
second_to_last_ticker_price = event_history.order_book[:ticker_price_second_to_last].to_f
|
data/lib/cryptum/log.rb
CHANGED
@@ -225,8 +225,6 @@ module Cryptum
|
|
225
225
|
|
226
226
|
meta[:done_at] = Time.now.strftime('%Y-%m-%d %H:%M:%S.%N%z')
|
227
227
|
|
228
|
-
# TODO: Retry sell order if the original sell order expires.
|
229
|
-
|
230
228
|
# Reinitiate GTFO if the previous GTFO Order Expires.
|
231
229
|
terminal_win.key_press_event.key_g = true if meta[:color] == :magenta
|
232
230
|
meta[:color] = :white
|
@@ -64,9 +64,6 @@ module Cryptum
|
|
64
64
|
color = indicator_status.market_trend[:color] if indicator_status.market_trend
|
65
65
|
case color
|
66
66
|
when :green
|
67
|
-
# TODO: add condition to check if open sell orders exist.
|
68
|
-
# If so intent should be something like, "- SEE ORDER HISTORY -"
|
69
|
-
# Otherwise, intent should be something like, "- WAIT FOR MARKET TREND SHIFT -"
|
70
67
|
intent = "- #{Cryptum.down_arrow} SEE ORDER HISTORY #{Cryptum.down_arrow} -"
|
71
68
|
else
|
72
69
|
speed = 'FAST'
|
data/lib/cryptum/ui/ticker.rb
CHANGED
data/lib/cryptum/ui.rb
CHANGED
@@ -249,12 +249,9 @@ module Cryptum
|
|
249
249
|
key_press = ui_win.get_char
|
250
250
|
|
251
251
|
# Useful for detecting and logging actual key presses to file
|
252
|
-
#
|
253
|
-
#
|
254
|
-
#
|
255
|
-
# f.print key_press.inspect
|
256
|
-
# f.puts "\n\n\n"
|
257
|
-
# end
|
252
|
+
# if key_press
|
253
|
+
# debug_keys = "#{key_press.class} => key_press.inspect\n\n\n"
|
254
|
+
# Cryptum::Log.append(level: :debug, msg: debug_keys, which_self: self)
|
258
255
|
# end
|
259
256
|
|
260
257
|
case key_press
|
@@ -278,6 +275,7 @@ module Cryptum
|
|
278
275
|
key_press_event.key_tab = true
|
279
276
|
end
|
280
277
|
|
278
|
+
# TODO: Fix this - sometimes this results in unintended behavior.
|
281
279
|
# What a hack to detect special keys (-.-)
|
282
280
|
if key_press_event.key_esc
|
283
281
|
key_press_event.key_ansi = true if key_press == '['
|
data/lib/cryptum/version.rb
CHANGED