lib/cryptum/bot_conf.rb in cryptum-0.0.364 vs lib/cryptum/bot_conf.rb in cryptum-0.0.365

- old
+ new

@@ -120,13 +120,14 @@ # 1m Chart ai_net_tpm = (((1 - (low_24h / high_24h)) * 100) / 24) * 0.017 end default_net_tpm = ai_net_tpm if ai_net_tpm > default_net_tpm + conservative_tpm_hedge = 0.75 min_gross_tpm = format( '%0.2f', - (maker_rate.to_f + taker_rate.to_f) + default_net_tpm + (maker_rate.to_f + taker_rate.to_f) + (default_net_tpm * conservative_tpm_hedge) ) if min_gross_tpm != gross_tpm.to_s bot_conf[:target_profit_margin_percent] = min_gross_tpm.to_f Cryptum::BotConf.update(