cryptum 0.0.280 → 0.0.281
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/market_trend.rb +3 -2
- 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: 99b8305a25439dced16901f0569fa4dd9a2cac394be0757f01796cb461ff3c63
|
4
|
+
data.tar.gz: 489296de373d30ff837f4a67ef1059a13f1b2646482f55db44a365dfb7c82145
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f37bb82b77e23f4341898a5dc4c629ad1517b281bcdb56ccd8eb4c34230de0fc5ec786054142ed8280c7782239c780ed0693fae3a88196b78c4605c9937c347d
|
7
|
+
data.tar.gz: 24a53cf5141f675308efca558149fbdbaea99587de3ae701ab063cfff5c21f16e4ccd9d10928e592c8e337fc033de2d08f78d12d14d507c0809f7a37d8b537dd
|
@@ -70,12 +70,13 @@ module Cryptum
|
|
70
70
|
|
71
71
|
ai_enabled = bot_conf[:artifical_intelligence]
|
72
72
|
gross_tpm = bot_conf[:target_profit_margin_percent].to_f
|
73
|
+
order_history = event_history.order_book[:order_history]
|
74
|
+
order_history_meta = event_history.order_book[:order_history_meta]
|
73
75
|
|
76
|
+
# VERY EXPENSIVE
|
74
77
|
# Only retain past 24 hours of
|
75
78
|
# order history meta for bought, sold, and expired
|
76
79
|
# keep open limit sell orders indefintely
|
77
|
-
# order_history = event_history.order_book[:order_history]
|
78
|
-
# order_history_meta = event_history.order_book[:order_history_meta]
|
79
80
|
# before_twenty_four_hrs_ago = Time.now - 86_400
|
80
81
|
# order_history_meta.delete_if do |ohm|
|
81
82
|
# order_history.find do |oh|
|
data/lib/cryptum/version.rb
CHANGED