danpaquin / coinbasepro-python

The unofficial Python client for the Coinbase Pro API
MIT License
1.82k stars 740 forks source link

Invalid API Key (only with cbpro) #419

Open baardev opened 3 years ago

baardev commented 3 years ago

While all the public calls work fine, I get {'message': 'Invalid API Key'} for any of my API keys, both on the live site and on the sandbox. I have created new keys, and triple checked there were no typos, and my code is simply:

import cbpro
passphrase="<11 chars>"
b64secret="<88 chars>"
key="<32 chars>"
auth_client = cbpro.AuthenticatedClient(key, b64secret, passphrase)
accounts = auth_client.get_accounts()
print(accounts)

I have not been able to find anything to suggest the problem is on coinbase's side, and the keys I am using work fine in Pypi's 'coinbasepro 0.2.1' code. Is there a known issues issue with authenticating with cbpro?

smbrandonjr commented 3 years ago

Are you modifying the "passphrase" that Coinbase Pro generates when you attempt to create the API key? I believe the passphrase is only 10 chars. I was getting the same error when I was trying to set my own passphrase. Eventually, I just left it as it was generated and that solved my issue.

dsillman2000 commented 2 years ago

Same is happening to me! Has there been any resolution on this? I didn't change the default passphrase generated by coinbase and it is 11 characters long by default. image