no need to "abs" cost will be fixed in ccxt

This commit is contained in:
Matthias
2022-03-26 16:32:20 +01:00
parent f509959bd4
commit d244391860
2 changed files with 2 additions and 2 deletions

View File

@@ -66,7 +66,7 @@ class Gateio(Exchange):
if pair_fees.get(takerOrMaker) is not None:
trades[idx]['fee'] = {
'currency': self.get_pair_quote_currency(pair),
'cost': abs(trade['cost']) * pair_fees[takerOrMaker],
'cost': trade['cost'] * pair_fees[takerOrMaker],
'rate': pair_fees[takerOrMaker],
}
return trades