def load_fees(self):
    self.load_markets()
    self.populate_fees()
    if (not (self.has['fetchTradingFees'] or self.has['fetchFundingFees'])):
        return self.fees
    fetched_fees = self.fetch_fees()
    if fetched_fees['funding']:
        self.fees['funding']['fee_loaded'] = True
    if fetched_fees['trading']:
        self.fees['trading']['fee_loaded'] = True
    self.fees = self.deep_extend(self.fees, fetched_fees)
    return self.fees
def load_fees(self):
    self.load_markets()
    self.populate_fees()
    if (not (self.has['fetchTradingFees'] or self.has['fetchFundingFees'])):
        return self.fees
    fetched_fees = self.fetch_fees()
    if fetched_fees['funding']:
        self.fees['funding']['fee_loaded'] = True
    if fetched_fees['trading']:
        self.fees['trading']['fee_loaded'] = True
    self.fees = self.deep_extend(self.fees, fetched_fees)
    return self.fees