Update trading_fee naming
This commit is contained in:
@@ -93,6 +93,7 @@ class Exchange:
|
||||
self._api: ccxt.Exchange = None
|
||||
self._api_async: ccxt_async.Exchange = None
|
||||
self._markets: Dict = {}
|
||||
self._trading_fees: Dict[str, Any] = {}
|
||||
self._leverage_tiers: Dict[str, List[Dict]] = {}
|
||||
self.loop = asyncio.new_event_loop()
|
||||
asyncio.set_event_loop(self.loop)
|
||||
@@ -453,7 +454,7 @@ class Exchange:
|
||||
self._load_async_markets()
|
||||
self._last_markets_refresh = arrow.utcnow().int_timestamp
|
||||
if self._ft_has['needs_trading_fees']:
|
||||
self.trading_fees = self.fetch_trading_fees()
|
||||
self._trading_fees = self.fetch_trading_fees()
|
||||
|
||||
except ccxt.BaseError:
|
||||
logger.exception('Unable to initialize markets.')
|
||||
|
@@ -57,7 +57,7 @@ class Gateio(Exchange):
|
||||
# An alternative also contianing fees would be
|
||||
# privateFuturesGetSettleAccountBook({"settle": "usdt"})
|
||||
|
||||
pair_fees = self.trading_fees.get(pair, {})
|
||||
pair_fees = self._trading_fees.get(pair, {})
|
||||
if pair_fees and pair_fees['taker'] is not None:
|
||||
order['fee'] = {
|
||||
'currency': self.get_pair_quote_currency(pair),
|
||||
|
Reference in New Issue
Block a user