danpaquin / coinbasepro-python

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

getting started with Authenticated login #415

Closed joe-wojniak closed 3 years ago

joe-wojniak commented 3 years ago

I'm getting started with Authenticated login to the Coinbase Pro Sandbox:

auth_client = cbpro.AuthenticatedClient(key, b64secret, passphrase, api_url="https://api-public.sandbox.pro.coinbase.com")

the Coinbase Pro docs give a code snippet for generating the b64secret, but the class interface is nearly identical to the cbpro auth_client definition above.

Do I need to instantiate the CoinbaseExchangeAuth class to generate the b64secret?

Here's a link to the Coinbase.com code snippet: https://docs.pro.coinbase.com/?python#signing-a-message

Thanks!

joe-wojniak commented 3 years ago

Passing the api key, secret, and passphrase to the cbpro.AuthenticatedClient creates the Coinbase message signature. You do not need to instantiate the CoinbaseExchangeAuth class.

wchen38 commented 3 years ago

Hey, I was wondering if you can shred some light on how you got both the api key and secret from coinbase pro?

I just started learning how to use the coinbase pro api, and have been reading the 'Generating an API Key' of the coinbase pro api reference. It said that: The Key and Secret will be randomly generated and provided by Coinbase Pro

I went to https://pro.coinbase.com/profile/api, and created a API key, but the only thing it gave me was the Client Secret. Thanks for the help! @joe-wojniak

joe-wojniak commented 3 years ago

it's given to you when you complete the api key request. i had to do it twice before figuring out what it was. [image: image.png]

On Fri, Jan 15, 2021 at 11:54 PM wchen38 notifications@github.com wrote:

Hey, Where did you get the api key and the secret key?

I just started learning how to use the coinbase pro api, and have been reading the 'Generating an API Key' of the coinbase pro api reference. It said that: The Key and Secret will be randomly generated and provided by Coinbase Pro

I went to https://pro.coinbase.com/profile/api, and created a API key, but the only thing it gave me was the Client Secret. I was wondering if you can shred some light on how you got both the api key and secret from coinbase pro? @joe-wojniak https://github.com/joe-wojniak

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/danpaquin/coinbasepro-python/issues/415#issuecomment-761518292, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEAV4CCN2OOCDMMR2ENIMLLS2EZ35ANCNFSM4VO2DREQ .

-- -Joe Wojniak

CONFIDENTIALITY NOTICE: The contents of this email message and any attachments are intended solely for the addressee(s) and may contain confidential and/or privileged information and may be legally protected from disclosure.

wchen38 commented 3 years ago

@joe-wojniak Thanks a lot for the help. I just realized that the API Secret that I got from the pop up window is different than the one appeared on https://pro.coinbase.com/profile/api. Thanks again for the help!!!

joe-wojniak commented 3 years ago

Happy to help. Do you want to collaborate on your project? I have some simple demo code that uses cbpro.

-Joe W.

On Sat, Jan 16, 2021 at 1:08 AM wchen38 notifications@github.com wrote:

@joe-wojniak https://github.com/joe-wojniak Thanks a lot for the help. I just realized that the API Secret that I got from the pop up window is different than the one appeared on https://pro.coinbase.com/profile/api. Thanks again for the help!!!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/danpaquin/coinbasepro-python/issues/415#issuecomment-761525371, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEAV4CAGOKWTWSTHNIGZL3DS2FCQDANCNFSM4VO2DREQ .

-- -Joe Wojniak

CONFIDENTIALITY NOTICE: The contents of this email message and any attachments are intended solely for the addressee(s) and may contain confidential and/or privileged information and may be legally protected from disclosure.

wchen38 commented 3 years ago

Happy to help. Do you want to collaborate on your project? I have some simple demo code that uses cbpro. -Joe W. On Sat, Jan 16, 2021 at 1:08 AM wchen38 @.**> wrote: @joe-wojniak https://github.com/joe-wojniak Thanks a lot for the help. I just realized that the API Secret that I got from the pop up window is different than the one appeared on https://pro.coinbase.com/profile/api. Thanks again for the help!!! — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#415 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEAV4CAGOKWTWSTHNIGZL3DS2FCQDANCNFSM4VO2DREQ . -- -Joe Wojniak CONFIDENTIALITY NOTICE: The contents of this email message and any attachments are intended solely for the addressee(s) and may contain confidential and/or privileged information* and may be legally protected from disclosure.

Yeah sure. I'll be happy to collaborate with you. Feel free to contact me @wuyuanchen123@gmail.com