def fetch_fees(self):
    trading = {}
    funding = {}
    if self.has['fetchTradingFees']:
        trading = self.fetch_trading_fees()
    if self.has['fetchFundingFees']:
        funding = self.fetch_funding_fees()
    return {'trading': trading, 'funding': funding}
def fetch_fees(self):
    trading = {}
    funding = {}
    if self.has['fetchTradingFees']:
        trading = self.fetch_trading_fees()
    if self.has['fetchFundingFees']:
        funding = self.fetch_funding_fees()
    return {'trading': trading, 'funding': funding}