def fetch_funding_fees(self, params={}):
    self.load_markets()
    response = self.privateGetFees(params)
    payload = self.safe_value(response, 'payload', {})
    depositFees = self.safe_value(payload, 'deposit_fees', [])
    deposit = {}
    for i in range(0, len(depositFees)):
        depositFee = depositFees[i]
        currencyId = self.safe_string(depositFee, 'currency')
        code = self.safe_currency_code(currencyId)
        deposit[code] = self.safe_number(depositFee, 'fee')
    withdraw = {}
    withdrawalFees = self.safe_value(payload, 'withdrawal_fees', [])
    currencyIds = list(withdrawalFees.keys())
    for i in range(0, len(currencyIds)):
        currencyId = currencyIds[i]
        code = self.safe_currency_code(currencyId)
        withdraw[code] = self.safe_number(withdrawalFees, currencyId)
    return {'info': response, 'deposit': deposit, 'withdraw': withdraw}
def fetch_funding_fees(self, params={}):
    self.load_markets()
    response = self.privateGetFees(params)
    payload = self.safe_value(response, 'payload', {})
    depositFees = self.safe_value(payload, 'deposit_fees', [])
    deposit = {}
    for i in range(0, len(depositFees)):
        depositFee = depositFees[i]
        currencyId = self.safe_string(depositFee, 'currency')
        code = self.safe_currency_code(currencyId)
        deposit[code] = self.safe_number(depositFee, 'fee')
    withdraw = {}
    withdrawalFees = self.safe_value(payload, 'withdrawal_fees', [])
    currencyIds = list(withdrawalFees.keys())
    for i in range(0, len(currencyIds)):
        currencyId = currencyIds[i]
        code = self.safe_currency_code(currencyId)
        withdraw[code] = self.safe_number(withdrawalFees, currencyId)
    return {'info': response, 'deposit': deposit, 'withdraw': withdraw}