cryptum 0.0.367 → 0.0.368
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 +4 -10
- 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: e6b1a1f3adfd5488b1f51f2d288255b663cfd9bf6c516e77cec6e2d49c77da69
|
4
|
+
data.tar.gz: 14df82d2294151953337624cbce1bfffa6ad0af7ebc120625013d5c6c323713d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12ad2d6e7401156dd5b02c9c928ea743ca608249c9dc631bda47910a786c9864abbbdeba762ad693865b50f16a3c316fc41902af3105147822d9906d2822cdac
|
7
|
+
data.tar.gz: 19173b3f98cbe0a063248aa0a7a3f8906dd85893e3fde9372e6529f53de5dc4ffe6ad89fc5c1aa1a9576a89c7c8ffb3e12f8667656f031c05bbde4c79cb4b997
|
data/lib/cryptum/bot_conf.rb
CHANGED
@@ -63,23 +63,17 @@ 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
|
-
maker_rate = 0.004
|
68
|
-
taker_rate = 0.006
|
69
|
-
|
70
66
|
gross_tpm = bot_conf[:target_profit_margin_percent].to_f
|
71
67
|
|
72
|
-
# Refactor TPM to be 1.0 > than fee tier,
|
73
|
-
# particularly as fee tier goes up or down
|
74
68
|
fees = event_history.order_book[:fees]
|
69
|
+
maker_rate = 0.004
|
75
70
|
maker_rate = fees[:maker_fee_rate].to_f unless fees.empty?
|
76
|
-
# maker_fee = format('%0.2f', maker_rate * 100)
|
77
71
|
|
72
|
+
taker_rate = 0.006
|
78
73
|
taker_rate = fees[:taker_fee_rate].to_f unless fees.empty?
|
79
|
-
# taker_fee = format('%0.2f', taker_rate * 100)
|
80
74
|
|
81
75
|
# Absolute Bare Minimum TPM (Promotes Volume & Reduces Fees)
|
82
|
-
default_net_tpm =
|
76
|
+
default_net_tpm = 1.0 + (maker_rate + taker_rate)
|
83
77
|
|
84
78
|
# Set default_net_tpm if AI is true in bot_conf.
|
85
79
|
low_24h = event_history.order_book[:low_24h].to_f
|
@@ -130,7 +124,7 @@ module Cryptum
|
|
130
124
|
|
131
125
|
min_gross_tpm = format(
|
132
126
|
'%0.2f',
|
133
|
-
|
127
|
+
default_net_tpm
|
134
128
|
)
|
135
129
|
|
136
130
|
if min_gross_tpm != gross_tpm.to_s
|
data/lib/cryptum/version.rb
CHANGED