def fetch_deposits(self, code=None, since=None, limit=None, params={}):
    self.load_markets()
    request = {}
    method = 'accountGetDepositHistory'
    currency = None
    if (code is not None):
        currency = self.currency(code)
        request['currency'] = currency['id']
        method += 'Currency'
    response = getattr(self, method)(self.extend(request, params))
    return self.parse_transactions(response, currency, since, limit, params)
def fetch_deposits(self, code=None, since=None, limit=None, params={}):
    self.load_markets()
    request = {}
    method = 'accountGetDepositHistory'
    currency = None
    if (code is not None):
        currency = self.currency(code)
        request['currency'] = currency['id']
        method += 'Currency'
    response = getattr(self, method)(self.extend(request, params))
    return self.parse_transactions(response, currency, since, limit, params)