Fix wrong fee calclulation for gateio futures

This commit is contained in:
Matthias
2022-07-09 08:24:29 +02:00
parent 5b733a723d
commit b7167ec880
6 changed files with 15 additions and 6 deletions

View File

@@ -821,7 +821,7 @@ class LocalTrade():
self.open_rate = total_stake / total_amount
self.stake_amount = total_stake / (self.leverage or 1.0)
self.amount = total_amount
self.fee_open_cost = self.fee_open * self.stake_amount
self.fee_open_cost = self.fee_open * total_stake
self.recalc_open_trade_value()
if self.stop_loss_pct is not None and self.open_rate is not None:
self.adjust_stop_loss(self.open_rate, self.stop_loss_pct)