dougdellolio / coinbasepro-csharp

The unofficial .NET/C# client library for the Coinbase Pro/GDAX API
MIT License
192 stars 90 forks source link

basic install not working #287

Closed DesenEnterprises closed 3 years ago

DesenEnterprises commented 3 years ago

Hey, I downloaded your master solution, added a project and inserted the basic connection:

//create an authenticator with your apiKey, apiSecret and passphrase var authenticator = new Authenticator(apiKey, apiSecret, passPhrase); <-- using the keys I just created today

        //create the CoinbasePro client
        var coinbaseProClient = new CoinbasePro.CoinbaseProClient(authenticator);

        //use one of the services 
        var allAccounts = await coinbaseProClient.AccountsService.GetAllAccountsAsync();

I get invalid API key error...

I assume the "secret" is the number that shows up on my Key configuration after I've created it? Image below:

image

dougdellolio commented 3 years ago

hi @DesenEnterprises

Here are some steps:

  1. Navigate to the API section of your profile and press "New API Key"
  2. The Passphrase box on this form should be passed into the "passphrase" section of the authenticator
  3. Press "Create API Key" and you'll see a dialog that says "API Key Created"
  4. The API secret here will be passed into the "apiSecret" section of the authenticator. You only are shown this once so make sure to note it down in a safe place.
  5. The text underneath the "cryptoWatch" title in your screenshot would be passed into the "apiKey" section of the authenticator

let me know how this works out

DesenEnterprises commented 3 years ago

That was it.

I was using the apiKey for the secret and visa-versa.

I switched them in the call and it works perfectly.

Thank you!


From: Doug Dellolio @.> Sent: Friday, May 7, 2021 7:29 PM To: dougdellolio/coinbasepro-csharp @.> Cc: DesenEnterprises @.>; Mention @.> Subject: Re: [dougdellolio/coinbasepro-csharp] basic install not working (#287)

hi @DesenEnterpriseshttps://github.com/DesenEnterprises

Here are some steps:

  1. Navigate to the API section of your profile and press "New API Key"
  2. The Passphrase box on this form should be passed into the "passphrase" section of the authenticator
  3. Press "Create API Key" and you'll see a dialog that says "API Key Created"
  4. The API secret here will be passed into the "apiSecret" section of the authenticator. You only are shown this once so make sure to note it down in a safe place.
  5. The text underneath the "cryptoWatch" title in your screenshot would be passed into the "apiKey" section of the authenticator

let me know how this works out

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/dougdellolio/coinbasepro-csharp/issues/287#issuecomment-834937671, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIHEI723XKMLIPJXPHLKFPDTMSHZBANCNFSM44L3MSMA.