Pagination on Coinbase Python API
问题 I am trying to get all of the transactions on a Coinbase account, which requires pagination. The documentation is sparse on how to do this in Python, but I have managed to make it work: client = Client(keys['apiKey'], keys['apiSecret']) accounts = client.get_accounts() for account in accounts.data: txns = client.get_transactions(account.id, limit=25) while True: for tx in txns.data: print(tx.id) if txns.pagination.next_uri != None: starting_after_guid = re.search('starting_after=([0-9a-f]{8}-