lib/cryptum/bot_conf.rb in cryptum-0.0.366 vs lib/cryptum/bot_conf.rb in cryptum-0.0.367
- old
+ new
@@ -61,14 +61,13 @@
bot_conf = opts[:bot_conf]
# BE EXTREMELY CAREFUL CHANGING THIS VALUE AS IT DICTATES
# THE TARGET PRICE AND SUBSEQUENT TIME IT TAKES FOR AN OPEN
# SELL ORDER TO BE TRIGGERED!!! SHOULD NEVER BE > 1
- default_net_tpm = 1.0
- conservative_tpm_hedge = 0.75
- maker_rate = 0.4
- taker_rate = 0.6
+ # default_net_tpm = 1.0
+ maker_rate = 0.004
+ taker_rate = 0.006
gross_tpm = bot_conf[:target_profit_margin_percent].to_f
# Refactor TPM to be 1.0 > than fee tier,
# particularly as fee tier goes up or down
@@ -77,10 +76,13 @@
# maker_fee = format('%0.2f', maker_rate * 100)
taker_rate = fees[:taker_fee_rate].to_f unless fees.empty?
# taker_fee = format('%0.2f', taker_rate * 100)
+ # Absolute Bare Minimum TPM (Promotes Volume & Reduces Fees)
+ default_net_tpm = maker_rate + taker_rate + 0.001
+
# Set default_net_tpm if AI is true in bot_conf.
low_24h = event_history.order_book[:low_24h].to_f
high_24h = event_history.order_book[:high_24h].to_f
case option_choice.market_trend_reset
@@ -120,9 +122,10 @@
when 60
# 1m Chart
ai_net_tpm = (((1 - (low_24h / high_24h)) * 100) / 24) * 0.017
end
+ conservative_tpm_hedge = 0.75
ai_net_tpm *= conservative_tpm_hedge
default_net_tpm = ai_net_tpm if ai_net_tpm > default_net_tpm
min_gross_tpm = format(
'%0.2f',