cryptum 0.0.366 → 0.0.367
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cryptum/bot_conf.rb +7 -4
- 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: a6798524e1b458d4d99353b126d43a5d64b9aa94e42829c8322f6c740bc5984c
|
4
|
+
data.tar.gz: 2609c6ec391ec5eb1e77b6c934c4e0a8b598cac9f0d0da3f1a37755085d9d121
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 709f134f6813a74357d37779a51224ed5fc7b2ad2af4626fec4bdadbd186c899aea6a73a4517e077865bae85070e620eb306e12d6967615773d59d58573dc39c
|
7
|
+
data.tar.gz: 93941d719671c62245157c6487a3031ebfd92da00ccc9047b79955d21b63f048365da674c0ba160876776e6d6f0941008b9741a6ceaf7ef10aa14f432c9f6744
|
data/lib/cryptum/bot_conf.rb
CHANGED
@@ -63,10 +63,9 @@ module Cryptum
|
|
63
63
|
# BE EXTREMELY CAREFUL CHANGING THIS VALUE AS IT DICTATES
|
64
64
|
# THE TARGET PRICE AND SUBSEQUENT TIME IT TAKES FOR AN OPEN
|
65
65
|
# SELL ORDER TO BE TRIGGERED!!! SHOULD NEVER BE > 1
|
66
|
-
default_net_tpm = 1.0
|
67
|
-
|
68
|
-
|
69
|
-
taker_rate = 0.6
|
66
|
+
# default_net_tpm = 1.0
|
67
|
+
maker_rate = 0.004
|
68
|
+
taker_rate = 0.006
|
70
69
|
|
71
70
|
gross_tpm = bot_conf[:target_profit_margin_percent].to_f
|
72
71
|
|
@@ -79,6 +78,9 @@ module Cryptum
|
|
79
78
|
taker_rate = fees[:taker_fee_rate].to_f unless fees.empty?
|
80
79
|
# taker_fee = format('%0.2f', taker_rate * 100)
|
81
80
|
|
81
|
+
# Absolute Bare Minimum TPM (Promotes Volume & Reduces Fees)
|
82
|
+
default_net_tpm = maker_rate + taker_rate + 0.001
|
83
|
+
|
82
84
|
# Set default_net_tpm if AI is true in bot_conf.
|
83
85
|
low_24h = event_history.order_book[:low_24h].to_f
|
84
86
|
high_24h = event_history.order_book[:high_24h].to_f
|
@@ -122,6 +124,7 @@ module Cryptum
|
|
122
124
|
ai_net_tpm = (((1 - (low_24h / high_24h)) * 100) / 24) * 0.017
|
123
125
|
end
|
124
126
|
|
127
|
+
conservative_tpm_hedge = 0.75
|
125
128
|
ai_net_tpm *= conservative_tpm_hedge
|
126
129
|
default_net_tpm = ai_net_tpm if ai_net_tpm > default_net_tpm
|
127
130
|
|
data/lib/cryptum/version.rb
CHANGED