use "fees" for trades responses

This commit is contained in:
Matthias
2022-07-07 19:40:16 +02:00
parent 81f7d77d74
commit 5b733a723d
2 changed files with 9 additions and 6 deletions

View File

@@ -1644,11 +1644,7 @@ class Exchange:
return fee.get('rate')
fee_curr = fee.get('currency')
if fee_curr is None:
# Auto-currency only in futures mode
if self.trading_mode == TradingMode.FUTURES:
fee_curr = self.get_pair_quote_currency(symbol)
else:
return None
return None
# Calculate fee based on order details
if fee_curr == self.get_pair_base_currency(symbol):
# Base currency - divide by amount