cryptum 0.0.326 → 0.0.327
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 +6 -3
- data/lib/cryptum/version.rb +1 -1
- data/lib/cryptum/web_sock/event_machine.rb +2 -2
- 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: a71bdfaffa2d0d506321a5eb061b6e813b1191b8dd27b9a9e4acf874b9d296e9
|
4
|
+
data.tar.gz: cb2165ea3267e05058a242187b049ea3b68ed3bfb013688b2f044ea4683b93fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a67eec57d1eb1725424b01b34d4f2d6edee802a8d101e99c0cddece8f9c485472294b8c0b0464d492218db7c22d34f00b59f60ca4a451833d38c7b09f7a1b24
|
7
|
+
data.tar.gz: c606e40f2643f2fe06d2a887c0b3a0471d791b12841ec2815ed2a7ade3b4a0d8ddb46b44fa6f79e4673e0bc4c5649f7690e17b787fd4b0c499f8ac00821addfe
|
data/lib/cryptum/ui/ticker.rb
CHANGED
@@ -7,13 +7,12 @@ module Cryptum
|
|
7
7
|
module UI
|
8
8
|
module Ticker
|
9
9
|
public_class_method def self.refresh(opts = {})
|
10
|
-
# option_choice = opts[:option_choice]
|
11
10
|
start_time = opts[:start_time]
|
12
11
|
ticker_win = opts[:ticker_win]
|
13
|
-
|
14
|
-
order_book = opts[:order_book]
|
12
|
+
event_history = opts[:event_history]
|
15
13
|
event = opts[:event]
|
16
14
|
|
15
|
+
order_book = event_history.order_book
|
17
16
|
this_product = order_book[:this_product]
|
18
17
|
quote_increment = this_product[:quote_increment]
|
19
18
|
fiat_smallest_decimal = quote_increment.to_s.split('.')[-1].length
|
@@ -139,6 +138,8 @@ module Cryptum
|
|
139
138
|
highest_selling_price
|
140
139
|
)
|
141
140
|
)
|
141
|
+
|
142
|
+
event_history.order_book = order_book
|
142
143
|
# TODO: Everything Above this Line Needs to be Indicators ^
|
143
144
|
|
144
145
|
# UI
|
@@ -283,6 +284,8 @@ module Cryptum
|
|
283
284
|
)
|
284
285
|
|
285
286
|
ticker_win.refresh
|
287
|
+
|
288
|
+
event_history
|
286
289
|
rescue Interrupt
|
287
290
|
# Exit Gracefully if CTRL+C is Pressed During Session
|
288
291
|
Cryptum.exit_gracefully(which_self: self)
|
data/lib/cryptum/version.rb
CHANGED
@@ -97,12 +97,12 @@ module Cryptum
|
|
97
97
|
|
98
98
|
ticker_event = event_history.ticker_event = event_history.event if event_history.event_type == :ticker
|
99
99
|
ticker_event = event_history.ticker_event if terminal_win.ticker_ui_resize
|
100
|
-
Cryptum::UI::Ticker.refresh(
|
100
|
+
event_history = Cryptum::UI::Ticker.refresh(
|
101
101
|
option_choice: option_choice,
|
102
102
|
start_time: event_history.start_time,
|
103
103
|
ticker_win: terminal_win.ticker_section,
|
104
104
|
key_press_event: terminal_win.key_press_event,
|
105
|
-
|
105
|
+
event_history: event_history,
|
106
106
|
event: ticker_event
|
107
107
|
)
|
108
108
|
end
|