def get_transaction_history(self, max_wait=5.0):
        url = self.request_transaction_history()
        if not url:
            return False

        ready = False
        start = time()
        delay = 0.1
        while not ready and delay:
            response = requests.head(url)
            ready = response.ok
            if not ready:
                sleep(delay)
                time_remaining = max_wait - time() + start
                max_delay = max(0., time_remaining - .1)
                delay = min(delay * 2, max_delay)

        if not ready:
            return False

        response = requests.get(url)
        try:
            with ZipFile(BytesIO(response.content)) as container:
                files = container.namelist()
                if not files:
                    log.error('Transaction ZIP has no files.')
                    return False
                history = container.open(files[0])
                raw = history.read().decode('ascii')
        except BadZipfile:
            log.error('Response is not a valid ZIP file', exc_info=True)
            return False

        return json.loads(raw, **self.json_options)
Download full account history.
dataset/ETHPy150Open toloco/pyoanda/pyoanda/client.py/Client.get_transaction_history