cryptum 0.0.280 → 0.0.282
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: b68678cd4d82c2157cc18c4cfb329c25d9d35f059071ca6c413c0acdec2f11a7
|
4
|
+
data.tar.gz: 8eb8c32ae2681472f55dcd2bfe9e12882f6a664db9cd086cfc0e1a607eae4924
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce8af07a2325e557d1db1935dca48ef099572473856476a039d9c227ebb864465866438f10eb0c5ffc4767bee3158f8ebc7f4ff31f58134203209d7418f4e69a
|
7
|
+
data.tar.gz: da58caa07fa6949c9c0ff46c76fec5b982c214e10dad4159bf29ea60dfc32af06a85718261ec96655d57465ac9b0770b2ef8ecc0a16b582828018ef4aeb156c8
|
@@ -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